1#ifndef FlowshopEvalOp_h
2#define FlowshopEvalOp_h
4#include "../API/Problem.h"
34 FitnessP
evaluate(IndividualP individual);
37 MoveP randomMove(IndividualP);
38 bool applyMove(IndividualP&, MoveP);
39 PathP initPathTo(IndividualP, IndividualP);
40 int getPathLength(PathP);
41 MoveP nextRandomMove(PathP);
44 struct problem* problemInstance;
45 struct solution *solutionInstance, *solutionInstance2;
46 struct move* moveInstance;
48 void populateSolutionInstance(IndividualP,
struct solution*);
49 void readSolutionInstance(IndividualP,
struct solution*);
51typedef boost::shared_ptr<FlowshopEvalOp> FlowshopEvalOpP;
53#endif FlowshopEvalOp_h
bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
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.