![]() |
ECF 1.5
|
Public Member Functions | |
| void | registerParameters (StateP) |
| Register evaluator parameters. Called before EvaluateOp::initialize method. More... | |
| 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) |
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) |
| 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 |
Definition at line 23 of file KnapsackEvalop.h.
|
virtual |
Reimplemented from Problem.
Definition at line 47 of file KnapsackEvalOp.cpp.
|
virtual |
Evaluate a single individual. Method must create and return a Fitness object.
Implements EvaluateOp.
Definition at line 106 of file KnapsackEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 80 of file KnapsackEvalOp.cpp.
|
virtual |
Initialize the evaluator. Called before first evaluation occurs.
Reimplemented from EvaluateOp.
Definition at line 12 of file KnapsackEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 64 of file KnapsackEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 86 of file KnapsackEvalOp.cpp.
|
virtual |
Reimplemented from Problem.
Definition at line 39 of file KnapsackEvalOp.cpp.
|
virtual |
Register evaluator parameters. Called before EvaluateOp::initialize method.
Reimplemented from EvaluateOp.
Definition at line 6 of file KnapsackEvalOp.cpp.
| struct problem* KnapsackEvalOp::problemInstance |
Definition at line 40 of file KnapsackEvalop.h.
| struct solution* KnapsackEvalOp::solutionInstance |
Definition at line 41 of file KnapsackEvalop.h.
| StateP KnapsackEvalOp::state_ |
Definition at line 26 of file KnapsackEvalop.h.