|
MOEA Framework 2.12 API Specification |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moeaframework.core.operator.real.UM
public class UM
Uniform mutation (UM) operator. Each decision variable is mutated by selecting a new value within its bounds uniformly at random. The figure below depicts the offspring distribution.
It is recommended each decision variable is mutated with a probability of
1 / L
, where L
is the number of decision variables. This
results in one mutation per offspring on average.
This operator is type-safe.
Constructor Summary | |
---|---|
UM(double probability)
Constructs a uniform mutation operator. |
Method Summary | |
---|---|
static void |
evolve(RealVariable variable)
Mutates the specified variable using uniform mutation. |
Solution[] |
evolve(Solution[] parents)
Evolves one or more parent solutions (specified by getArity ) and
produces one or more child solutions. |
int |
getArity()
Returns the number of solutions that must be supplied to the evolve method. |
double |
getProbability()
Returns the probability of mutating each variable in a solution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UM(double probability)
probability
- the probability of mutating each variable in a
solutionMethod Detail |
---|
public double getProbability()
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.
evolve
in interface Variation
parents
- the array of parent solutions
public static void evolve(RealVariable variable)
variable
- the variable to be mutatedpublic int getArity()
Variation
evolve
method.
getArity
in interface Variation
evolve
method
|
MOEA Framework 2.12 API Specification |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |