Package io.jenetics

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

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

public class ShiftMutator<G extends Gene<?,G>,C extends Comparable<? super C>> extends Mutator<G,C>
The shift mutation applies mutation between two randomly chosen points. A random value between the two points splits the sequences of genes between the positions. The second sequence is then shifted in front of the first one. This mutation operator can be used for combinatorial problems, where no duplicated genes within a chromosome are allowed, e.g., for the TSP.

Shift mutator

Since:
8.0
Version:
8.0
See Also: