public class SimplexSolver extends LinearOptimizer
evaluations, iterations| Constructor and Description |
|---|
SimplexSolver()
Builds a simplex solver with default settings.
|
SimplexSolver(double epsilon,
int maxUlps)
Builds a simplex solver with a specified accepted amount of error.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doIteration(org.apache.commons.math3.optim.linear.SimplexTableau tableau)
Runs one iteration of the Simplex method on the given model.
|
PointValuePair |
doOptimize()
Performs the bulk of the optimization algorithm.
|
protected void |
solvePhase1(org.apache.commons.math3.optim.linear.SimplexTableau tableau)
Solves Phase 1 of the Simplex method.
|
getConstraints, getFunction, isRestrictedToNonNegative, optimizecomputeObjectiveValue, getGoalTypegetLowerBound, getStartPoint, getUpperBoundgetConvergenceChecker, getEvaluations, getIterations, getMaxEvaluations, getMaxIterations, incrementEvaluationCount, incrementIterationCountpublic SimplexSolver()
public SimplexSolver(double epsilon,
int maxUlps)
epsilon - Amount of error to accept for algorithm convergence.maxUlps - Amount of error to accept in floating point comparisons.protected void doIteration(org.apache.commons.math3.optim.linear.SimplexTableau tableau)
throws TooManyIterationsException,
UnboundedSolutionException
tableau - Simple tableau for the problem.TooManyIterationsException - if the allowed number of iterations has been exhausted.UnboundedSolutionException - if the model is found not to have a bounded solution.protected void solvePhase1(org.apache.commons.math3.optim.linear.SimplexTableau tableau)
throws TooManyIterationsException,
UnboundedSolutionException,
NoFeasibleSolutionException
tableau - Simple tableau for the problem.TooManyIterationsException - if the allowed number of iterations has been exhausted.UnboundedSolutionException - if the model is found not to have a bounded solution.NoFeasibleSolutionException - if there is no feasible solution?public PointValuePair doOptimize() throws TooManyIterationsException, UnboundedSolutionException, NoFeasibleSolutionException
doOptimize in class BaseOptimizer<PointValuePair>TooManyIterationsExceptionUnboundedSolutionExceptionNoFeasibleSolutionExceptionCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.