G - the type of genotypepublic interface Crossover<G extends Genotype> extends Operator<G>
| Modifier and Type | Method and Description |
|---|---|
Pair<G> |
crossover(G parent1,
G parent2)
Performs a crossover for two
Genotype parents. |
Pair<G> crossover(G parent1, G parent2)
Genotype parents. The resulting pair
of Genotype offspring is returned.parent1 - The first parent genotype for the crossoverparent2 - The second parents genotype for the crossover