Binary genotype: one point crossover operator. More...
#include <BinaryCrsOnePoint.h>
Public Member Functions | |
| bool | mate (GenotypeP gen1, GenotypeP gen2, GenotypeP child) |
| bool | initialize (StateP) |
| void | registerParameters (StateP) |
Binary genotype: one point crossover operator.
Definition at line 13 of file BinaryCrsOnePoint.h.
| bool Binary::BinaryCrsOnePoint::initialize | ( | StateP | ) | [virtual] |
Initialize crossover operator. Called before first crossover operation.
Reimplemented from CrossoverOp.
Definition at line 13 of file BinaryCrsOnePoint.cpp.
| bool Binary::BinaryCrsOnePoint::mate | ( | GenotypeP | , | |
| GenotypeP | , | |||
| GenotypeP | ||||
| ) | [virtual] |
Performs crossover of two genotype objects. Each genotype object must be initialized!
Implements CrossoverOp.
Definition at line 21 of file BinaryCrsOnePoint.cpp.
| void Binary::BinaryCrsOnePoint::registerParameters | ( | StateP | ) | [virtual] |
Register parameters with the system. Called before CrossoverOp::initialize.
Reimplemented from CrossoverOp.
Definition at line 7 of file BinaryCrsOnePoint.cpp.
1.7.1