Package behaviour

Class HalfElementCrossover

java.lang.Object
behaviour.HalfElementCrossover
All Implemented Interfaces:
CrossoverBehaviour

public class HalfElementCrossover extends Object implements CrossoverBehaviour
a crossover behaviour
  • Constructor Details Link icon

    • HalfElementCrossover Link icon

      public HalfElementCrossover()
  • Method Details Link icon

    • crossover Link icon

      public List<List<Integer>> crossover(List<List<Integer>> parents)
      Crossover is an evolutionary operation between two individuals, and it generates children having some parts from each parent.
      Specified by:
      crossover in interface CrossoverBehaviour
      Parameters:
      parents - the parents of the current population
      Returns:
      the new parents