|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Interface for crossover (recombination) operators. More...
#include <Crossover.h>
Public Member Functions | |
| virtual | ~Crossover ()=default |
| virtual std::pair< Individual< GeneType >, Individual< GeneType > > | crossover (const Individual< GeneType > &parent1, const Individual< GeneType > &parent2)=0 |
| Performs crossover between two parents. | |
Interface for crossover (recombination) operators.
Crossover takes two parent individuals and produces two children by combining their genetic material.
| GeneType | The numeric type of the genes. |
Definition at line 20 of file Crossover.h.
|
virtualdefault |
|
pure virtual |
Performs crossover between two parents.
| parent1 | The first parent. |
| parent2 | The second parent. |
Implemented in galib::ArithmeticCrossover< GeneType >, galib::SinglePointCrossover< GeneType >, and galib::UniformCrossover< GeneType >.