lio.crossover
Interface Crossover
- All Superinterfaces: 
 - LiOResource
 
- All Known Implementing Classes: 
 - ArithmeticalCrossover, BLXAlphaCrossover, DiscreteCrossover, ExtendedIntermediateCrossover, ExtendedLineCrossover, FlatCrossover, HUX, LinearCrossover, OnePointCrossover, OrderCrossover, PMX, SimpleCrossover, TwoPointCrossover, UniformCrossover, WrightsHeuristicCrossover
 
public interface Crossover
- extends LiOResource
 
Simple crossover operator. It crosses two individuals, parent 1 and parent 2
 and returns it offspring while preserving them. Since operator may give rise
 to several new individuals, the number of them is passed as parameter as
 well.
 
 
getSizeOffSpring
int getSizeOffSpring()
 
- Returns:
 - The size of the offspring produced by the operator.
 
 
cross
Individual[] cross(Individual parent1,
                   Individual parent2)
- Crosses two individuals.
 
- Parameters:
 parent1 - First parentparent2 - Second parent
- Returns:
 - An array of individuals containing the offspring.