Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StandartGenerationSizeStrategy Class Reference

this class calculate the new generation size over the enhancement speed More...

#include <StandartGenerationSizeStrategy.h>

Inheritance diagram for StandartGenerationSizeStrategy:
Collaboration diagram for StandartGenerationSizeStrategy:

Public Member Functions

 StandartGenerationSizeStrategy (int startSize, int numGeneration)
 constructor More...
 
virtual ~StandartGenerationSizeStrategy ()
 default destructor More...
 
virtual int calcGenerationSize (Generation *oldGeneration)
 this function calculate the new generation size More...
 
- Public Member Functions inherited from IGenerationSizeStrategy
 IGenerationSizeStrategy ()
 default constructor do nothing More...
 
virtual ~IGenerationSizeStrategy ()
 default destructor do nothing More...
 

Protected Attributes

bool m_firstIsSet
 is the first generation over? More...
 
int m_startSize
 the start size of the first generation More...
 
int m_numGeneration
 the number of generation More...
 
double m_best_first
 the best value of the first generation More...
 
double m_best_old
 the best value of the last generation. More...
 
double m_best_new
 the best value of the new generation. More...
 

Detailed Description

this class calculate the new generation size over the enhancement speed

Constructor & Destructor Documentation

StandartGenerationSizeStrategy ( int  startSize,
int  numGeneration 
)

constructor

Parameters
startSize(int) is the size of the first generation. is needed as basic of the calculation
numGeneration(int) is the number of generation which the alg. will be create

default destructor

Member Function Documentation

int calcGenerationSize ( Generation oldGeneration)
virtual

this function calculate the new generation size

Parameters
oldGeneration(Generation*) the old generation
Returns
(int) the new generation size

Implements IGenerationSizeStrategy.

Member Data Documentation

double m_best_first
protected

the best value of the first generation

double m_best_new
protected

the best value of the new generation.

double m_best_old
protected

the best value of the last generation.

bool m_firstIsSet
protected

is the first generation over?

int m_numGeneration
protected

the number of generation

int m_startSize
protected

the start size of the first generation


The documentation for this class was generated from the following files: