1#ifndef KnapsackEvalOp_h
2#define KnapsackEvalOp_h
4#include "../API/Problem.h"
31 FitnessP
evaluate(IndividualP individual);
34 MoveP randomMove(IndividualP);
35 bool applyMove(IndividualP&, MoveP);
36 PathP initPathTo(IndividualP, IndividualP);
37 int getPathLength(PathP);
38 MoveP nextRandomMove(PathP);
40 struct problem* problemInstance;
44typedef boost::shared_ptr<KnapsackEvalOp> KnapsackEvalOpP;
46#endif KnapsackEvalOp_h
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.
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.