#include <IGAPopulation.hpp>
List of all members.
Detailed Description
A genetic population of individuals. Through this population the cycle of regeneration is controlled.
Member Function Documentation
| virtual Retval MQUALIFIER zeus::IGAPopulation::getBestIndividual |
( |
IGAIndividual *& |
rpIndividual ) |
const [pure virtual] |
Returns the individual with the best fitness
- Parameters:
-
| rpIndividual | : Return parameter of the individual |
- Return values:
-
| RET_NOERROR | : Individual returned |
| RET_REQUEST_FAILED | : Could not return the individual |
Implemented in zeus::TGAPopulation.
| virtual Int MQUALIFIER zeus::IGAPopulation::getCount |
( |
) |
const [pure virtual] |
| virtual Retval MQUALIFIER zeus::IGAPopulation::getIndividual |
( |
Int |
iIndex, |
|
|
IGAIndividual *& |
rpIndividual |
|
) |
| const [pure virtual] |
Gets a specific individual
- Parameters:
-
| iIndex | : Index of Individual |
| rpIndividual | : Return parameter of the individual |
- Return values:
-
| RET_NOERROR | : Individual returned |
| RET_REQUEST_FAILED | : Could not return the individual |
Implemented in zeus::TGAPopulation.
| virtual Int MQUALIFIER zeus::IGAPopulation::makeGenerations |
( |
Int |
iAbort, |
|
|
Float |
fTolerance = 0.001 |
|
) |
| [pure virtual] |
Generates new populations until no better individual has been found
- Parameters:
-
| iAbort | : How many populations having the best individual should be created before it terminates |
| fTolerance | : Tolerance of the fitness between the best individuals |
- Returns:
- count of generations
Implemented in zeus::TGAPopulation.
| virtual Retval MQUALIFIER zeus::IGAPopulation::makeNextGeneration |
( |
) |
[pure virtual] |
Generates a next generation of individuals
- Return values:
-
| RET_NOERROR | : Generation created |
| RET_REQUEST_FAILED | : Could not generate a next generation |
Implemented in zeus::TGAPopulation.
The documentation for this class was generated from the following file: