Deprecated
As of 3.1 (to be removed in 4.0).
Optimization algorithms find the input point set that either maximize or minimize an objective function. In the linear case the form of
the function is restricted to
c1x1 + ... cnxn = vand there may be linear constraints too, of one of the forms:
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | Returns: maximal number of iterationsGet the maximal number of iterations of the algorithm. |
| public PointValuePair | Returns: point/value pair giving the optimal value for objective functionlinear objective function f, Collection<LinearConstraint> linear constraints constraints, GoalType type of optimization goal: either goalType, boolean GoalType#MAXIMIZE or GoalType#MINIMIZEwhether to restrict the variables to non-negative values restrictToNonNegative)
Deprecated
as a consequence of
LinearObjectiveFunction, GoalType and PointValuePair being deprecated.
Optimizes an objective function. |
| public void | setMaxIterations(int
maximal number of function calls maxIterations)Set the maximal number of iterations of the algorithm. |
| getIterations | back to summary |
|---|---|
| public int getIterations() Get the number of iterations realized by the algorithm.
The number of evaluations corresponds to the last call to the
| |
| getMaxIterations | back to summary |
|---|---|
| public int getMaxIterations() Get the maximal number of iterations of the algorithm.
| |
| optimize | back to summary |
|---|---|
| public PointValuePair optimize(LinearObjectiveFunction f, Collection<LinearConstraint> constraints, GoalType goalType, boolean restrictToNonNegative) throws MathIllegalStateException
Deprecated as a consequence of Optimizes an objective function.
| |
| setMaxIterations | back to summary |
|---|---|
| public void setMaxIterations(int maxIterations) Set the maximal number of iterations of the algorithm.
| |