| Modifier and Type | Field and Description |
|---|---|
| private RandomVectorGenerator | generator
Random generator for multi-start. |
| private int | initialGuessIndex
Location in |
| private int | maxEvalIndex
Location in |
| private OptimizationData[] | optimData
Optimization data. |
| private final BaseMultivariateOptimizer | optimizer
Underlying classical optimizer. |
| private int | starts
Number of starts to go. |
| private int | totalEvaluations
Number of evaluations already performed for all starts. |
| Access | Constructor and Description |
|---|---|
| public | BaseMultiStartMultivariateOptimizer(final BaseMultivariateOptimizer<PAIR>
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 the given optimizer would return.Random vector generator to use for restarts. generator)Create a multi-start optimizer from a single-start optimizer. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected PAIR | doOptimize()
Implements abstract org. Performs the bulk of the optimization algorithm. |
| public int | getEvaluations()
Overrides org. Gets the number of evaluations of the objective function. |
| public abstract PAIR[] | Returns: an array containing the optima sorted from best to worst.Gets all the optima found during the last call to |
| public PAIR | optimize(OptimizationData...
Optimization data. In addition to those documented in
optData)BaseOptimizer,
this method will register the following data:
Overrides org. Stores data and performs the optimization. |
| protected abstract void | store(PAIR
Result of an optimization run. optimum)Method that will be called in order to store each found optimum. |
| generator | back to summary |
|---|---|
| private RandomVectorGenerator generator Random generator for multi-start. | |
| initialGuessIndex | back to summary |
|---|---|
| private int initialGuessIndex Location in | |
| maxEvalIndex | back to summary |
|---|---|
| private int maxEvalIndex Location in | |
| optimData | back to summary |
|---|---|
| private OptimizationData[] optimData Optimization data. | |
| optimizer | back to summary |
|---|---|
| private final BaseMultivariateOptimizer<PAIR> optimizer 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. | |
| BaseMultiStartMultivariateOptimizer | back to summary |
|---|---|
| public BaseMultiStartMultivariateOptimizer(final BaseMultivariateOptimizer<PAIR> optimizer, final int starts, final RandomVectorGenerator generator) Create a multi-start optimizer from a single-start optimizer.
Note that if there are bounds constraints (see
| |
| clear | back to summary |
|---|---|
| protected abstract void clear() Method that will called in order to clear all stored optima. | |
| doOptimize | back to summary |
|---|---|
| protected PAIR doOptimize() Implements abstract org. Doc from org. Performs the bulk of the optimization algorithm.
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Overrides org. Doc from org. Gets the number of evaluations of the objective function.
The number of evaluations corresponds to the last call to the
| |
| getOptima | back to summary |
|---|---|
| public abstract PAIR[] getOptima() Gets all the optima found during the last call to
| |
| optimize | back to summary |
|---|---|
| public PAIR optimize(OptimizationData... optData) Overrides org. Doc from org. 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
| |
| store | back to summary |
|---|---|
| protected abstract void store(PAIR optimum) Method that will be called in order to store each found optimum.
| |