com.epochx.op.crossover
Interface Crossover<TYPE>
- All Known Implementing Classes:
- KozaCrossover, UniformPointCrossover
public interface Crossover<TYPE>
This interface defines the structure which specific crossover operations can
implement to provide different methods of crossing over two
CandidatePrograms. Crossover instances are used by the core
GPCrossover class to perform a single crossover operation.
- See Also:
GPCrossover
crossover
CandidateProgram<TYPE>[] crossover(CandidateProgram<TYPE> parent1,
CandidateProgram<TYPE> parent2)
- Implementations should perform some form of exchange of material between
the two children, returning the resultant children.
- Parameters:
parent1 - The first CandidateProgram selected to undergo this
crossover operation.parent2 - The second CandidateProgram selected to undergo this
crossover operation.
- Returns:
- An array of the child CandidatePrograms that were the result of
an exchange of genetic material between the two parents.