ECF 1.5
Public Member Functions | Public Attributes | List of all members
OneMaxEvalOp Class Reference

OneMax problem evaluation class. More...

#include <OneMaxEvalOp.h>

Inheritance diagram for OneMaxEvalOp:
EvaluateOp EvaluateOp

Public Member Functions

FitnessP evaluate (IndividualP individual)
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
void registerParameters (StateP)
 Register evaluator parameters. Called before EvaluateOp::initialize method. More...
 
FitnessP evaluate (IndividualP individual)
 Evaluate a single individual. Method must create and return a Fitness object. More...
 
bool initialize (StateP)
 Initialize the evaluator. Called before first evaluation occurs. More...
 
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

std::vector< std::vector< int > > image
 
uint width
 
uint height
 
uint bestVal
 
StateP s
 

Detailed Description

OneMax problem evaluation class.

Definition at line 24 of file OneMaxEvalOp.h.

Member Function Documentation

◆ evaluate() [1/2]

FitnessP OneMaxEvalOp::evaluate ( IndividualP  )
virtual

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

Implements EvaluateOp.

Definition at line 5 of file OneMaxEvalOp.cpp.

◆ evaluate() [2/2]

FitnessP OneMaxEvalOp::evaluate ( IndividualP  )
virtual

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

Implements EvaluateOp.

◆ initialize()

bool OneMaxEvalOp::initialize ( StateP  )
virtual

Initialize the evaluator. Called before first evaluation occurs.

Reimplemented from EvaluateOp.

Definition at line 13 of file OneMaxEvalOp.cpp.

◆ registerParameters()

void OneMaxEvalOp::registerParameters ( StateP  )
virtual

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

Reimplemented from EvaluateOp.

Definition at line 7 of file OneMaxEvalOp.cpp.

Member Data Documentation

◆ bestVal

uint OneMaxEvalOp::bestVal

Definition at line 33 of file OneMaxEvalOp.h.

◆ height

uint OneMaxEvalOp::height

Definition at line 32 of file OneMaxEvalOp.h.

◆ image

std::vector< std::vector<int> > OneMaxEvalOp::image

Definition at line 31 of file OneMaxEvalOp.h.

◆ s

StateP OneMaxEvalOp::s

Definition at line 34 of file OneMaxEvalOp.h.

◆ width

uint OneMaxEvalOp::width

Definition at line 32 of file OneMaxEvalOp.h.


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