#include <ISelectStrategy.h>
Inherited by EliteSelectStrategy, RandomSelectStrategy, and TournamentSelectStrategy.
Inheritance diagram for ISelectStrategy:
Public Member Functions | |
ISelectStrategy () | |
default constructor | |
virtual | ~ISelectStrategy () |
default destructor | |
virtual void | select (Generation *oldGeneration, Generation *newGeneration)=0 |
abstract function which select the individual from the old generation and copy it in the new generation. |
ISelectStrategy | ( | ) |
default constructor
~ISelectStrategy | ( | ) | [virtual] |
default destructor
virtual void select | ( | Generation * | oldGeneration, | |
Generation * | newGeneration | |||
) | [pure virtual] |
abstract function which select the individual from the old generation and copy it in the new generation.
oldGeneration | (Generation*) the old generation from where the individual comes | |
newGeneration | (Generation*) the new generation where the selected individual should be |
Implemented in EliteSelectStrategy, RandomSelectStrategy, and TournamentSelectStrategy.