2#include "SymbRegEvalOp.h"
14 myGenotype_->registerParameter(state,
"crx.homologous", (voidP)
new double(0), ECF::DOUBLE);
19 voidP sptr =
myGenotype_->getParameterValue(state,
"crx.homologous");
30 typedef boost::shared_ptr<TreeCrxHomologous> TreeCrxHomologousP;
49 vector<CrossoverOpP> crx;
62 vector<MutationOpP> mut;
81typedef boost::shared_ptr<Tree::MyTree> MyTreeP;
84int main(
int argc,
char **argv)
86 StateP state (
new State);
93 state->addGenotype((GenotypeP)tree);
double probability_
probability of usage of this crossover operator
GenotypeP myGenotype_
pointer to the Genotype that defines this CrossoverOp
virtual void registerParameters(StateP)
Register parameters with the system. Called before CrossoverOp::initialize.
virtual bool initialize(StateP)
Initialize crossover operator. Called before first crossover operation.
virtual bool mate(GenotypeP, GenotypeP, GenotypeP)=0
std::string name_
genotype's name
State class - backbone of the framework.
Symbolic regression evaluation operator (using AP genotype).
vector< CrossoverOpP > getCrossoverOp()
Create and return a vector of crossover operators.
MyTree * copy()
Create an identical copy of the genotype object.
vector< MutationOpP > getMutationOp()
Create and return a vector of mutation operators.
bool initialize(StateP state)
Initialize a genotype object (read parameters, perform sanity check, build data)
Tree class - implements genotype as a tree.
bool initialize(StateP state)
Initialize a genotype object (read parameters, perform sanity check, build data)