#include <GeneralPopulation.h>

Public Member Functions | |
| virtual void | InitPop () |
| 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. | |
| virtual GeneralPopulation & | operator= (const GeneralPopulation &source) |
| virtual | ~GeneralPopulation () |
Protected Member Functions | |
| void | ResizePop (const int popsize, const int genesize) |
| Change the population size. | |
Protected Attributes | |
| tpopulation | Population |
| The population of the current iteration. | |
Definition at line 11 of file GeneralPopulation.h.
Definition at line 4 of file GeneralPopulation.cpp.
| GeneralPopulation::GeneralPopulation | ( | GeneralPopulation & | Old | ) |
| GeneralPopulation::GeneralPopulation | ( | const tpopulation & | FirstHalf, | |
| const tpopulation & | SecondHalf | |||
| ) |
Merge two populations in a new population object.
Definition at line 24 of file GeneralPopulation.cpp.
References Population.
| GeneralPopulation::~GeneralPopulation | ( | ) | [virtual] |
Definition at line 12 of file GeneralPopulation.cpp.
| const tcrowddistv& GeneralPopulation::GetCrowdingDistances | ( | ) | const [inline] |
| int GeneralPopulation::GetGenesize | ( | ) | const [inline] |
Definition at line 43 of file GeneralPopulation.h.
References Population.
Referenced by ParetoGA::Elitism().
| const tpopulation& GeneralPopulation::GetOldPopulation | ( | ) | const [inline] |
| int GeneralPopulation::GetPopsize | ( | ) | const [inline] |
Definition at line 42 of file GeneralPopulation.h.
References Population.
Referenced by ParetoGA::CalcProbabilities(), and ParetoGA::Elitism().
| const tpopulation& GeneralPopulation::GetPopulation | ( | ) | const [inline] |
Definition at line 36 of file GeneralPopulation.h.
References Population.
Referenced by ParetoGA::Elitism(), and StandardPropagation::NextGeneration().
| const tprobabilityv& GeneralPopulation::GetProbabilities | ( | ) | const [inline] |
Definition at line 37 of file GeneralPopulation.h.
Referenced by AnnealingGA::GetBestIndex(), and main().
| virtual void GeneralPopulation::InitPop | ( | ) | [inline, virtual] |
| GeneralPopulation & GeneralPopulation::operator= | ( | const GeneralPopulation & | source | ) | [virtual] |
Definition at line 38 of file GeneralPopulation.cpp.
References CrowdingDistances, OldPopulation, Population, and Probabilities.
| void GeneralPopulation::PrintDistances | ( | std::ostream & | output | ) | const |
Definition at line 96 of file GeneralPopulation.cpp.
| void GeneralPopulation::PrintPopulation | ( | std::ostream & | output | ) | const |
| void GeneralPopulation::PrintProbabilities | ( | std::ostream & | output | ) | const |
Definition at line 87 of file GeneralPopulation.cpp.
| void GeneralPopulation::ReadPopulation | ( | std::istream & | input | ) |
Change the population size.
Definition at line 63 of file GeneralPopulation.cpp.
References Population.
Referenced by ReadPopulation().
| void GeneralPopulation::SetCrowdingDistances | ( | const tcrowddistv & | LocalDist | ) | [inline] |
Definition at line 41 of file GeneralPopulation.h.
| void GeneralPopulation::SetPopulation | ( | const tpopulation & | LocalPop | ) | [inline] |
Definition at line 39 of file GeneralPopulation.h.
References Population.
Referenced by ParetoGA::Elitism(), and StandardPropagation::NextGeneration().
| void GeneralPopulation::SetProbabilities | ( | const tprobabilityv & | LocalProb | ) | [inline] |
| void GeneralPopulation::StoreOldPopulation | ( | ) | [inline] |
Definition at line 31 of file GeneralPopulation.h.
References Population.
Referenced by GeneralGA::DoIteration().
tpopulation GeneralPopulation::Population [protected] |
The population of the current iteration.
Definition at line 25 of file GeneralPopulation.h.
Referenced by GeneralPopulation(), GetGenesize(), GetPopsize(), GetPopulation(), BinaryPopulation::InitPop(), operator=(), PrintPopulation(), ReadPopulation(), ResizePop(), SetPopulation(), and StoreOldPopulation().
1.5.8