class FitnessFunctionA

A function for awarding fitness to genotypes

Public Methods

virtual void const Calculate ( FitnessType & iFitnessValue, DataA const & iData )
Evaluating data
FitnessFunctionA ( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, StopConditionA const & iStopCondition, ProblemA const & iProblem )
Creating a new fitnessfunction

Documentation

This fitnessfunction will be used by the genotype to evaluate its data and get a fitnessvalue. These fitnessvalues can then be used for ordening the genotypes in a population.

FitnessFunctionA( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, StopConditionA const & iStopCondition, ProblemA const & iProblem )
This constructor should only be called by its children. It copies the reference of the parameters into protected members, they can then be used by its children to spawn objects and read configuration parameters.

Returns:
Nothing.
Parameters:
iConfiguration - The configuration used to determine settings for the algorithm and to provide a configuration to spawned objects within this class.
iStatistics - The statistics are used to write data to and build a report after a run of the evolutionary algorithm.
iProblem - Actual problem the evolutionary algorithm has to work on, used for evaluating the data.
Author:
J.I. van Hemert
Version:
0.1

virtual void const Calculate( FitnessType & iFitnessValue, DataA const & iData )
Example:
void Genotype::Evaluate(FitnessFunctionA const & FitnessFunction)
{
FitnessFunction(GetFitness(), GetData());
}
The fitnessvalue provided is changed to reflect the fitness of the data that is provided.

Returns:
See iFitnessValue.
Parameters:
iFitnessValue - This fitnessvalue is altered to reflect the data provided.
iData - This is the data that will be evaluated.
Author:
J.I. van Hemert
Version:
0.1


This class has no child classes.
Author:
J.I. van Hemert
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de