|
Modernized GAlib
3.0.0 current
|
Public Types | |
| enum | SortBasis { RAW , SCALED } |
| enum | SortOrder { LOW_IS_BEST , HIGH_IS_BEST } |
| enum | Replacement { BEST = -1 , WORST = -2 , RANDOM = -3 } |
| using | Initializer = void(*)(GAPopulation &) |
| using | Evaluator = void(*)(GAPopulation &) |
Public Types inherited from GAID | |
| enum | { BaseGA = 0 , SimpleGA , SteadyStateGA , IncrementalGA , DemeGA , Population = 10 , Scaling = 15 , NoScaling , LinearScaling , SigmaTruncationScaling , PowerLawScaling , Sharing , Selection = 40 , RankSelection , RouletteWheelSelection , TournamentSelection , UniformSelection , SRSSelection , DSSelection , Genome = 50 , BinaryStringGenome , BinaryStringGenome2D , BinaryStringGenome3D , Bin2DecGenome , ListGenome , TreeGenome , ArrayGenome , ArrayGenome2D , ArrayGenome3D , ArrayAlleleGenome , ArrayAlleleGenome2D , ArrayAlleleGenome3D , StringGenome , FloatGenome , IntGenome , DoubleGenome } |
Public Member Functions | |
| GADefineIdentity ("GAPopulation", GAID::Population) | |
| GAPopulation (const GAGenome &c, unsigned int psize=1) | |
| GAPopulation (const GAPopulation &arg) | |
| GAPopulation & | operator= (const GAPopulation &arg) |
| virtual GAPopulation * | clone () const |
| virtual void | copy (const GAPopulation &arg) |
| int | size () const |
| int | size (unsigned int popsize) |
| int | chunksize () const |
| int | chunksize (unsigned int csize) |
| int | compact () |
| void | touch () |
| void | statistics (bool flag=false) const |
| void | diversity (bool flag=false) const |
| void | scale (bool flag=false) const |
| void | prepselect (bool flag=false) const |
| void | sort (bool flag=false, SortBasis basis=RAW) const |
| float | sum () const |
| float | ave () const |
| float | var () const |
| float | dev () const |
| float | max () const |
| float | min () const |
| float | div () const |
| float | div (unsigned int i, unsigned int j) const |
| float | fitsum () const |
| float | fitave () const |
| float | fitmax () const |
| float | fitmin () const |
| float | fitvar () const |
| float | fitdev () const |
| int | nevals () const |
| void | evaluate (bool flag=false) |
| Evaluator | evaluator () const |
| Evaluator | evaluator (Evaluator e) |
| void | initialize () |
| Initializer | initializer () const |
| Initializer | initializer (Initializer i) |
| SortOrder | order () const |
| SortOrder | order (SortOrder flag) |
| GAGenome & | select () |
| GASelectionScheme & | selector () const |
| GASelectionScheme & | selector (const GASelectionScheme &) |
| GAScalingScheme & | scaling () const |
| GAScalingScheme & | scaling (const GAScalingScheme &) |
| GAGeneticAlgorithm * | geneticAlgorithm () const |
| GAGeneticAlgorithm * | geneticAlgorithm (GAGeneticAlgorithm &) |
| void * | userData () const |
| void * | userData (void *u) |
| GAEvalData * | evalData () const |
| GAEvalData * | evalData (const GAEvalData &o) |
| GAGenome & | best (unsigned int i=0, SortBasis basis=RAW) const |
| GAGenome & | worst (unsigned int i=0, SortBasis basis=RAW) const |
| GAGenome & | individual (unsigned int i, SortBasis basis=RAW) const |
| GAGenome * | add (GAGenome *) |
| GAGenome * | add (const GAGenome &) |
| GAGenome * | remove (int which=WORST, SortBasis basis=RAW) |
| GAGenome * | remove (GAGenome *) |
| GAGenome * | replace (GAGenome *, int which=RANDOM, SortBasis basis=RAW) |
| GAGenome * | replace (GAGenome *newgenome, GAGenome *oldgenome) |
| void | destroy (int w=WORST, SortBasis b=RAW) |
| virtual void | read (std::istream &) |
| virtual void | write (std::ostream &os, SortBasis basis=RAW) const |
Public Member Functions inherited from GAID | |
| bool | sameClass (const GAID &b) const |
| virtual const char * | className () const |
| virtual int | classID () const |
Static Public Member Functions | |
| static void | DefaultInitializer (GAPopulation &) |
| static void | DefaultEvaluator (GAPopulation &) |
Protected Member Functions | |
| int | grow (unsigned int) |
Static Protected Member Functions | |
| static void | QuickSortAscendingRaw (GAGenome **, int, int) |
| static void | QuickSortDescendingRaw (GAGenome **, int, int) |
| static void | QuickSortAscendingScaled (GAGenome **, int, int) |
| static void | QuickSortDescendingScaled (GAGenome **, int, int) |
Protected Attributes | |
| unsigned int | neval |
| unsigned int | csz |
| unsigned int | n |
| unsigned int | N |
| SortOrder | sortorder |
| bool | rsorted |
| bool | ssorted |
| bool | scaled |
| bool | statted |
| bool | evaluated |
| bool | divved |
| bool | selectready |
| float | rawSum |
| float | rawAve |
| float | rawMax |
| float | rawMin |
| float | rawVar |
| float | rawDev |
| float | popDiv |
| float * | indDiv |
| GAGenome ** | rind |
| GAGenome ** | sind |
| float | fitSum |
| float | fitAve |
| float | fitMax |
| float | fitMin |
| float | fitVar |
| float | fitDev |
| GAScalingScheme * | sclscm |
| GASelectionScheme * | slct |
| Initializer | init |
| Evaluator | eval |
| void * | ud |
| GAGeneticAlgorithm * | ga |
| GAEvalData * | evaldata |