|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.core.operator.binary.BitFlip
public class BitFlip
Bit flip mutation operator. Each bit is flipped (switched from a 0
to a 1, or vice versa) using the specified probability.
This operator is type-safe.
| Constructor Summary | |
|---|---|
BitFlip(double probability)
Constructs a bit flip operator. |
|
| Method Summary | |
|---|---|
static void |
evolve(BinaryVariable variable,
double probability)
Mutates the specified variable using bit flip 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 flipping a bit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitFlip(double probability)
probability - the probability of flipping a bit| Method Detail |
|---|
public double getProbability()
public Solution[] evolve(Solution[] parents)
VariationgetArity) 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 Variationparents - the array of parent solutions
public static void evolve(BinaryVariable variable,
double probability)
variable - the variable to be mutatedpublic int getArity()
Variationevolve method.
getArity in interface Variationevolve method
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||