P
- Type of the point/value pair returned by the optimization algorithm.public abstract class AbstractOptimizationProblem<P> extends Object implements OptimizationProblem<P>
Modifier | Constructor and Description |
---|---|
protected |
AbstractOptimizationProblem(int maxEvaluations,
int maxIterations,
ConvergenceChecker<P> checker)
Create an
AbstractOptimizationProblem from the given data. |
Modifier and Type | Method and Description |
---|---|
ConvergenceChecker<P> |
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<P> 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<P>
public Incrementor getIterationCounter()
getIterationCounter
in interface OptimizationProblem<P>
public ConvergenceChecker<P> getConvergenceChecker()
getConvergenceChecker
in interface OptimizationProblem<P>
Copyright © 2016-2021 CS GROUP. All rights reserved.