w2img::GAOpts Class Reference

List of all members.

Public Member Functions

 GAOpts (const char *fileName=0)
 Can load from a text file where all the above parameters are listed one per line in order.

Public Attributes

bool verbose
 verbose? (default: true)
bool retainBest
 always keep the best so far, from generation to generation? (default: false)
bool useDiversity
 Try to maintain a diversity of members or go strictly by fitness? (default: false).
bool useScaling
 Use sigma truncation before choosing next generation? (default: true).
double xoverProb
 cross-over probability (default: 0.7)
double mutProb
 mutation probability (default: 0.005)
double mutSigma
 how much to mutate.
double annealFrac
 Fraction of population to anneal towards towards local max (default: 0.1).
double randomizeFrac
 Fraction of population to replace with random members if progress stagnates (default: 0.75).
int numQuants
 Number of quantization levels in the annealing process (default: 100).
int maxFutile
 Number of generations with no improvement before we stop (default: 30).
int maxGenerations
 Maximum number of generations (default: 100).
int popSize
 Population size (default: 200).
bool hybridAlg
 Use annealing or not? (default: true).

Constructor & Destructor Documentation

w2img::GAOpts::GAOpts ( const char *  fileName = 0  ) 

Can load from a text file where all the above parameters are listed one per line in order.


Member Data Documentation

double w2img::GAOpts::annealFrac

Fraction of population to anneal towards towards local max (default: 0.1).

bool w2img::GAOpts::hybridAlg

Use annealing or not? (default: true).

int w2img::GAOpts::maxFutile

Number of generations with no improvement before we stop (default: 30).

int w2img::GAOpts::maxGenerations

Maximum number of generations (default: 100).

double w2img::GAOpts::mutProb

mutation probability (default: 0.005)

double w2img::GAOpts::mutSigma

how much to mutate.

This is computed from mutProb

int w2img::GAOpts::numQuants

Number of quantization levels in the annealing process (default: 100).

int w2img::GAOpts::popSize

Population size (default: 200).

double w2img::GAOpts::randomizeFrac

Fraction of population to replace with random members if progress stagnates (default: 0.75).

bool w2img::GAOpts::retainBest

always keep the best so far, from generation to generation? (default: false)

bool w2img::GAOpts::useDiversity

Try to maintain a diversity of members or go strictly by fitness? (default: false).

bool w2img::GAOpts::useScaling

Use sigma truncation before choosing next generation? (default: true).

bool w2img::GAOpts::verbose

verbose? (default: true)

double w2img::GAOpts::xoverProb

cross-over probability (default: 0.7)


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