Package io.jenetics

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

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

public class ShuffleMutator<G extends Gene<?,G>,C extends Comparable<? super C>> extends Mutator<G,C>
The shuffle mutation, changes the order of the genes between two randomly chosen positions. The genes between the positions are shuffled. This mutation operator can also be used for combinatorial problems, where no duplicated genes within a chromosome are allowed, e.g., for the TSP.

Shuffle mutator

Since:
8.0
Version:
8.0
See Also: