![]() |
ECF 1.7
|
MutationOp base class. More...
#include <Mutation.h>
Public Member Functions | |
| virtual bool | mutate (GenotypeP)=0 |
| Performs mutation of a genotype object. The genotype object must be initialized! | |
| virtual bool | initialize (StateP) |
| Initialize mutation operator. Called before first mutation operation. | |
| virtual void | registerParameters (StateP) |
| Register parameters with the system. Called before MutationOp::initialize. | |
Public Attributes | |
| StateP | state_ |
| double | probability_ |
| probability of usage of this mutation operator | |
| GenotypeP | myGenotype_ |
| pointer to the Genotype that defines this MutationOp | |
MutationOp base class.
Each MutationOp class mutates a genotype object. Each Genotype class must define its own set of MutationOp classes.
Definition at line 16 of file Mutation.h.
|
inline |
Definition at line 19 of file Mutation.h.
|
inlinevirtual |
Definition at line 36 of file Mutation.h.
|
inlinevirtual |
Initialize mutation operator. Called before first mutation operation.
Reimplemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutSilent, Cartesian::CartesianMutSilent, FloatingPoint::FloatingPointMutSimple, GEP::GEPChromosomeMutGauss, GEP::GEPChromosomeMutOp, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
Definition at line 29 of file Mutation.h.
|
pure virtual |
Performs mutation of a genotype object. The genotype object must be initialized!
Implemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutSilent, Cartesian::CartesianMutSilent, FloatingPoint::FloatingPointMutSimple, GEP::GEPChromosomeMutGauss, GEP::GEPChromosomeMutOp, IntGenotype::IntGenotypeMutOp, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
|
inlinevirtual |
Register parameters with the system. Called before MutationOp::initialize.
Reimplemented in Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutNonSilent, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePoint, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutOnePointActive, Cartesian::CartesianMutSilent, Cartesian::CartesianMutSilent, FloatingPoint::FloatingPointMutSimple, GEP::GEPChromosomeMutGauss, GEP::GEPChromosomeMutOp, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, and Tree::TreeMutSubtree.
Definition at line 33 of file Mutation.h.
| GenotypeP MutationOp::myGenotype_ |
pointer to the Genotype that defines this MutationOp
Definition at line 41 of file Mutation.h.
| double MutationOp::probability_ |
probability of usage of this mutation operator
Definition at line 40 of file Mutation.h.
| StateP MutationOp::state_ |
Definition at line 39 of file Mutation.h.