Class CompoundMutation

All Implemented Interfaces:
Configurable, Mutation, Variation

public class CompoundMutation extends AbstractCompoundVariation<Mutation> implements Mutation
Versions of CompoundVariation that only supports mutation operators.
  • Constructor Details

    • CompoundMutation

      public CompoundMutation(Mutation... operators)
      Constructs a compound mutation operator with the specified operators.
      Parameters:
      operators - the mutation operators in the order they are applied
  • Method Details

    • mutate

      public Solution mutate(Solution parent)
      Description copied from interface: Mutation
      Mutates the given parent to produce an offspring.
      Specified by:
      mutate in interface Mutation
      Parameters:
      parent - the parent solution
      Returns:
      the offspring