GPLIB++
StandardPropagation.h
Go to the documentation of this file.
1 #ifndef CSTANDARDPROPAGATION_H
2 #define CSTANDARDPROPAGATION_H
3 
4 #include "GeneralPropagation.h"
5 
6 namespace gplib
7  {
8  /** \addtogroup gainv Genetic algorithm optimization */
9  /* @{ */
10  //! This is the standard propagation class that generates a new population from the old one
11  /*! This class implements the standard propagation schemes for genetic algorithms, selection,
12  * crossover and mutation. Each of these steps is performed by a class that we can choose
13  * in the constructor.
14  */
16  {
17  public:
18  virtual void NextGeneration();
19  //! The constructor takes pointers to various base classes that configure the behaviour of the selection process.
20  /*! This class is basically just a skeleton that uses the objects that implement Selection, Crossover and Mutation
21  * in the right order.
22  * @param LocalSelect A pointer to an object that implements a selection scheme for the genetic algorithm
23  * @param LocalPopulation A pointer to a population object
24  * @param LocalRandom A pointer to a random number generator
25  */
26  StandardPropagation(GeneralSelect* const LocalSelect,
27  GeneralPopulation* const LocalPopulation,
28  GeneralRNG* const LocalRandom);
29  virtual ~StandardPropagation();
30  };
31  /* @} */
32  }
33 #endif // CSTANDARDPROPAGATION_H
The base class for the population of a genetic algorithm, implements storage and access functions...
GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms.
Definition: GeneralSelect.h:16
The base class for genetic algorithm propagation methods.
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 ...
This is the standard propagation class that generates a new population from the old one...
The base class for all random number generators, defines the basic interface.
Definition: GeneralRNG.h:9