|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.optimization.linear.AbstractLinearOptimizer
org.apache.commons.math.optimization.linear.SimplexSolver
public class SimplexSolver
Solves a linear problem using the Two-Phase Simplex Method.
| Field Summary | |
|---|---|
protected double |
epsilon
Amount of error to accept for algorithm convergence. |
protected int |
maxUlps
Amount of error to accept in floating point comparisons (as ulps). |
| Fields inherited from class org.apache.commons.math.optimization.linear.AbstractLinearOptimizer |
|---|
DEFAULT_MAX_ITERATIONS, function, goal, linearConstraints, nonNegative |
| Constructor Summary | |
|---|---|
SimplexSolver()
Build a simplex solver with default settings. |
|
SimplexSolver(double epsilon,
int maxUlps)
Build a simplex solver with a specified accepted amount of error |
|
| Method Summary | |
|---|---|
protected void |
doIteration(org.apache.commons.math.optimization.linear.SimplexTableau tableau)
Runs one iteration of the Simplex method on the given model. |
RealPointValuePair |
doOptimize()
Perform the bulk of optimization algorithm. |
protected void |
solvePhase1(org.apache.commons.math.optimization.linear.SimplexTableau tableau)
Solves Phase 1 of the Simplex method. |
| Methods inherited from class org.apache.commons.math.optimization.linear.AbstractLinearOptimizer |
|---|
getIterations, getMaxIterations, incrementIterationsCounter, optimize, setMaxIterations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final double epsilon
protected final int maxUlps
| Constructor Detail |
|---|
public SimplexSolver()
public SimplexSolver(double epsilon,
int maxUlps)
epsilon - the amount of error to accept for algorithm convergencemaxUlps - amount of error to accept in floating point comparisons| Method Detail |
|---|
protected void doIteration(org.apache.commons.math.optimization.linear.SimplexTableau tableau)
throws MaxCountExceededException,
UnboundedSolutionException
tableau - simple tableau for the problem
MaxCountExceededException - if the maximal iteration count has been exceeded
UnboundedSolutionException - if the model is found not to have a bounded solution
protected void solvePhase1(org.apache.commons.math.optimization.linear.SimplexTableau tableau)
throws MaxCountExceededException,
UnboundedSolutionException,
NoFeasibleSolutionException
tableau - simple tableau for the problem
MaxCountExceededException - if the maximal iteration count has been exceeded
UnboundedSolutionException - if the model is found not to have a bounded solution
NoFeasibleSolutionException - if there is no feasible solution
public RealPointValuePair doOptimize()
throws MaxCountExceededException,
UnboundedSolutionException,
NoFeasibleSolutionException
doOptimize in class AbstractLinearOptimizerMaxCountExceededException
UnboundedSolutionException
NoFeasibleSolutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||