| Modifier and Type | Class and Description |
|---|---|
| private static class | BaseOptimizer.
Defines the action to perform when reaching the maximum number of evaluations. |
| private static class | BaseOptimizer.
Defines the action to perform when reaching the maximum number of evaluations. |
| Modifier and Type | Field and Description |
|---|---|
| private final ConvergenceChecker | checker
Convergence checker. |
| protected final Incrementor | evaluations
Deprecated
as a consequence of Evaluations counter.
Incrementor being deprecated.
|
| protected final Incrementor | iterations
Deprecated
as a consequence of Iterations counter.
Incrementor being deprecated.
|
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | BaseOptimizer(ConvergenceChecker<PAIR>
Convergence checker. checker, int Maximum number of objective function evaluations. maxEval, int Maximum number of algorithm iterations. maxIter)
|
| Modifier and Type | Method and Description |
|---|---|
| protected abstract PAIR | Returns: the point/value pair giving the optimal value of the objective function.Performs the bulk of the optimization algorithm. |
| public ConvergenceChecker | Returns: the object used to check for convergence.Gets the convergence checker. |
| public int | Returns: the number of evaluations of the objective function.Gets the number of evaluations of the objective function. |
| public int | Returns: the number of evaluations of the objective function.Gets the number of iterations performed by the algorithm. |
| public int | Returns: the maximal number of function evaluations.Gets the maximal number of function evaluations. |
| public int | |
| protected void | |
| protected void | |
| public PAIR | Returns: a point/value pair that satisfies the convergence criteria.Stores data and performs the optimization. |
| public PAIR | Returns: a point/value pair that satisfies the convergence criteria.Performs the optimization. |
| protected void | parseOptimizationData(OptimizationData... optData)
Scans the list of (required and optional) optimization data that characterize the problem. |
| checker | back to summary |
|---|---|
| private final ConvergenceChecker<PAIR> checker Convergence checker. | |
| evaluations | back to summary |
|---|---|
| protected final Incrementor evaluations
Deprecated as a consequence of Evaluations counter. | |
| iterations | back to summary |
|---|---|
| protected final Incrementor iterations
Deprecated as a consequence of Iterations counter. | |
| BaseOptimizer | back to summary |
|---|---|
protected BaseOptimizer(ConvergenceChecker<PAIR> checker)
| |
| BaseOptimizer | back to summary |
|---|---|
protected BaseOptimizer(ConvergenceChecker<PAIR> checker, int maxEval, int maxIter)
| |
| doOptimize | back to summary |
|---|---|
| protected abstract PAIR doOptimize() Performs the bulk of the optimization algorithm.
| |
| getConvergenceChecker | back to summary |
|---|---|
| public ConvergenceChecker Gets the convergence checker.
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Gets the number of evaluations of the objective function.
The number of evaluations corresponds to the last call to the
| |
| getIterations | back to summary |
|---|---|
| public int getIterations() Gets the number of iterations performed by the algorithm.
The number iterations corresponds to the last call to the
| |
| getMaxEvaluations | back to summary |
|---|---|
| public int getMaxEvaluations() Gets the maximal number of function evaluations.
| |
| getMaxIterations | back to summary |
|---|---|
| public int getMaxIterations() Gets the maximal number of iterations.
| |
| incrementEvaluationCount | back to summary |
|---|---|
| protected void incrementEvaluationCount() throws TooManyEvaluationsException Increment the evaluation count.
| |
| incrementIterationCount | back to summary |
|---|---|
| protected void incrementIterationCount() throws TooManyIterationsException Increment the iteration count.
| |
| optimize | back to summary |
|---|---|
| public PAIR optimize(OptimizationData... optData) throws TooManyEvaluationsException, TooManyIterationsException Stores data and performs the optimization. The list of parameters is open-ended so that sub-classes can extend it with arguments specific to their concrete implementations. When the method is called multiple times, instance data is overwritten only when actually present in the list of arguments: when not specified, data set in a previous call is retained (and thus is optional in subsequent calls). Important Note Subclasses must override
| |
| optimize | back to summary |
|---|---|
| public PAIR optimize() throws TooManyEvaluationsException, TooManyIterationsException Performs the optimization.
| |
| parseOptimizationData | back to summary |
|---|---|
| protected void parseOptimizationData(OptimizationData... optData) Scans the list of (required and optional) optimization data that characterize the problem.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | trigger(int
Maximal count. max)Implements org. Function called when the maximal count has been reached. |
| MaxEvalCallback | back to summary |
|---|---|
| private MaxEvalCallback() | |
| trigger | back to summary |
|---|---|
| public void trigger(int max) Implements org. Doc from org. Function called when the maximal count has been reached.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | trigger(int
Maximal count. max)Implements org. Function called when the maximal count has been reached. |
| MaxIterCallback | back to summary |
|---|---|
| private MaxIterCallback() | |
| trigger | back to summary |
|---|---|
| public void trigger(int max) Implements org. Doc from org. Function called when the maximal count has been reached.
| |