Interface Crossover<G extends Genotype>

Type Parameters:
G - the type of genotype
All Superinterfaces:
Operator<G>
All Known Subinterfaces:
CrossoverBoolean, CrossoverInteger, CrossoverPermutation
All Known Implementing Classes:
CrossoverBooleanDefault, CrossoverBooleanRate, CrossoverBooleanXPoint, CrossoverDouble, CrossoverDoubleBLX, CrossoverDoubleDefault, CrossoverDoubleElementwise, CrossoverDoubleSBX, CrossoverDoubleUnfairAverage, CrossoverGenericImplementation, CrossoverIntegerDefault, CrossoverIntegerRate, CrossoverIntegerXPoint, CrossoverListRate, CrossoverListXPoint, CrossoverPermutationBucket, CrossoverPermutationDefault, CrossoverPermutationOnePoint

public interface Crossover<G extends Genotype> extends Operator<G>
Crossover operator that performs a crossover for two parents.
  • Method Summary

    Modifier and Type
    Method
    Description
    crossover(G parent1, G parent2)
    Performs a crossover for two Genotype parents.
  • Method Details

    • crossover

      Pair<G> crossover(G parent1, G parent2)
      Performs a crossover for two Genotype parents. The resulting pair of Genotype offspring is returned.
      Parameters:
      parent1 - The first parent genotype for the crossover
      parent2 - The second parents genotype for the crossover
      Returns:
      The resulting pair of offspring genotypes