PAIR - Type of the point/value pair returned by the optimization algorithm.public abstract class AbstractOptimizationProblem<PAIR> extends Object implements OptimizationProblem<PAIR>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOptimizationProblem(int maxEvaluations,
int maxIterations,
ConvergenceChecker<PAIR> checker)
Create an
AbstractOptimizationProblem from the given data. |
| Modifier and Type | Method and Description |
|---|---|
ConvergenceChecker<PAIR> |
getConvergenceChecker()
Gets the convergence checker.
|
Incrementor |
getEvaluationCounter()
Get a independent Incrementor that counts up to the maximum number of evaluations
and then throws an exception.
|
Incrementor |
getIterationCounter()
Get a independent Incrementor that counts up to the maximum number of iterations
and then throws an exception.
|
protected AbstractOptimizationProblem(int maxEvaluations, int maxIterations, ConvergenceChecker<PAIR> checker)
AbstractOptimizationProblem from the given data.maxEvaluations - the number of allowed model function evaluations.maxIterations - the number of allowed iterations.checker - the convergence checker.public Incrementor getEvaluationCounter()
getEvaluationCounter in interface OptimizationProblem<PAIR>public Incrementor getIterationCounter()
getIterationCounter in interface OptimizationProblem<PAIR>public ConvergenceChecker<PAIR> getConvergenceChecker()
getConvergenceChecker in interface OptimizationProblem<PAIR>Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.