Class MutateGenericImplementation

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Operator<org.opt4j.core.Genotype>, GenericOperator<Mutate<org.opt4j.core.Genotype>>, Mutate<org.opt4j.core.Genotype>

    public class MutateGenericImplementation
    extends AbstractGenericOperator<Mutate<org.opt4j.core.Genotype>,​Mutate<?>>
    implements Mutate<org.opt4j.core.Genotype>
    Implementation of the Mutate interface.
    • Method Detail

      • mutate

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

        protected void mutateComposite​(org.opt4j.core.genotype.CompositeGenotype<?,​?> genotype,
                                       double p)