GPLIB++
BinaryPopulation.h
Go to the documentation of this file.
1 #ifndef CSTANDARDPOPULATION_H
2 #define CSTANDARDPOPULATION_H
3 
4 #include "GeneralPopulation.h"
5 namespace gplib
6  {
7  /** \addtogroup gainv Genetic algorithm optimization */
8  /* @{ */
9 
10  //! A population that is encoded as a simple binary string
12  {
13  private:
14  GeneralRNG &Random;
15  public:
16  virtual void InitPop();
17  BinaryPopulation(const int popsize, const int genesize,
18  GeneralRNG &LocalRandom, const bool init = false);
19  virtual ~BinaryPopulation();
20  using GeneralPopulation::operator=;
21  virtual BinaryPopulation& operator=(const BinaryPopulation &source);
22  };
23  /* @} */
24  }
25 #endif // CSTANDARDPOPULATION_H
The base class for the population of a genetic algorithm, implements storage and access functions...
A population that is encoded as a simple binary string.
virtual BinaryPopulation & operator=(const BinaryPopulation &source)
BinaryPopulation(const int popsize, const int genesize, GeneralRNG &LocalRandom, const bool init=false)
void init(int *nd, float *ranges)
Definition: cadianiso.cpp:37
The base class for all random number generators, defines the basic interface.
Definition: GeneralRNG.h:9