Package behaviour

Class RandomMutation

java.lang.Object
behaviour.RandomMutation
All Implemented Interfaces:
MutationBehaviour

public class RandomMutation extends Object implements MutationBehaviour
a mutation behaviour
  • Constructor Details

    • RandomMutation

      public RandomMutation()
  • Method Details

    • mutate

      public List<List<Integer>> mutate(List<List<Integer>> children, double mutationRate)
      The mutation is an evolutionary operation that randomly mutates an individual.
      Specified by:
      mutate in interface MutationBehaviour
      Parameters:
      children - the current children
      mutationRate - the mutation rate from Genetic Algorithm Setting Class
      Returns:
      the new children