1 #ifndef CGENERALPOPULATION_H
2 #define CGENERALPOPULATION_H
26 void ResizePop(
const int popsize,
const int genesize);
64 return CrowdingDistances;
76 Probabilities = LocalProb;
81 CrowdingDistances = LocalDist;
104 #endif // CGENERALPOPULATION_H
The base class for the population of a genetic algorithm, implements storage and access functions...
tpopulation Population
The population of the current iteration.
ublas::vector< double > tprobabilityv
void PrintProbabilities(std::ostream &output) const
void SetProbabilities(const tprobabilityv &LocalProb)
GeneralPopulation(const int popsize, const int genesize)
void PrintDistances(std::ostream &output) const
const tcrowddistv & GetCrowdingDistances() const
void ReadPopulation(std::istream &input)
const tpopulation & GetOldPopulation() const
void SetPopulation(const tpopulation &LocalPop)
virtual GeneralPopulation & operator=(const GeneralPopulation &source)
void StoreOldPopulation()
void PrintPopulation(std::ostream &output) const
const tpopulation & GetPopulation() const
const tprobabilityv & GetProbabilities() const
void ResizePop(const int popsize, const int genesize)
Change the population size.
void SetCrowdingDistances(const tcrowddistv &LocalDist)
virtual ~GeneralPopulation()
The basic exception class for all errors that arise in gplib.
ublas::vector< double > tcrowddistv