![]() |
ECF 1.5
|
OneMax problem evaluation class. More...
#include <OneMaxEvalOp.h>
Public Member Functions | |
| FitnessP | evaluate (IndividualP individual) |
| Evaluate a single individual. Method must create and return a Fitness object. More... | |
| void | registerParameters (StateP) |
| Register evaluator parameters. Called before EvaluateOp::initialize method. More... | |
| FitnessP | evaluate (IndividualP individual) |
| Evaluate a single individual. Method must create and return a Fitness object. More... | |
| bool | initialize (StateP) |
| Initialize the evaluator. Called before first evaluation occurs. More... | |
| virtual FitnessP | evaluate (IndividualP)=0 |
| Evaluate a single individual. Method must create and return a Fitness object. More... | |
| virtual void | registerParameters (StateP) |
| Register evaluator parameters. Called before EvaluateOp::initialize method. More... | |
| virtual bool | initialize (StateP) |
| Initialize the evaluator. Called before first evaluation occurs. More... | |
Public Attributes | |
| std::vector< std::vector< int > > | image |
| uint | width |
| uint | height |
| uint | bestVal |
| StateP | s |
OneMax problem evaluation class.
Definition at line 24 of file OneMaxEvalOp.h.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
Definition at line 5 of file OneMaxEvalOp.cpp.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
|
virtual |
Initialize the evaluator. Called before first evaluation occurs.
Reimplemented from EvaluateOp.
Definition at line 13 of file OneMaxEvalOp.cpp.
|
virtual |
Register evaluator parameters. Called before EvaluateOp::initialize method.
Reimplemented from EvaluateOp.
Definition at line 7 of file OneMaxEvalOp.cpp.
| uint OneMaxEvalOp::bestVal |
Definition at line 33 of file OneMaxEvalOp.h.
| uint OneMaxEvalOp::height |
Definition at line 32 of file OneMaxEvalOp.h.
| std::vector< std::vector<int> > OneMaxEvalOp::image |
Definition at line 31 of file OneMaxEvalOp.h.
| StateP OneMaxEvalOp::s |
Definition at line 34 of file OneMaxEvalOp.h.
| uint OneMaxEvalOp::width |
Definition at line 32 of file OneMaxEvalOp.h.