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
EliteSelectStrategy Class Reference

This class makes a elite select and bring only the best individual in the next generation. More...

#include <EliteSelectStrategy.h>

Inheritance diagram for EliteSelectStrategy:
Collaboration diagram for EliteSelectStrategy:

Public Member Functions

 EliteSelectStrategy ()
 default constructor More...
 
virtual ~EliteSelectStrategy ()
 default destructor More...
 
virtual void select (Generation *oldGeneration, Generation *newGeneration)
 select the individual in the old generation which should be in the new generation (only the best). More...
 
- Public Member Functions inherited from ISelectStrategy
 ISelectStrategy ()
 default constructor More...
 
virtual ~ISelectStrategy ()
 default destructor More...
 

Detailed Description

This class makes a elite select and bring only the best individual in the next generation.

Constructor & Destructor Documentation

default constructor

~EliteSelectStrategy ( )
virtual

default destructor

Member Function Documentation

void select ( Generation oldGeneration,
Generation newGeneration 
)
virtual

select the individual in the old generation which should be in the new generation (only the best).

Parameters
oldGeneration(Generation*) the old generation
newGeneration(Generation*) the new generation

Implements ISelectStrategy.


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