ECF 1.5
OneMaxEvalOp.h
1#ifndef OneMaxEvalOp_h
2#define OneMaxEvalOp_h
3
4
24class OneMaxEvalOp : public EvaluateOp
25{
26public:
27 void registerParameters(StateP);
28 FitnessP evaluate(IndividualP individual);
29 bool initialize(StateP);
30
31 std::vector< std::vector<int> > image;
32 uint width, height;
33 uint bestVal;
34 StateP s;
35};
36typedef boost::shared_ptr<OneMaxEvalOp> OneMaxEvalOpP;
37
38
39#endif // OneMaxEvalOp_h
Evaluation base class.
Definition: EvaluateOp.h:17
OneMax problem evaluation class.
Definition: OneMaxEvalOp.h:25
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
Definition: OneMaxEvalOp.cpp:7
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.