Class SimplexSolver
java.lang.Object
org.apache.commons.math.optimization.linear.AbstractLinearOptimizer
org.apache.commons.math.optimization.linear.SimplexSolver
- All Implemented Interfaces:
LinearOptimizer
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
ConstructorsConstructorDescriptionBuild a simplex solver with default settings.SimplexSolver(double epsilon) Build a simplex solver with a specified accepted amount of error -
Method Summary
Methods inherited from class org.apache.commons.math.optimization.linear.AbstractLinearOptimizer
getIterations, getMaxIterations, optimize, setMaxIterations
-
Constructor Details
-
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 Details
-
doOptimize
- Throws:
OptimizationException
-