ECF 1.5
EvalOp.h
1#ifndef EvalOp_h
2#define EvalOp_h
3
4
5class EvalOp : public EvaluateOp
6{
7protected:
8 StateP state_;
9
10public:
11 void registerParameters(StateP);
12 FitnessP evaluate(IndividualP individual);
13 bool initialize(StateP);
14
15 uint nVariables;
16 int varijanta;
17 int targetNl;
18 std::vector< std::vector<bool> > inputMap;
19 std::vector< std::string > inputNames;
20 std::vector<bool> results;
21 std::vector<int> tt;
22 std::vector<uint> anfPos;
23 bool showTruth;
24
25 uint showTree(string& output, Tree::Tree* tree, uint iNode = 0, uint prefix = 0);
26
27};
28typedef boost::shared_ptr<EvalOp> EvalOpP;
29
30#endif
Definition: EvalOp.h:6
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
Definition: EvalOp.cpp:103
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
Definition: EvalOp.cpp:165
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
Definition: EvalOp.cpp:111
Evaluation base class.
Definition: EvaluateOp.h:17
Tree class - implements genotype as a tree.
Definition: Tree_c.h:29