GPLIB++
|
The base class for genetic algorithm propagation methods. More...
#include <GeneralPropagation.h>
Public Member Functions | |
virtual void | NextGeneration ()=0 |
void | SetParams (const double mutation, const double crossover) |
GeneralPropagation (GeneralSelect *const LocalSelect, GeneralPopulation *const LocalPopulation, GeneralRNG *const LocalRandom) | |
virtual | ~GeneralPropagation () |
GeneralPropagation (GeneralPropagation &Old) | |
Protected Member Functions | |
virtual void | Crossover (tpopmember &father, tpopmember &mother) |
virtual void | Mutation (tpopmember &child) |
Protected Attributes | |
GeneralSelect *const | Select |
GeneralPopulation *const | Population |
GeneralRNG *const | Random |
double | MutationProb |
double | CrossoverProb |
The base class for genetic algorithm propagation methods.
This class defines the common functionality that is necessary to generate a new population from the current generation. The implementation details depend on the type of GA and Population encoding and those classes have to match to do anything useful.
Definition at line 17 of file GeneralPropagation.h.
gplib::GeneralPropagation::GeneralPropagation | ( | GeneralSelect *const | LocalSelect, |
GeneralPopulation *const | LocalPopulation, | ||
GeneralRNG *const | LocalRandom | ||
) |
Definition at line 5 of file GeneralPropagation.cpp.
References CrossoverProb, and MutationProb.
|
virtual |
Definition at line 20 of file GeneralPropagation.cpp.
gplib::GeneralPropagation::GeneralPropagation | ( | GeneralPropagation & | Old | ) |
Definition at line 13 of file GeneralPropagation.cpp.
References CrossoverProb, and MutationProb.
|
protectedvirtual |
Definition at line 25 of file GeneralPropagation.cpp.
References CrossoverProb, gplib::GeneralRNG::GetNumber(), and Random.
Referenced by gplib::StandardPropagation::NextGeneration().
|
protectedvirtual |
Definition at line 39 of file GeneralPropagation.cpp.
References gplib::GeneralRNG::GetNumber(), MutationProb, and Random.
Referenced by gplib::StandardPropagation::NextGeneration().
|
pure virtual |
Implemented in gplib::StandardPropagation.
Referenced by gplib::GeneralGA::DoIteration().
|
inline |
Definition at line 29 of file GeneralPropagation.h.
References CrossoverProb, and MutationProb.
Referenced by main().
|
protected |
Definition at line 26 of file GeneralPropagation.h.
Referenced by Crossover(), GeneralPropagation(), and SetParams().
|
protected |
Definition at line 25 of file GeneralPropagation.h.
Referenced by GeneralPropagation(), Mutation(), and SetParams().
|
protected |
Definition at line 23 of file GeneralPropagation.h.
Referenced by gplib::StandardPropagation::NextGeneration().
|
protected |
Definition at line 24 of file GeneralPropagation.h.
Referenced by Crossover(), and Mutation().
|
protected |
Definition at line 22 of file GeneralPropagation.h.
Referenced by gplib::StandardPropagation::NextGeneration().