public class MultiDirectionalSimplex extends AbstractSimplex
Constructor and Description |
---|
MultiDirectionalSimplex(double[] steps)
Build a multi-directional simplex with default coefficients.
|
MultiDirectionalSimplex(double[][] referenceSimplex)
Build a multi-directional simplex with default coefficients.
|
MultiDirectionalSimplex(double[][] referenceSimplex,
double khi,
double gamma)
Build a multi-directional simplex with specified coefficients.
|
MultiDirectionalSimplex(double[] steps,
double khi,
double gamma)
Build a multi-directional simplex with specified coefficients.
|
MultiDirectionalSimplex(int n)
Build a multi-directional simplex with default coefficients.
|
MultiDirectionalSimplex(int n,
double sideLength)
Build a multi-directional simplex with default coefficients.
|
MultiDirectionalSimplex(int n,
double khi,
double gamma)
Build a multi-directional simplex with specified coefficients.
|
MultiDirectionalSimplex(int n,
double sideLength,
double khi,
double gamma)
Build a multi-directional 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 MultiDirectionalSimplex(int n)
n
- Dimension of the simplex.public MultiDirectionalSimplex(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 MultiDirectionalSimplex(int n, double khi, double gamma)
n
- Dimension of the simplex. See
AbstractSimplex.AbstractSimplex(int,double)
.khi
- Expansion coefficient.gamma
- Contraction coefficient.public MultiDirectionalSimplex(int n, double sideLength, double khi, double gamma)
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)
.khi
- Expansion coefficient.gamma
- Contraction coefficient.public MultiDirectionalSimplex(double[] steps)
steps
- Steps along the canonical axes representing box edges.
They may be negative but not zero. Seepublic MultiDirectionalSimplex(double[] steps, double khi, double gamma)
steps
- Steps along the canonical axes representing box edges.
They may be negative but not zero. See
AbstractSimplex.AbstractSimplex(double[])
.khi
- Expansion coefficient.gamma
- Contraction coefficient.public MultiDirectionalSimplex(double[][] referenceSimplex)
referenceSimplex
- Reference simplex. See
AbstractSimplex.AbstractSimplex(double[][])
.public MultiDirectionalSimplex(double[][] referenceSimplex, double khi, double gamma)
referenceSimplex
- Reference simplex. See
AbstractSimplex.AbstractSimplex(double[][])
.khi
- Expansion coefficient.gamma
- Contraction coefficient.MathIllegalArgumentException
- if the reference simplex does not contain at least one point.MathIllegalArgumentException
- 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 © 2016-2021 CS GROUP. All rights reserved.