org.apache.commons.math.optimization
Class NelderMead
java.lang.Object
org.apache.commons.math.optimization.DirectSearchOptimizer
org.apache.commons.math.optimization.NelderMead
public class NelderMead
- extends DirectSearchOptimizer
This class implements the Nelder-Mead direct search method.
- Since:
- 1.2
- Version:
- $Revision: 670469 $ $Date: 2008-06-23 10:01:38 +0200 (lun, 23 jun 2008) $
- See Also:
MultiDirectional
|
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()
Compute the next simplex of the algorithm. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NelderMead
public NelderMead()
- Build a Nelder-Mead optimizer with default coefficients.
The default coefficients are 1.0 for rho, 2.0 for khi and 0.5
for both gamma and sigma.
NelderMead
public NelderMead(double rho,
double khi,
double gamma,
double sigma)
- Build a Nelder-Mead optimizer with specified coefficients.
- Parameters:
rho - reflection coefficientkhi - expansion coefficientgamma - contraction coefficientsigma - shrinkage coefficient
iterateSimplex
protected void iterateSimplex()
throws CostException
- Compute the next simplex of the algorithm.
- Specified by:
iterateSimplex in class DirectSearchOptimizer
- Throws:
CostException - if the function cannot be evaluated at
some point
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.