Package io.jenetics

Class SwapMutator<G extends Gene<?,G>,C extends Comparable<? super C>>

java.lang.Object
io.jenetics.AbstractAlterer<G,C>
io.jenetics.Mutator<G,C>
io.jenetics.SwapMutator<G,C>
All Implemented Interfaces:
Alterer<G,C>

public class SwapMutator<G extends Gene<?,G>,C extends Comparable<? super C>> extends Mutator<G,C>
The SwapMutation changes the order of genes in a chromosome, with the hope of bringing related genes closer together, thereby facilitating the production of building blocks. This mutation operator can also be used for combinatorial problems, where no duplicated genes within a chromosome are allowed, e.g. for the TSP.

This mutator is also known as Partial Shuffle Mutator (PSM).

Since:
1.0
Version:
5.0
See Also: