4#include "../API/Problem.h"
35 FitnessP
evaluate(IndividualP individual);
38 MoveP randomMove(IndividualP);
39 bool applyMove(IndividualP&, MoveP);
40 PathP initPathTo(IndividualP, IndividualP);
41 int getPathLength(PathP);
42 MoveP nextRandomMove(PathP);
45 struct problem* problemInstance;
46 struct solution *solutionInstance, *solutionInstance2;
47 struct move* moveInstance;
49 void populateSolutionInstance(IndividualP,
struct solution*);
50 void readSolutionInstance(IndividualP,
struct solution*);
53typedef boost::shared_ptr<NQueensEvalOp> NQueensEvalOpP;
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.