public class SPX extends MultiParentVariation
References:
numberOfOffspring, numberOfParents
Constructor and Description |
---|
SPX()
Constructs a SPX operator with default settings, taking 10 parents and
producing 2 offspring.
|
SPX(int numberOfParents,
int numberOfOffspring)
Constructs a SPX operator with the specified number of parents and
number of offspring.
|
SPX(int numberOfParents,
int numberOfOffspring,
double epsilon)
Constructs a simplex operator with the specified number of parents,
number of offspring, and expansion rate.
|
Modifier and Type | Method and Description |
---|---|
Solution[] |
evolve(Solution[] parents)
Evolves one or more parent solutions (specified by
getArity ) and produces one or more child solutions. |
double |
getEpsilon()
Returns the expansion rate of this operator.
|
java.lang.String |
getName()
Returns the name of this variation operator.
|
void |
setEpsilon(double epsilon)
Sets the expansion rate of this operator.
|
getArity, getNumberOfOffspring, getNumberOfParents, setNumberOfOffspring, setNumberOfParents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
public SPX()
sqrt(numberOfParents+1)
to preserve the covariance matrix of the
population.public SPX(int numberOfParents, int numberOfOffspring)
sqrt(numberOfParents+1)
to preserve the covariance matrix of the
population.numberOfParents
- the number of parentsnumberOfOffspring
- the number of offspringpublic SPX(int numberOfParents, int numberOfOffspring, double epsilon)
numberOfParents
- the number of parentsnumberOfOffspring
- the number of offspringepsilon
- the expansion ratepublic java.lang.String getName()
Variation
public Solution[] evolve(Solution[] parents)
Variation
getArity
) and produces one or more child solutions.
By contract, the parents must not be modified. The copy constructor should be used to create copies of the
parents with these copies subsequently modified.parents
- the array of parent solutionspublic double getEpsilon()
public void setEpsilon(double epsilon)
sqrt(numberOfParents+1)
.epsilon
- the expansion rateCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.