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