BinaryPopulation.h

Go to the documentation of this file.
00001 #ifndef CSTANDARDPOPULATION_H
00002 #define CSTANDARDPOPULATION_H
00003 
00004 #include "GeneralPopulation.h"
00005 namespace gplib
00006   {
00007     /** \addtogroup gainv Genetic algorithm optimization */
00008     /* @{ */
00009 
00010     //! A population that is encoded as a simple binary string
00011     class BinaryPopulation: public GeneralPopulation
00012       {
00013     private:
00014       GeneralRNG &Random;
00015     public:
00016       virtual void InitPop();
00017       BinaryPopulation(const int popsize, const int genesize,
00018           GeneralRNG &LocalRandom, const bool init = false);
00019       virtual ~BinaryPopulation();
00020       using GeneralPopulation::operator=;
00021       virtual BinaryPopulation& operator=(const BinaryPopulation &source);
00022       };
00023   /* @} */
00024   }
00025 #endif // CSTANDARDPOPULATION_H

Generated on Tue May 4 16:52:14 2010 for GPLIB++ by  doxygen 1.5.8