public class NelderMeadSimplex extends AbstractSimplex
Constructor and Description |
---|
NelderMeadSimplex(double[] steps)
Build a Nelder-Mead simplex with default coefficients.
|
NelderMeadSimplex(double[][] referenceSimplex)
Build a Nelder-Mead simplex with default coefficients.
|
NelderMeadSimplex(double[][] referenceSimplex,
double rhoIn,
double khiIn,
double gammaIn,
double sigmaIn)
Build a Nelder-Mead simplex with specified coefficients.
|
NelderMeadSimplex(double[] steps,
double rhoIn,
double khiIn,
double gammaIn,
double sigmaIn)
Build a Nelder-Mead simplex with specified coefficients.
|
NelderMeadSimplex(int n)
Build a Nelder-Mead simplex with default coefficients.
|
NelderMeadSimplex(int n,
double sideLength)
Build a Nelder-Mead simplex with default coefficients.
|
NelderMeadSimplex(int n,
double rhoIn,
double khiIn,
double gammaIn,
double sigmaIn)
Build a Nelder-Mead simplex with specified coefficients.
|
NelderMeadSimplex(int n,
double sideLength,
double rhoIn,
double khiIn,
double gammaIn,
double sigmaIn)
Build a Nelder-Mead simplex with specified coefficients.
|
Modifier and Type | Method and Description |
---|---|
void |
iterate(MultivariateFunction evaluationFunction,
Comparator<PointValuePair> comparator)
Compute the next simplex of the algorithm.
|
build, evaluate, getDimension, getPoint, getPoints, getSize, replaceWorstPoint, setPoint, setPoints
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 rhoIn, double khiIn, double gammaIn, double sigmaIn)
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)
.rhoIn
- Reflection coefficient.khiIn
- Expansion coefficient.gammaIn
- Contraction coefficient.sigmaIn
- Shrinkage coefficient.public NelderMeadSimplex(int n, double rhoIn, double khiIn, double gammaIn, double sigmaIn)
n
- Dimension of the simplex. See AbstractSimplex.AbstractSimplex(int)
.rhoIn
- Reflection coefficient.khiIn
- Expansion coefficient.gammaIn
- Contraction coefficient.sigmaIn
- Shrinkage coefficient.public NelderMeadSimplex(double[] steps)
steps
- Steps along the canonical axes representing box edges.
They may be negative but not zero. Seepublic NelderMeadSimplex(double[] steps, double rhoIn, double khiIn, double gammaIn, double sigmaIn)
steps
- Steps along the canonical axes representing box edges.
They may be negative but not zero. See AbstractSimplex.AbstractSimplex(double[])
.rhoIn
- Reflection coefficient.khiIn
- Expansion coefficient.gammaIn
- Contraction coefficient.sigmaIn
- 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 rhoIn, double khiIn, double gammaIn, double sigmaIn)
referenceSimplex
- Reference simplex. See AbstractSimplex.AbstractSimplex(double[][])
.rhoIn
- Reflection coefficient.khiIn
- Expansion coefficient.gammaIn
- Contraction coefficient.sigmaIn
- 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.public void iterate(MultivariateFunction evaluationFunction, Comparator<PointValuePair> comparator)
iterate
in class AbstractSimplex
evaluationFunction
- Evaluation function.comparator
- Comparator to use to sort simplex vertices from best
to worst.Copyright © 2020 CNES. All rights reserved.