|
Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
This strategy calculate the invert to a other strategy. More...
#include <InvertedFitnessStrategy.h>


Public Member Functions | |
| InvertedFitnessStrategy (IFitnessStrategy *strategy) | |
| constructor Needs a other fitness strategy, which should be inverted. More... | |
| virtual | ~InvertedFitnessStrategy () |
| default destructor More... | |
| virtual double | getFitness (const Individual *individual) |
| returns the inverse fitness value what the other strategy returns for the individual "individual". More... | |
Public Member Functions inherited from IFitnessStrategy | |
| IFitnessStrategy () | |
| default constructor do nothing More... | |
| virtual | ~IFitnessStrategy () |
| default destructor do nothing More... | |
Protected Attributes | |
| IFitnessStrategy * | m_strategy |
| The other strategy. More... | |
This strategy calculate the invert to a other strategy.
This can be used for other optimization targets than zero. For example. Is the optimization target of the alg. infinity, than the inverted target is zero -> so the alg. can optimize again zero and you have you infinity target.
| InvertedFitnessStrategy | ( | IFitnessStrategy * | strategy | ) |
constructor Needs a other fitness strategy, which should be inverted.
| strategy | (IFitnessStrategy*) the other fitness strategy |
|
virtual |
default destructor
|
virtual |
returns the inverse fitness value what the other strategy returns for the individual "individual".
| individual | (const Individual*) calculate the fitness for this individual |
Implements IFitnessStrategy.
|
protected |
The other strategy.