public class PMX extends TypeSafeCrossover<Permutation>
This variation operator is type-safe.
References:
Constructor and Description |
---|
PMX()
Constructs a PMX operator that is applied with 100% probability to
every solution.
|
PMX(double probability)
Constructs a PMX operator with the specified probability.
|
Modifier and Type | Method and Description |
---|---|
void |
evolve(Permutation p1,
Permutation p2)
Evolves the specified permutations using the PMX operator.
|
java.lang.String |
getName()
Returns the name of this variation operator.
|
evolve, getArity, getProbability, setProbability
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyConfiguration, getConfiguration
public PMX()
public PMX(double probability)
probability
- the probability of applying this operatorpublic java.lang.String getName()
Variation
public void evolve(Permutation p1, Permutation p2)
evolve
in class TypeSafeCrossover<Permutation>
p1
- the first permutationp2
- the second permutationFrameworkException
- if the permutations are not the same sizeCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.