org.apache.commons.math.optimization.linear
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
Constructor Summary |
SimplexSolver()
Build a simplex solver with default settings. |
SimplexSolver(double epsilon)
Build a simplex solver with a specified accepted amount of error |
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
doOptimize
public RealPointValuePair doOptimize()
throws OptimizationException
- Perform the bulk of optimization algorithm.
- Returns:
- the point/value pair giving the optimal value for objective function
- Throws:
OptimizationException
- if no solution fulfilling the constraints
can be found in the allowed number of iterations
jHepWork 3.1 ©