Population Class Reference

List of all members.

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< Chromochromos
int generation

Constructor & Destructor Documentation

Population::Population ( const Chromo i_chromo,
Random rnd 
) [protected]


Member Function Documentation

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]


Member Data Documentation

vector<Chromo> Population::chromos [protected]

int Population::generation [protected]


Generated on Fri May 4 13:40:21 2012 for WDSS-IIw2algs by  doxygen 1.4.7