Class MutateGenericImplementation

java.lang.Object
org.opt4j.operator.AbstractGenericOperator<Mutate<Genotype>,Mutate<?>>
org.opt4j.operator.mutate.MutateGenericImplementation
All Implemented Interfaces:
Operator<Genotype>, GenericOperator<Mutate<Genotype>>, Mutate<Genotype>

public class MutateGenericImplementation extends AbstractGenericOperator<Mutate<Genotype>,Mutate<?>> implements Mutate<Genotype>
Implementation of the Mutate interface.
  • Constructor Details

  • Method Details

    • mutate

      public void mutate(Genotype genotype, double p)
      Description copied from interface: Mutate
      Performs a mutation for a Genotype.
      Specified by:
      mutate in interface Mutate<Genotype>
      Parameters:
      genotype - the genotype to be mutated
      p - the mutation rate
    • mutateComposite

      protected void mutateComposite(CompositeGenotype<?,?> genotype, double p)