|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
this class calculate the new generation size over the enhancement speed More...
#include <StandartGenerationSizeStrategy.h>


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... | |
this class calculate the new generation size over the enhancement speed
| StandartGenerationSizeStrategy | ( | int | startSize, |
| int | numGeneration | ||
| ) |
constructor
| 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 |
|
virtual |
default destructor
|
virtual |
this function calculate the new generation size
| oldGeneration | (Generation*) the old generation |
Implements IGenerationSizeStrategy.
|
protected |
the best value of the first generation
|
protected |
the best value of the new generation.
|
protected |
the best value of the last generation.
|
protected |
is the first generation over?
|
protected |
the number of generation
|
protected |
the start size of the first generation