#include <StandardPropagation.h>

Public Member Functions | |
| virtual void | NextGeneration () |
| StandardPropagation (GeneralSelect *const LocalSelect, GeneralPopulation *const LocalPopulation, GeneralRNG *const LocalRandom) | |
| The constructor takes pointers to various base classes that configure the behaviour of the selection process. | |
| virtual | ~StandardPropagation () |
This class implements the standard propagation schemes for genetic algorithms, selection, crossover and mutation. Each of these steps is performed by a class that we can choose in the constructor.
Definition at line 15 of file StandardPropagation.h.
| gplib::StandardPropagation::StandardPropagation | ( | GeneralSelect *const | LocalSelect, | |
| GeneralPopulation *const | LocalPopulation, | |||
| GeneralRNG *const | LocalRandom | |||
| ) |
The constructor takes pointers to various base classes that configure the behaviour of the selection process.
This class is basically just a skeleton that uses the objects that implement Selection, Crossover and Mutation in the right order.
| LocalSelect | A pointer to an object that implements a selection scheme for the genetic algorithm | |
| LocalPopulation | A pointer to a population object | |
| LocalRandom | A pointer to a random number generator |
Definition at line 11 of file StandardPropagation.cpp.
| gplib::StandardPropagation::~StandardPropagation | ( | ) | [virtual] |
Definition at line 17 of file StandardPropagation.cpp.
| void gplib::StandardPropagation::NextGeneration | ( | ) | [virtual] |
Implements gplib::GeneralPropagation.
Definition at line 21 of file StandardPropagation.cpp.
References gplib::GeneralPropagation::Crossover(), gplib::GeneralSelect::GetOne(), gplib::GeneralPopulation::GetPopulation(), gplib::GeneralSelect::Init(), gplib::GeneralPropagation::Mutation(), gplib::GeneralPropagation::Population, gplib::GeneralPropagation::Select, and gplib::GeneralPopulation::SetPopulation().
1.5.8