ECF 1.5
FunctionMinEvalOp.h
1#ifndef FUNCTIONMINEVALOP_H_
2#define FUNCTIONMINEVALOP_H_
3
4#include <cmath>
5
6
45class FunctionMinEvalOp : public EvaluateOp
46{
47public:
48 uint iFunction_;
49 std::string cocoFolder_;
50 std::string cocoAlgName_;
51 std::string cocoAlgComments_;
56
57public:
59 {
60 isCocoInitialized_ = false;
61 experimentMode_ = false;
62 }
63 FitnessP evaluate(IndividualP individual);
64 void registerParameters(StateP);
65 bool initialize(StateP);
66};
67typedef boost::shared_ptr<FunctionMinEvalOp> FunctionMinEvalOpP;
68
69#endif /* FUNCTIONMINEVALOP_H_ */
Evaluation base class.
Definition: EvaluateOp.h:17
Function minimization evaluation class.
FitnessP evaluate(IndividualP individual)
Evaluate a single individual. Method must create and return a Fitness object.
std::string cocoAlgComments_
COCO algorithm description.
double coco_optimum_
COCO function optimal value.
uint cocoInstance_
COCO function instance.
std::string cocoAlgName_
COCO algorithm name.
bool experimentMode_
enable COCO experiment
uint iFunction_
function index
void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
std::string cocoFolder_
COCO output folder.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
bool isCocoInitialized_
is COCO initialized