Class SimplexSolver
- java.lang.Object
-
- org.apache.commons.math.optimization.linear.AbstractLinearOptimizer
-
- org.apache.commons.math.optimization.linear.SimplexSolver
-
- All Implemented Interfaces:
LinearOptimizer
public class SimplexSolver extends AbstractLinearOptimizer
Solves a linear problem using the Two-Phase Simplex Method.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class org.apache.commons.math.optimization.linear.AbstractLinearOptimizer
DEFAULT_MAX_ITERATIONS
-
-
Constructor Summary
Constructors Constructor Description SimplexSolver()
Build a simplex solver with default settings.SimplexSolver(double epsilon)
Build a simplex solver with a specified accepted amount of error
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RealPointValuePair
doOptimize()
-
Methods inherited from class org.apache.commons.math.optimization.linear.AbstractLinearOptimizer
getIterations, getMaxIterations, optimize, setMaxIterations
-
-
-
-
Constructor Detail
-
SimplexSolver
public SimplexSolver()
Build a simplex solver with default settings.
-
SimplexSolver
public SimplexSolver(double epsilon)
Build a simplex solver with a specified accepted amount of error- Parameters:
epsilon
- the amount of error to accept in floating point comparisons
-
-
Method Detail
-
doOptimize
public RealPointValuePair doOptimize() throws OptimizationException
- Throws:
OptimizationException
-
-