2#include "SymbRegEvalOp.h"
4int main(
int argc,
char **argv)
6 StateP state (
new State);
11 state->initialize(argc, argv);
15 IndividualP ind = state->getHoF()->getBest().at(0);
18 std::string stablo = tree->
toString();
20 stablo =
"<Tree size=\"3\">+ X X </Tree>";
22 XMLNode xTree = XMLNode::parseString(stablo.c_str());
26 ind->fitness = state->getEvalOp()->evaluate(ind);
27 cout << ind->toString() << endl;
std::string toString()
Output genotype to string.
State class - backbone of the framework.
Symbolic regression evaluation operator (using AP genotype).
Tree class - implements genotype as a tree.
void read(XMLNode &)
Read genotype data from XMLNode.