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

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

public class RSMutator<G extends Gene<?,G>,C extends Comparable<? super C>> extends Mutator<G,C>
The reverse sequence mutation, two positions i and j are randomly chosen The gene order in a chromosome will then be reversed between this two points. This mutation operator can also be used for combinatorial problems, where no duplicated genes within a chromosome are allowed, e.g., for the TSP.
Since:
5.0
Version:
5.0
See Also: