1#ifndef GPSymbRegEvalOp_h
2#define GPSymbRegEvalOp_h
31#include "DataWriter.h"
32#include "ErrorMetric.h"
37 FitnessP
evaluate(IndividualP individual);
40 bool csvRead(StateP state, std::string entry, std::vector<double>* vec);
41 void readIndividual(IndividualP individual);
43 std::vector<double> x;
44 std::vector<double> y;
45 std::vector<double> f;
48 std::vector<string> varNames;
55 bool errorWeightsDefined;
56 std::vector<double> errorWeights;
61 FitnessP evaluateUsingLinearScaling(IndividualP individual);
62 FitnessP evaluateWithoutLinearScaling(IndividualP individual);
65typedef boost::shared_ptr<GPSymbRegEvalOp> GPSymbRegEvalOpP;
Symbolic regression evaluation operator.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.