Static Public Member Functions | |
static Chromo | Population::doGeneticAlg (const Chromo &initChromo, char *outputFileName=NULL, char *gaOptsFileName=NULL) |
static double | getDiversity (const std::vector< Chromo > &chr, unsigned int chromoIndex) |
Protected Member Functions | |
Population (const Chromo &i_chromo, code::Random &rnd) | |
Population | getNextGen (code::Random &rnd) const |
void | randomize (code::Random &rnd, double frac) |
void | anneal (code::Random &rnd, double frac) |
Chromo | getBestChromo () const |
Protected Attributes | |
std::vector< Chromo > | chromos |
int | generation |
bwer::Population::Population | ( | const Chromo & | i_chromo, | |
code::Random & | rnd | |||
) | [protected] |
void bwer::Population::anneal | ( | code::Random & | rnd, | |
double | frac | |||
) | [protected] |
Chromo bwer::Population::getBestChromo | ( | ) | const [protected] |
static double bwer::Population::getDiversity | ( | const std::vector< Chromo > & | chr, | |
unsigned int | chromoIndex | |||
) | [static] |
Population bwer::Population::getNextGen | ( | code::Random & | rnd | ) | const [protected] |
static Chromo bwer::Population::Population::doGeneticAlg | ( | const Chromo & | initChromo, | |
char * | outputFileName = NULL , |
|||
char * | gaOptsFileName = NULL | |||
) | [static] |
void bwer::Population::randomize | ( | code::Random & | rnd, | |
double | frac | |||
) | [protected] |
std::vector<Chromo> bwer::Population::chromos [protected] |
int bwer::Population::generation [protected] |