#include <GLTestEvaluator.h>
Public Member Functions | |
GLTestEvaluator () | |
virtual | ~GLTestEvaluator () |
virtual GLBaseFitness * | evaluateOrganism (GLBaseOrganism *organism) |
virtual int | getNumberOfObjectives () const |
Definition at line 9 of file GLTestEvaluator.h.
GLTestEvaluator::GLTestEvaluator | ( | ) |
Simple constructor.
Definition at line 9 of file GLTestEvaluator.cpp.
virtual GLTestEvaluator::~GLTestEvaluator | ( | ) | [inline, virtual] |
Destructor, destroys everything.
Definition at line 19 of file GLTestEvaluator.h.
GLBaseFitness * GLTestEvaluator::evaluateOrganism | ( | GLBaseOrganism * | organism | ) | [virtual] |
Evaluates fitness function of the organism. Requires organism to be pointer to GLOrganismVector<int>. Returns the sum of absolute differences between neighbours in the vector of integers.
organism | organism to be evaluated. |
Implements GLBaseEvaluator.
Definition at line 21 of file GLTestEvaluator.cpp.
virtual int GLTestEvaluator::getNumberOfObjectives | ( | ) | const [inline, virtual] |
Returns the number of objectives in fittness function. Makes it possible to distinguish between single and multiple objective optimisation even if the same GA is used for optimisation.
Implements GLBaseEvaluator.
Definition at line 36 of file GLTestEvaluator.h.