|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.optimization.direct.AbstractSimplex
org.apache.commons.math3.optimization.direct.NelderMeadSimplex
@Deprecated public class NelderMeadSimplex
This class implements the Nelder-Mead simplex algorithm.
| Constructor Summary | |
|---|---|
NelderMeadSimplex(double[] steps)
Deprecated. Build a Nelder-Mead simplex with default coefficients. |
|
NelderMeadSimplex(double[][] referenceSimplex)
Deprecated. Build a Nelder-Mead simplex with default coefficients. |
|
NelderMeadSimplex(double[][] referenceSimplex,
double rho,
double khi,
double gamma,
double sigma)
Deprecated. Build a Nelder-Mead simplex with specified coefficients. |
|
NelderMeadSimplex(double[] steps,
double rho,
double khi,
double gamma,
double sigma)
Deprecated. Build a Nelder-Mead simplex with specified coefficients. |
|
NelderMeadSimplex(int n)
Deprecated. Build a Nelder-Mead simplex with default coefficients. |
|
NelderMeadSimplex(int n,
double sideLength)
Deprecated. Build a Nelder-Mead simplex with default coefficients. |
|
NelderMeadSimplex(int n,
double rho,
double khi,
double gamma,
double sigma)
Deprecated. Build a Nelder-Mead simplex with specified coefficients. |
|
NelderMeadSimplex(int n,
double sideLength,
double rho,
double khi,
double gamma,
double sigma)
Deprecated. Build a Nelder-Mead simplex with specified coefficients. |
|
| Method Summary | |
|---|---|
void |
iterate(MultivariateFunction evaluationFunction,
Comparator<PointValuePair> comparator)
Deprecated. Compute the next simplex of the algorithm. |
| Methods inherited from class org.apache.commons.math3.optimization.direct.AbstractSimplex |
|---|
build, evaluate, getDimension, getPoint, getPoints, getSize, replaceWorstPoint, setPoint, setPoints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NelderMeadSimplex(int n)
n - Dimension of the simplex.
public NelderMeadSimplex(int n,
double sideLength)
n - Dimension of the simplex.sideLength - Length of the sides of the default (hypercube)
simplex. See AbstractSimplex.AbstractSimplex(int,double).
public NelderMeadSimplex(int n,
double sideLength,
double rho,
double khi,
double gamma,
double sigma)
n - Dimension of the simplex. See
AbstractSimplex.AbstractSimplex(int,double).sideLength - Length of the sides of the default (hypercube)
simplex. See AbstractSimplex.AbstractSimplex(int,double).rho - Reflection coefficient.khi - Expansion coefficient.gamma - Contraction coefficient.sigma - Shrinkage coefficient.
public NelderMeadSimplex(int n,
double rho,
double khi,
double gamma,
double sigma)
n - Dimension of the simplex. See
AbstractSimplex.AbstractSimplex(int).rho - Reflection coefficient.khi - Expansion coefficient.gamma - Contraction coefficient.sigma - Shrinkage coefficient.public NelderMeadSimplex(double[] steps)
steps - Steps along the canonical axes representing box edges.
They may be negative but not zero. See
public NelderMeadSimplex(double[] steps,
double rho,
double khi,
double gamma,
double sigma)
steps - Steps along the canonical axes representing box edges.
They may be negative but not zero. See
AbstractSimplex.AbstractSimplex(double[]).rho - Reflection coefficient.khi - Expansion coefficient.gamma - Contraction coefficient.sigma - Shrinkage coefficient.
IllegalArgumentException - if one of the steps is zero.public NelderMeadSimplex(double[][] referenceSimplex)
referenceSimplex - Reference simplex. See
AbstractSimplex.AbstractSimplex(double[][]).
public NelderMeadSimplex(double[][] referenceSimplex,
double rho,
double khi,
double gamma,
double sigma)
referenceSimplex - Reference simplex. See
AbstractSimplex.AbstractSimplex(double[][]).rho - Reflection coefficient.khi - Expansion coefficient.gamma - Contraction coefficient.sigma - Shrinkage coefficient.
NotStrictlyPositiveException - if the reference simplex does not contain at least one point.
DimensionMismatchException - if there is a dimension mismatch in the reference simplex.| Method Detail |
|---|
public void iterate(MultivariateFunction evaluationFunction,
Comparator<PointValuePair> comparator)
iterate in class AbstractSimplexevaluationFunction - Evaluation function.comparator - Comparator to use to sort simplex vertices from best
to worst.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||