PAIR
- Type of the point/value pair returned by the optimization
algorithm.public abstract class BaseOptimizer<PAIR> extends Object
Modifier and Type | Method and Description |
---|---|
ConvergenceChecker<PAIR> |
getConvergenceChecker()
Gets the convergence checker.
|
int |
getEvaluations()
Gets the number of evaluations of the objective function.
|
int |
getIterations()
Gets the number of iterations performed by the algorithm.
|
int |
getMaxEvaluations()
Gets the maximal number of function evaluations.
|
int |
getMaxIterations()
Gets the maximal number of iterations.
|
PAIR |
optimize()
Performs the optimization.
|
PAIR |
optimize(OptimizationData... optData)
Stores data and performs the optimization.
|
public int getMaxEvaluations()
public int getEvaluations()
optimize
method. It is 0 if the method has not been
called yet.public int getMaxIterations()
public int getIterations()
optimize
method. It is 0 if the method has not been
called yet.public ConvergenceChecker<PAIR> getConvergenceChecker()
public PAIR optimize(OptimizationData... optData) throws TooManyEvaluationsException, TooManyIterationsException
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
parseOptimizationData(OptimizationData[])
if they need to register
their own options; but then, they must also call
super.parseOptimizationData(optData)
within that method.
optData
- Optimization data.
This method will register the following data:
TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.TooManyIterationsException
- if the maximal number of
iterations is exceeded.public PAIR optimize() throws TooManyEvaluationsException, TooManyIterationsException
TooManyEvaluationsException
- if the maximal number of
evaluations is exceeded.TooManyIterationsException
- if the maximal number of
iterations is exceeded.Jas4pp 1.5 © Java Analysis Studio for Particle Physics