CrossoverOp base class. More...
#include <Crossover.h>
Public Member Functions | |
| virtual bool | mate (GenotypeP, GenotypeP, GenotypeP)=0 |
| virtual bool | initialize (StateP) |
| virtual void | registerParameters (StateP) |
Public Attributes | |
| StateP | state_ |
| double | probability_ |
| probability of usage of this crossover operator | |
| GenotypeP | myGenotype_ |
CrossoverOp base class.
Each CrossoverOp class crosses a pair of _genotypes_. Each Genotype class must define its own set of CrossoverOp classes.
Definition at line 17 of file Crossover.h.
| virtual bool CrossoverOp::initialize | ( | StateP | ) | [inline, virtual] |
Initialize crossover operator. Called before first crossover operation.
Reimplemented in Binary::BinaryCrsOnePoint, Binary::BinaryCrsUniform, BitString::BitStringCrsOnePoint, BitString::BitStringCrsUniform, FloatingPoint::FloatingPointCrsArithmetic, FloatingPoint::FloatingPointCrsOnePoint, Permutation::PermutationCrsOX, Permutation::PermutationCrsPBX, Permutation::PermutationCrsPMX, Tree::TreeCrxContextPreserved, Tree::TreeCrxOnePoint, Tree::TreeCrxSimple, TreeCrxSimple, Tree::TreeCrxSizeFair, and Tree::TreeCrxUniform.
Definition at line 32 of file Crossover.h.
| virtual bool CrossoverOp::mate | ( | GenotypeP | , | |
| GenotypeP | , | |||
| GenotypeP | ||||
| ) | [pure virtual] |
Performs crossover of two genotype objects. Each genotype object must be initialized!
Implemented in Binary::BinaryCrsOnePoint, Binary::BinaryCrsUniform, BitString::BitStringCrsOnePoint, BitString::BitStringCrsUniform, FloatingPoint::FloatingPointCrsArithmetic, FloatingPoint::FloatingPointCrsOnePoint, Permutation::PermutationCrsOX, Permutation::PermutationCrsPBX, Permutation::PermutationCrsPMX, Tree::TreeCrxContextPreserved, Tree::TreeCrxOnePoint, Tree::TreeCrxSimple, TreeCrxSimple, Tree::TreeCrxSizeFair, and Tree::TreeCrxUniform.
| virtual void CrossoverOp::registerParameters | ( | StateP | ) | [inline, virtual] |
Register parameters with the system. Called before CrossoverOp::initialize.
Reimplemented in Binary::BinaryCrsOnePoint, Binary::BinaryCrsUniform, BitString::BitStringCrsOnePoint, BitString::BitStringCrsUniform, FloatingPoint::FloatingPointCrsArithmetic, FloatingPoint::FloatingPointCrsOnePoint, Permutation::PermutationCrsOX, Permutation::PermutationCrsPBX, Permutation::PermutationCrsPMX, Tree::TreeCrxContextPreserved, Tree::TreeCrxOnePoint, Tree::TreeCrxSimple, TreeCrxSimple, Tree::TreeCrxSizeFair, and Tree::TreeCrxUniform.
Definition at line 38 of file Crossover.h.
1.7.1