TGACover

List of ancestors:
unknown
Files:
tgaclass.h, tgaclass,cpp

Desc. & Idea Warnings Methods Attributes Operators Specials

 

Abstract  Abstract

Virtual  Virtual Overridden  Overridden
Key, Important  Key, Important Constructor  Constructor Destructor  Destructor
Methods beginning with Get or Set (get/set) are usually intended to access Attributes of same name (exceptions will be marked).

 

Description

The basic class allowing the genetic computation. All features for this work are implemented.

Title

 

Warnings

Init procedure must be used before a run.
If NULL is sended as a Population paramter to Init, a parametric file sais to not create the initial population and it is not creteated later, the computation cannot be run.

Title

 

Methods

Public:

OverriddenKey, Important BOOL Clear(void)
Key, Important BOOL Continue(void)
OverriddenKey, Important void DontPause(void)
OverriddenKey, Important void DontStop(void)
OverriddenKey, Important void Froze()
VirtualKey, Important BOOL GAInterrupt()
Virtual BOOL getAutoScaling()
Virtual uint getFirstRescaling()
Virtual TFitness &getFitFunc()
Virtual TGenCode &getGenMeening()
VirtualKey, Important uint getGeneration()
Virtual uint getGenLength()
Virtual uint getChngsMade()
Virtual TPopulation *getOldPop()
Virtual uint getOpsMade()
Virtual TParamFile &getParams()
Virtual uint getPopSize()
Virtual TPopulation *getPopulation()
Virtual uint getRescalePeriod()
Virtual TGAState getState()
Virtual TPriority getWrkPrt()
Virtual TGAState getWorkState()
Virtual void incChngsMade(int By) {ChngsMade+=By}
Virtual void incOpsMade(int By) {OpsMade+=By}
VirtualKey, Important void Init(TParamFile &AParams,TPopulation* Pop,TGoodEnough *AGoodEnough,TGenCode* AGenMeening=NULL,TFitness *AFitFunc=NULL)
void Init(TParamFile &AParams, TPopulation* Pop, TGenCode* AGenMeening=NULL, TFitness *AFitFunc=NULL, TNet* pnet=NULL)
OverriddenKey, Important void Pause()
OverriddenKey, Important void RereadParams(TParamFile &Source)
OverriddenKey, Important void Reset()
VirtualKey, Important BOOL RetrFinished()
VirtualKey, Important TPopulation &RetrPop(int Count=Population->GetSize())
VirtualKey, Important TGAStats &RetrStats()
Key, Important BOOL Run(void)
Virtual void setAutoScaling(BOOL val)
Virtual void setFirstRescaling(uint val)
Virtual void setFitFunc(TFitness &val)
Virtual void setGenMeening(TGenCode &val)
Virtual void setRescalePeriod(uint val)
Virtual BOOL WiilStop()
Virtual void setWrkPrt(TPriority val)
OverriddenKey, Important void Stop(void)
Constructor TGACover()
OverriddenKey, Important void Unfroze()
Destructor ~TGACover ()

Protected:

Overridden BOOL CanContinue()
Overridden BOOL CanRun()
Overridden TKernelInfo *CreateKI(uint id,int period)
Virtual void DoReset()
Overridden BOOL EndComputation()
Virtual BOOL GABody()
Virtual BOOL PrepareRun()
Virtual BOOL UnPrepareRun()
OverriddenKey, Important void WorkPlace()

Private:

Title


int MyFce(void)

Here write method's description.

Arguments:

Returns:

Section Title


Attributes

Public:

Protected:

Key, Important TGATab *Algorithm
TPopulation *OldPop
Key, Important TParamFile *Params
Key, Important TPopulation *Population
Key, Important TGAState WorkState

Private:

BOOL AutoRescaling
uint FirstRescaling
Key, Important TFitness *FitFunc
BOOL FitFuncResp
Key, Important uint Generation
Key, Important TGenCode *GenMeening
BOOL GenMeeningResp
uint GenLength
Key, Important uint ChngsMade
BOOL MyOldPop
Key, Important uint OpsMade
uint PauseFlag
BOOL PopulationResp
Key, Important uint PopSize
uint RescalePeriod
uint StopFlag
Key, Important TPriority WrkPrt

 

Title


 

int MyAtribute

Here write attribute's description.

Section Title



Operators

Public:

Protected:

Private:

Section Title


 


Specials

Required parameters
Optional parameters

See alsoparnames.h

Title