|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.math.optimization.direct.DirectSearchOptimizer
org.apache.commons.math.optimization.direct.NelderMead
public class NelderMead
This class implements the Nelder-Mead direct search method.
MultiDirectional| Field Summary | |
|---|---|
private double |
gamma
Contraction coefficient. |
private double |
khi
Expansion coefficient. |
private double |
rho
Reflection coefficient. |
private double |
sigma
Shrinkage coefficient. |
| Fields inherited from class org.apache.commons.math.optimization.direct.DirectSearchOptimizer |
|---|
simplex |
| Constructor Summary | |
|---|---|
NelderMead()
Build a Nelder-Mead optimizer with default coefficients. |
|
NelderMead(double rho,
double khi,
double gamma,
double sigma)
Build a Nelder-Mead optimizer with specified coefficients. |
|
| Method Summary | |
|---|---|
protected void |
iterateSimplex(Comparator<RealPointValuePair> comparator)
Compute the next simplex of the algorithm. |
| Methods inherited from class org.apache.commons.math.optimization.direct.DirectSearchOptimizer |
|---|
evaluate, evaluateSimplex, getConvergenceChecker, getEvaluations, getIterations, getMaxEvaluations, getMaxIterations, incrementIterationsCounter, optimize, replaceWorstPoint, setConvergenceChecker, setMaxEvaluations, setMaxIterations, setStartConfiguration, setStartConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final double rho
private final double khi
private final double gamma
private final double sigma
| Constructor Detail |
|---|
public NelderMead()
The default coefficients are 1.0 for rho, 2.0 for khi and 0.5 for both gamma and sigma.
public NelderMead(double rho,
double khi,
double gamma,
double sigma)
rho - reflection coefficientkhi - expansion coefficientgamma - contraction coefficientsigma - shrinkage coefficient| Method Detail |
|---|
protected void iterateSimplex(Comparator<RealPointValuePair> comparator)
throws FunctionEvaluationException,
OptimizationException
iterateSimplex in class DirectSearchOptimizercomparator - comparator to use to sort simplex vertices from best to worst
FunctionEvaluationException - if the function cannot be evaluated at
some point
OptimizationException - if the algorithm fails to converge
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||