The interface for the fitness strategy of an individual. More...
#include <IFitnessStrategy.h>
Inherited by EuclidicDistanceFitnessStrategy, ExtreamTestFitnessStrategy, InvertedFitnessStrategy, SumFitnessStrategy, TemplateTaskedGaSimulationFitnessStrategy, and TestFitnessStrategy.
Public Member Functions | |
| IFitnessStrategy () | |
| default constructor do nothing | |
| virtual | ~IFitnessStrategy () |
| default destructor do nothing | |
| virtual double | getFitness (const Individual *individual)=0 |
| declaration of the function getFitness. | |
The interface for the fitness strategy of an individual.
| IFitnessStrategy | ( | ) |
default constructor do nothing
| ~IFitnessStrategy | ( | ) | [virtual] |
default destructor do nothing
| virtual double getFitness | ( | const Individual * | individual | ) | [pure virtual] |
declaration of the function getFitness.
This function will give the fitness value of an individual back. For which individual is him called by 'individual'.
| individual | (const Individual*) calculate the fitness for this individual |
Implemented in TemplateTaskedGaSimulationFitnessStrategy, EuclidicDistanceFitnessStrategy, ExtreamTestFitnessStrategy, InvertedFitnessStrategy, SumFitnessStrategy, and TestFitnessStrategy.
1.6.3