|
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.permutation.PMX
public class PMX
Partially mapped crossover (PMX) operator. PMX is similar to two-point crossover, but includes a repair operator to ensure the offspring are valid permutations.
This variation operator is type-safe.
References:
| Constructor Summary | |
|---|---|
PMX(double probability)
Constructs a PMX operator with the specified probability. |
|
| Method Summary | |
|---|---|
static void |
evolve(Permutation p1,
Permutation p2)
Evolves the specified permutations using the PMX operator. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMX(double probability)
probability - the probability of applying this operator| Method Detail |
|---|
public static void evolve(Permutation p1,
Permutation p2)
p1 - the first permutationp2 - the second permutation
VariationException - if the permutations are not the same sizepublic 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 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 | |||||