TFitness
List of ancestors: TObj
Description & Idea Warnings Methods Atributes Operators Specials
Files: fitness.h


 

Description & Idea 

Fitness value evaluation. Constructor stores expression in expression stack (class TExprStack) and method Calculate(TGen) calculates it. 

 
Up.gif (1072 bytes)

 

Warnings
 
Up.gif (1072 bytes)

 

Methods 

public: 

  • double getDeg()
  • void setDeg(double val)
  • TFit getPoint()
  • void CalculateScaling(TPopulation &pop)
  • TFit ScaleFit(TFit src)
  • virtual void RereadParams(TParamFile &Source)
  • TGenCode * getcodec() 
  • void Check(char *b, char *e)
  • TFit Calculate(TGen &gen)
  • TFitness(TParamFile &AParams, TGenCode *Codec)
  • ~TFitness()
  • virtual char * Dump()
  • TFitness(BYTE **rawbytes, uint len, BOOL subclass=FALSE)
  • virtual uint GetSerSize(BOOL subclass=FALSE)
  • virtual uint Serialize(BYTE **rawbytes, BOOL subclass=FALSE)
  •  
    arrow3u.gif (362 bytes)
    Up.gif (1072 bytes)

     

    Atributes 

    private: 

  • TExprStack postfix - expression stack 
  • TGenCode * codec  - points to the actual specification to gene codec
  • TFit maxvalue - maximal fitness function value
  • TFit minvalue - minimal fitness function value
  • STR * Name - array of names of named constants
  • double * num - array of values of named constants
  • TConMem **con - array of named constants objects
  • int countcon - number of named constant
  • char * NNName - name of neural network
  • int NNInputs - number of neural network inputs
  • TNeuNet *net - pointer to the neural network object
  • double * NNval - array for inputs prepared for neural network evaluation
  • TFit Point -
  • double a -
  • double -
  •  
     
    arrow3u.gif (362 bytes)
    Up.gif (1072 bytes)

     

    Operators
     
    arrow3u.gif (362 bytes)
    Up.gif (1072 bytes)

     

    Specials
     
    Up.gif (1072 bytes)