ECF 1.5
|
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! More... | |
virtual bool | initialize (StateP) |
Initialize mutation operator. Called before first mutation operation. More... | |
virtual void | registerParameters (StateP) |
Register parameters with the system. Called before MutationOp::initialize. More... | |
Public Attributes | |
StateP | state_ |
double | probability_ |
probability of usage of this mutation operator More... | |
GenotypeP | myGenotype_ |
pointer to the Genotype that defines this MutationOp More... | |
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 cartesian::MutateConnection, cartesian::MutateConnectionSilent, cartesian::MutateFunction, cartesian::MutateFunctionSilent, cartesian::MutateFunctionSwap, cartesian::MutateIntoSilent, GEPChromosome::GEPChromosomeMutGauss, GEPChromosome::GEPChromosomeMutOp, Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, cart::CartesianMutOnePoint, FloatingPoint::FloatingPointMutSimple, 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, cart::CartesianMutOnePoint, FloatingPoint::FloatingPointMutSimple, Permutation::PermutationMutIns, Permutation::PermutationMutInv, Permutation::PermutationMutToggle, Tree::TreeMutGauss, Tree::TreeMutHoist, Tree::TreeMutNodeComplement, Tree::TreeMutNodeReplace, Tree::TreeMutPermutation, Tree::TreeMutShrink, Tree::TreeMutSubtree, cartesian::MutateConnection, cartesian::MutateConnectionSilent, cartesian::MutateFunction, cartesian::MutateFunctionSilent, cartesian::MutateFunctionSwap, cartesian::MutateIntoSilent, IntGenotype::IntGenotypeMutOp, IntGenotype::IntGenotypeMutOp, GEPChromosome::GEPChromosomeMutGauss, and GEPChromosome::GEPChromosomeMutOp.
|
inlinevirtual |
Register parameters with the system. Called before MutationOp::initialize.
Reimplemented in cartesian::MutateConnection, cartesian::MutateConnectionSilent, cartesian::MutateFunction, cartesian::MutateFunctionSilent, cartesian::MutateFunctionSwap, cartesian::MutateIntoSilent, GEPChromosome::GEPChromosomeMutGauss, GEPChromosome::GEPChromosomeMutOp, Binary::BinaryMutMix, Binary::BinaryMutSimple, BitString::BitStringMutMix, BitString::BitStringMutSimple, cart::CartesianMutOnePoint, FloatingPoint::FloatingPointMutSimple, 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.