Deprecated
As of 3.1 (to be removed in 4.0).
DifferentiableMultivariateVectorMultiStartOptimizer.
| Modifier and Type | Field and Description |
|---|---|
| private RandomVectorGenerator | generator
Random generator for multi-start. |
| private int | maxEvaluations
Maximal number of evaluations allowed. |
| private PointVectorValuePair[] | optima
Deprecated
as a consequence of Found optima.
PointVectorValuePair being deprecated.
|
| private final BaseMultivariateVectorOptimizer | optimizer
Deprecated
as a consequence of Underlying classical optimizer.
BaseMultivariateVectorOptimizer being deprecated.
|
| private int | starts
Number of starts to go. |
| private int | totalEvaluations
Number of evaluations already performed for all starts. |
| Access | Constructor and Description |
|---|---|
| protected | BaseMultivariateVectorMultiStartOptimizer(final BaseMultivariateVectorOptimizer<FUNC>
Single-start optimizer to wrap. optimizer, final int Number of starts to perform. If starts, final RandomVectorGenerator starts == 1,
the optimize will return the same solution as optimizer would.Random vector generator to use for restarts. generator)
Deprecated
as a consequence of
BaseMultivariateVectorOptimizer being deprecated.
Create a multi-start optimizer from a single-start optimizer. |
| Modifier and Type | Method and Description |
|---|---|
| public ConvergenceChecker | getConvergenceChecker()
Implements org.
Deprecated
as a consequence of
ConvergenceChecker being deprecated.
Get the convergence checker. |
| public int | getEvaluations()
Implements org. Get the number of evaluations of the objective function. |
| public int | getMaxEvaluations()
Implements org. Get the maximal number of function evaluations. |
| public PointVectorValuePair[] | Returns: array containing the optima
Deprecated
as a consequence of
PointVectorValuePair being deprecated.
Get all the optima found during the last call to |
| public PointVectorValuePair | optimize(int
Maximum number of function evaluations. maxEval, final FUNC Objective function. f, double[] Target value for the objective functions at optimum. target, double[] Weights for the least squares cost computation. weights, double[] Start point for optimization. startPoint)Implements org.
Deprecated
as a consequence of
PointVectorValuePair being deprecated.
Optimize an objective function. |
| private void | sortPairs(final double[]
Target value for the objective functions at optimum. target, final double[] Weights for the least-squares cost computation. weights)Sort the optima from best to worst, followed by |
| generator | back to summary |
|---|---|
| private RandomVectorGenerator generator Random generator for multi-start. | |
| maxEvaluations | back to summary |
|---|---|
| private int maxEvaluations Maximal number of evaluations allowed. | |
| optima | back to summary |
|---|---|
| private PointVectorValuePair[] optima
Deprecated as a consequence of Found optima. | |
| optimizer | back to summary |
|---|---|
| private final BaseMultivariateVectorOptimizer<FUNC> optimizer
Deprecated as a consequence of Underlying classical optimizer. | |
| starts | back to summary |
|---|---|
| private int starts Number of starts to go. | |
| totalEvaluations | back to summary |
|---|---|
| private int totalEvaluations Number of evaluations already performed for all starts. | |
| BaseMultivariateVectorMultiStartOptimizer | back to summary |
|---|---|
| protected BaseMultivariateVectorMultiStartOptimizer(final BaseMultivariateVectorOptimizer<FUNC> optimizer, final int starts, final RandomVectorGenerator generator)
Deprecated as a consequence of Create a multi-start optimizer from a single-start optimizer.
| |
| getConvergenceChecker | back to summary |
|---|---|
| public ConvergenceChecker Implements org. Doc from org. Deprecated as a consequence of Get the convergence checker.
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Implements org. Doc from org. Get the number of evaluations of the objective function.
The number of evaluations corresponds to the last call to the
| |
| getMaxEvaluations | back to summary |
|---|---|
| public int getMaxEvaluations() Implements org. Doc from org. Get the maximal number of function evaluations.
| |
| getOptima | back to summary |
|---|---|
| public PointVectorValuePair[] getOptima()
Deprecated as a consequence of Get all the optima found during the last call to
| |
| optimize | back to summary |
|---|---|
| public PointVectorValuePair optimize(int maxEval, final FUNC f, double[] target, double[] weights, double[] startPoint) Implements org. Doc from org. Deprecated as a consequence of Optimize an objective function.
Optimization is considered to be a weighted least-squares minimization.
The cost function to be minimized is
| |
| sortPairs | back to summary |
|---|---|
| private void sortPairs(final double[] target, final double[] weights) Sort the optima from best to worst, followed by
| |