Package org.opt4j.operator.crossover
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<G>
crossover(G parent1, G parent2)
Performs a crossover for twoGenotype
parents.
-
-
-
Method Detail
-
crossover
Pair<G> crossover(G parent1, G parent2)
Performs a crossover for twoGenotype
parents. The resulting pair ofGenotype
offspring is returned.- Parameters:
parent1
- The first parent genotype for the crossoverparent2
- The second parents genotype for the crossover- Returns:
- The resulting pair of offspring genotypes
-
-