@Deprecated public class SimplexSolver extends AbstractLinearOptimizer
DEFAULT_MAX_ITERATIONS
Constructor and Description |
---|
SimplexSolver()
Deprecated.
Build a simplex solver with default settings.
|
SimplexSolver(double epsilon,
int maxUlps)
Deprecated.
Build a simplex solver with a specified accepted amount of error
|
Modifier and Type | Method and Description |
---|---|
protected void |
doIteration(org.apache.commons.math3.optimization.linear.SimplexTableau tableau)
Deprecated.
Runs one iteration of the Simplex method on the given model.
|
PointValuePair |
doOptimize()
Deprecated.
Perform the bulk of optimization algorithm.
|
protected void |
solvePhase1(org.apache.commons.math3.optimization.linear.SimplexTableau tableau)
Deprecated.
Solves Phase 1 of the Simplex method.
|
getConstraints, getFunction, getGoalType, getIterations, getMaxIterations, incrementIterationsCounter, optimize, restrictToNonNegative, setMaxIterations
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 comparisonsprotected void doIteration(org.apache.commons.math3.optimization.linear.SimplexTableau tableau) throws MaxCountExceededException, UnboundedSolutionException
tableau
- simple tableau for the problemMaxCountExceededException
- if the maximal iteration count has been exceededUnboundedSolutionException
- if the model is found not to have a bounded solutionprotected void solvePhase1(org.apache.commons.math3.optimization.linear.SimplexTableau tableau) throws MaxCountExceededException, UnboundedSolutionException, NoFeasibleSolutionException
tableau
- simple tableau for the problemMaxCountExceededException
- if the maximal iteration count has been exceededUnboundedSolutionException
- if the model is found not to have a bounded solutionNoFeasibleSolutionException
- if there is no feasible solutionpublic PointValuePair doOptimize() throws MaxCountExceededException, UnboundedSolutionException, NoFeasibleSolutionException
doOptimize
in class AbstractLinearOptimizer
MaxCountExceededException
UnboundedSolutionException
NoFeasibleSolutionException
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.