ECF 1.5
Public Member Functions | Public Attributes | List of all members
KnapsackEvalOp Class Reference
Inheritance diagram for KnapsackEvalOp:
Problem EvaluateOp

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 problemproblemInstance
 
struct solutionsolutionInstance
 

Detailed Description

Definition at line 23 of file KnapsackEvalop.h.

Member Function Documentation

◆ applyMove()

bool KnapsackEvalOp::applyMove ( IndividualP &  ind,
MoveP  move 
)
virtual

Reimplemented from Problem.

Definition at line 47 of file KnapsackEvalOp.cpp.

◆ evaluate()

FitnessP KnapsackEvalOp::evaluate ( IndividualP  )
virtual

Evaluate a single individual. Method must create and return a Fitness object.

Implements EvaluateOp.

Definition at line 106 of file KnapsackEvalOp.cpp.

◆ getPathLength()

int KnapsackEvalOp::getPathLength ( PathP  path)
virtual

Reimplemented from Problem.

Definition at line 80 of file KnapsackEvalOp.cpp.

◆ initialize()

bool KnapsackEvalOp::initialize ( StateP  )
virtual

Initialize the evaluator. Called before first evaluation occurs.

Reimplemented from EvaluateOp.

Definition at line 12 of file KnapsackEvalOp.cpp.

◆ initPathTo()

PathP KnapsackEvalOp::initPathTo ( IndividualP  ind1,
IndividualP  ind2 
)
virtual

Reimplemented from Problem.

Definition at line 64 of file KnapsackEvalOp.cpp.

◆ nextRandomMove()

MoveP KnapsackEvalOp::nextRandomMove ( PathP  path)
virtual

Reimplemented from Problem.

Definition at line 86 of file KnapsackEvalOp.cpp.

◆ randomMove()

MoveP KnapsackEvalOp::randomMove ( IndividualP  ind)
virtual

Reimplemented from Problem.

Definition at line 39 of file KnapsackEvalOp.cpp.

◆ registerParameters()

void KnapsackEvalOp::registerParameters ( StateP  )
virtual

Register evaluator parameters. Called before EvaluateOp::initialize method.

Reimplemented from EvaluateOp.

Definition at line 6 of file KnapsackEvalOp.cpp.

Member Data Documentation

◆ problemInstance

struct problem* KnapsackEvalOp::problemInstance

Definition at line 40 of file KnapsackEvalop.h.

◆ solutionInstance

struct solution* KnapsackEvalOp::solutionInstance

Definition at line 41 of file KnapsackEvalop.h.

◆ state_

StateP KnapsackEvalOp::state_

Definition at line 26 of file KnapsackEvalop.h.


The documentation for this class was generated from the following files: