3#include "SymbRegEvalOp.h"
11 for(uint i = 0; i < nSamples; i++) {
13 codomain.push_back(x + sin(x));
32 for(uint i = 0; i < nSamples; i++) {
39 value += fabs(codomain[i] - result);
41 fitness->setValue(value);
Fitness for minimization problems.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
Tree class - implements genotype as a tree.
void setTerminalValue(std::string, void *)
Set a terminal's value.
void execute(void *)
Execute current tree.