|
GPLIB++
|
A population that is encoded as a simple binary string. More...
#include <BinaryPopulation.h>

Public Member Functions | |
| virtual void | InitPop () |
| BinaryPopulation (const int popsize, const int genesize, GeneralRNG &LocalRandom, const bool init=false) | |
| virtual | ~BinaryPopulation () |
| virtual BinaryPopulation & | operator= (const BinaryPopulation &source) |
Public Member Functions inherited from gplib::GeneralPopulation | |
| const tpopulation & | GetOldPopulation () const |
| void | StoreOldPopulation () |
| void | PrintPopulation (std::ostream &output) const |
| void | ReadPopulation (std::istream &input) |
| void | PrintProbabilities (std::ostream &output) const |
| void | PrintDistances (std::ostream &output) const |
| const tpopulation & | GetPopulation () const |
| const tprobabilityv & | GetProbabilities () const |
| const tcrowddistv & | GetCrowdingDistances () const |
| void | SetPopulation (const tpopulation &LocalPop) |
| void | SetProbabilities (const tprobabilityv &LocalProb) |
| void | SetCrowdingDistances (const tcrowddistv &LocalDist) |
| int | GetPopsize () const |
| int | GetGenesize () const |
| GeneralPopulation (const int popsize, const int genesize) | |
| GeneralPopulation (GeneralPopulation &Old) | |
| GeneralPopulation (const tpopulation &FirstHalf, const tpopulation &SecondHalf) | |
| Merge two populations in a new population object. More... | |
| virtual GeneralPopulation & | operator= (const GeneralPopulation &source) |
| virtual | ~GeneralPopulation () |
Additional Inherited Members | |
Protected Member Functions inherited from gplib::GeneralPopulation | |
| void | ResizePop (const int popsize, const int genesize) |
| Change the population size. More... | |
Protected Attributes inherited from gplib::GeneralPopulation | |
| tpopulation | Population |
| The population of the current iteration. More... | |
A population that is encoded as a simple binary string.
Definition at line 11 of file BinaryPopulation.h.
| gplib::BinaryPopulation::BinaryPopulation | ( | const int | popsize, |
| const int | genesize, | ||
| GeneralRNG & | LocalRandom, | ||
| const bool | init = false |
||
| ) |
Definition at line 5 of file BinaryPopulation.cpp.
References InitPop().
|
virtual |
Definition at line 13 of file BinaryPopulation.cpp.
|
virtual |
Reimplemented from gplib::GeneralPopulation.
Definition at line 17 of file BinaryPopulation.cpp.
References gplib::GeneralRNG::GetNumber(), and gplib::GeneralPopulation::Population.
Referenced by BinaryPopulation().
|
virtual |
Definition at line 26 of file BinaryPopulation.cpp.
References gplib::GeneralPopulation::operator=().
1.8.6