Class MutatePermutationInsert

java.lang.Object
org.opt4j.operator.mutate.MutatePermutationInsert
All Implemented Interfaces:
Operator<PermutationGenotype<?>>, Mutate<PermutationGenotype<?>>, MutatePermutation

public class MutatePermutationInsert extends Object implements MutatePermutation

Mutate for the PermutationGenotype. With a given mutation rate each element is inserted on a different position.

Given a permutation 1 2 3 4 5 6 7 8, this might result in 1 2 6 3 4 5 7 8.

  • Field Details

    • random

      protected final Random random
  • Constructor Details

    • MutatePermutationInsert

      @Inject public MutatePermutationInsert(Rand random)
      Constructs a new MutatePermutation with the given mutation rate.
      Parameters:
      random - the random number generator
  • Method Details