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). | |
| 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.
| double w2img::GAOpts::annealFrac |
Fraction of population to anneal towards towards local max (default: 0.1).
Use annealing or not? (default: true).
Number of generations with no improvement before we stop (default: 30).
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
Number of quantization levels in the annealing process (default: 100).
Population size (default: 200).
| double w2img::GAOpts::randomizeFrac |
Fraction of population to replace with random members if progress stagnates (default: 0.75).
always keep the best so far, from generation to generation? (default: false)
Try to maintain a diversity of members or go strictly by fitness? (default: false).
Use sigma truncation before choosing next generation? (default: true).
verbose? (default: true)
| double w2img::GAOpts::xoverProb |
cross-over probability (default: 0.7)
1.4.7