2#include "SymbRegEvalOp.h"
5int main(
int argc,
char **argv)
7 StateP state (
new State);
12 state->addOperator((OperatorP)
new WriteBest);
14 state->initialize(argc, argv);
17 XMLNode xInd = XMLNode::parseFile(argv[2],
"Individual");
18 IndividualP ind = (IndividualP)
new Individual(state);
20 evaluateVerbose =
true;
21 ind->fitness = state->getEvalOp()->evaluate(ind);
22 std::cout << ind->toString();
Individual class - inherits a vector of Genotype objects.
void read(XMLNode &)
read individual from XML node
State class - backbone of the framework.
Symbolic regression evaluation operator (using AP genotype).