GeneralPropagation Class Reference
[Genetic algorithm optimization]

The base class for genetic algorithm propagation methods. More...

#include <GeneralPropagation.h>

Inheritance diagram for GeneralPropagation:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

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 16 of file GeneralPropagation.h.


Constructor & Destructor Documentation

GeneralPropagation::GeneralPropagation ( GeneralSelect *const   LocalSelect,
GeneralPopulation *const   LocalPopulation,
GeneralRNG *const   LocalRandom 
)

Definition at line 3 of file GeneralPropagation.cpp.

References CrossoverProb, and MutationProb.

GeneralPropagation::~GeneralPropagation (  )  [virtual]

Definition at line 21 of file GeneralPropagation.cpp.

GeneralPropagation::GeneralPropagation ( GeneralPropagation Old  ) 

Definition at line 12 of file GeneralPropagation.cpp.

References CrossoverProb, and MutationProb.


Member Function Documentation

void GeneralPropagation::Crossover ( tpopmember father,
tpopmember mother 
) [protected, virtual]

void GeneralPropagation::Mutation ( tpopmember child  )  [protected, virtual]

Definition at line 38 of file GeneralPropagation.cpp.

References GeneralRNG::GetNumber(), MutationProb, and Random.

Referenced by StandardPropagation::NextGeneration().

virtual void GeneralPropagation::NextGeneration (  )  [pure virtual]

Implemented in StandardPropagation.

Referenced by GeneralGA::DoIteration().

void GeneralPropagation::SetParams ( const double  mutation,
const double  crossover 
) [inline]

Definition at line 27 of file GeneralPropagation.h.

References CrossoverProb, and MutationProb.

Referenced by main().


Member Data Documentation

Definition at line 20 of file GeneralPropagation.h.

Referenced by StandardPropagation::NextGeneration().

Definition at line 21 of file GeneralPropagation.h.

Referenced by StandardPropagation::NextGeneration().

Definition at line 22 of file GeneralPropagation.h.

Referenced by Crossover(), and Mutation().

Definition at line 23 of file GeneralPropagation.h.

Referenced by GeneralPropagation(), Mutation(), and SetParams().

Definition at line 24 of file GeneralPropagation.h.

Referenced by Crossover(), GeneralPropagation(), and SetParams().


The documentation for this class was generated from the following files:

Generated on Fri Jul 4 15:30:21 2008 for GPLIB++ by  doxygen 1.5.5