Package ch.idsia.crema.solver.commons
Class FractionalSolver
- java.lang.Object
-
- ch.idsia.crema.solver.commons.FractionalSolver
-
- All Implemented Interfaces:
LinearFractionalSolver
public class FractionalSolver extends Object implements LinearFractionalSolver
Charnes-Cooper transformation- Author:
- davidhuber
-
-
Constructor Summary
Constructors Constructor Description FractionalSolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getValue()
double[]
getVertex()
void
loadProblem(ExtensiveLinearFactor factor, org.apache.commons.math3.optim.nonlinear.scalar.GoalType type)
void
loadProblem(org.apache.commons.math3.optim.linear.LinearConstraintSet data, org.apache.commons.math3.optim.nonlinear.scalar.GoalType type)
void
solve(double[] numerator, double[] denominator, double mult)
void
solve(double[] numerator, double num_const, double[] denominator, double denom_const)
void
solve(double[] numerator, double alpha, double[] denominator, double beta, double mult)
String
toString()
-
-
-
Method Detail
-
loadProblem
public void loadProblem(ExtensiveLinearFactor factor, org.apache.commons.math3.optim.nonlinear.scalar.GoalType type)
- Specified by:
loadProblem
in interfaceLinearFractionalSolver
-
loadProblem
public void loadProblem(org.apache.commons.math3.optim.linear.LinearConstraintSet data, org.apache.commons.math3.optim.nonlinear.scalar.GoalType type)
- Specified by:
loadProblem
in interfaceLinearFractionalSolver
-
solve
public void solve(double[] numerator, double[] denominator, double mult)
-
solve
public void solve(double[] numerator, double num_const, double[] denominator, double denom_const)
- Specified by:
solve
in interfaceLinearFractionalSolver
-
getValue
public double getValue()
- Specified by:
getValue
in interfaceLinearFractionalSolver
-
getVertex
public double[] getVertex()
- Specified by:
getVertex
in interfaceLinearFractionalSolver
-
solve
public void solve(double[] numerator, double alpha, double[] denominator, double beta, double mult)
- Specified by:
solve
in interfaceLinearFractionalSolver
-
-