ECF 1.5
|
Public Member Functions | |
bool | initialize (StateP) |
Initialize the evaluator. Called before first evaluation occurs. More... | |
FitnessP | evaluate (IndividualP individual) |
Evaluate a single individual. Method must create and return a Fitness object. More... | |
MoveP | randomMove (IndividualP) |
bool | applyMove (IndividualP &, MoveP) |
PathP | initPathTo (IndividualP, IndividualP) |
int | getPathLength (PathP) |
MoveP | nextRandomMove (PathP) |
void | populateSolutionInstance (IndividualP, struct solution *) |
void | readSolutionInstance (IndividualP, struct solution *) |
Public Member Functions inherited from Problem | |
virtual MoveP | randomMove (IndividualP) |
virtual bool | applyMove (IndividualP &, MoveP) |
virtual PathP | initPathTo (IndividualP, IndividualP) |
virtual PathP | initPathAwayFrom (IndividualP) |
virtual int | getPathLength (PathP) |
virtual MoveP | nextRandomMove (PathP) |
Public Member Functions inherited from EvaluateOp | |
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 | |
StateP | state_ |
struct problem * | problemInstance |
struct solution * | solutionInstance |
struct solution * | solutionInstance2 |
struct move * | moveInstance |
struct pathState * | psInstance |
Definition at line 28 of file NQueensEvalOp.h.
|
virtual |
Reimplemented from Problem.
Definition at line 55 of file NQueensEvalOp.cpp.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
Definition at line 93 of file NQueensEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 78 of file NQueensEvalOp.cpp.
|
virtual |
Initialize the evaluator. Called before first evaluation occurs.
Reimplemented from EvaluateOp.
Definition at line 5 of file NQueensEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 68 of file NQueensEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 85 of file NQueensEvalOp.cpp.
void NQueensEvalOp::populateSolutionInstance | ( | IndividualP | ind, |
struct solution * | s | ||
) |
Definition at line 24 of file NQueensEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 46 of file NQueensEvalOp.cpp.
void NQueensEvalOp::readSolutionInstance | ( | IndividualP | ind, |
struct solution * | s | ||
) |
Definition at line 35 of file NQueensEvalOp.cpp.
struct move* NQueensEvalOp::moveInstance |
Definition at line 47 of file NQueensEvalOp.h.
struct problem* NQueensEvalOp::problemInstance |
Definition at line 45 of file NQueensEvalOp.h.
struct pathState* NQueensEvalOp::psInstance |
Definition at line 48 of file NQueensEvalOp.h.
struct solution* NQueensEvalOp::solutionInstance |
Definition at line 46 of file NQueensEvalOp.h.
struct solution * NQueensEvalOp::solutionInstance2 |
Definition at line 46 of file NQueensEvalOp.h.
StateP NQueensEvalOp::state_ |
Definition at line 31 of file NQueensEvalOp.h.