org.apache.commons.math.genetics
Interface CrossoverPolicy
- All Known Implementing Classes:
- OnePointCrossover
public interface CrossoverPolicy
Policy used to create a pair of new chromosomes by performing a crossover
operation on a source pair of chromosomes.
- Since:
- 2.0
- Version:
- $Revision: 799857 $ $Date: 2009-08-01 09:07:12 -0400 (Sat, 01 Aug 2009) $
crossover
ChromosomePair crossover(Chromosome first,
Chromosome second)
- Perform a crossover operation on the given chromosomes.
- Parameters:
first
- the first chromosome.second
- the second chromosome.
- Returns:
- the pair of new chromosomes that resulted from the crossover.
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.