public class MultiDirectional extends DirectSearchOptimizer
NelderMead| Modifier and Type | Field and Description |
|---|---|
private double |
gamma
Contraction coefficient.
|
private double |
khi
Expansion coefficient.
|
simplex| Constructor and Description |
|---|
MultiDirectional()
Build a multi-directional optimizer with default coefficients.
|
MultiDirectional(double khi,
double gamma)
Build a multi-directional optimizer with specified coefficients.
|
| Modifier and Type | Method and Description |
|---|---|
private RealPointValuePair |
evaluateNewSimplex(RealPointValuePair[] original,
double coeff,
Comparator<RealPointValuePair> comparator)
Compute and evaluate a new simplex.
|
protected void |
iterateSimplex(Comparator<RealPointValuePair> comparator)
Compute the next simplex of the algorithm.
|
evaluate, evaluateSimplex, getConvergenceChecker, getEvaluations, getIterations, getMaxEvaluations, getMaxIterations, incrementIterationsCounter, optimize, replaceWorstPoint, setConvergenceChecker, setMaxEvaluations, setMaxIterations, setStartConfiguration, setStartConfigurationprivate final double khi
private final double gamma
public MultiDirectional()
The default values are 2.0 for khi and 0.5 for gamma.
public MultiDirectional(double khi,
double gamma)
khi - expansion coefficientgamma - contraction coefficientprotected void iterateSimplex(Comparator<RealPointValuePair> comparator) throws FunctionEvaluationException, OptimizationException, IllegalArgumentException
iterateSimplex in class DirectSearchOptimizercomparator - comparator to use to sort simplex vertices from best to worstFunctionEvaluationException - if the function cannot be evaluated at
some pointOptimizationException - if the algorithm fails to convergeIllegalArgumentException - if the start point dimension is wrongprivate RealPointValuePair evaluateNewSimplex(RealPointValuePair[] original, double coeff, Comparator<RealPointValuePair> comparator) throws FunctionEvaluationException, OptimizationException
original - original simplex (to be preserved)coeff - linear coefficientcomparator - comparator to use to sort simplex vertices from best to poorestFunctionEvaluationException - if the function cannot be evaluated at some pointOptimizationException - if the maximal number of evaluations is exceededCopyright (c) 2003-2014 Apache Software Foundation