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