2#include "SymbRegEvalOp.h"
5int main(
int argc,
char **argv)
7 StateP state(
new State);
11 if (!state->initialize(argc, argv))
18 std::vector<IndividualP> hof = state->getHoF()->getBest();
19 IndividualP best = hof[0];
20 ofstream outfile(
"./best.txt");
21 outfile << best->toString();
25 XMLNode xInd = XMLNode::parseFile(
"./best.txt",
"Individual");
26 IndividualP ind = (IndividualP)
new Individual(state);
28 state->getAlgorithm()->evaluate(ind);
29 std::cout << ind->toString() <<
"\n";
CGP symbolic regression evaluation operator.
Individual class - inherits a vector of Genotype objects.
void read(XMLNode &)
read individual from XML node
State class - backbone of the framework.