|
dignea
1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
|
Abstract Selection interface. More...
#include <Selection.h>
Public Member Functions | |
| virtual S | select (const vector< S > &population)=0 |
| Method to perform the selection operation. This is a virtual method that must be implemented in the subclasses. It receives population of individuals and performs the corresponding selection over it. More... | |
| virtual void | select (const vector< S > &population, int &parent)=0 |
| Method to perform the selection operation. This is a virtual method that must be implemented in the subclasses. It receives population of individuals and a parent number, it performs the corresponding selection over the population and sets the index of the parent in the parent variable. More... | |
| virtual std::string | getName () const =0 |
Abstract Selection interface.
| S | Type of individual in the population |
|
pure virtual |
Method to perform the selection operation. This is a virtual method that must be implemented in the subclasses. It receives population of individuals and performs the corresponding selection over it.
| population |
Implemented in BinaryTournamentSelection< S >.
|
pure virtual |
Method to perform the selection operation. This is a virtual method that must be implemented in the subclasses. It receives population of individuals and a parent number, it performs the corresponding selection over the population and sets the index of the parent in the parent variable.
| population | Population of individuals |
| parent | Index of the parent in the population |
Implemented in BinaryTournamentSelection< S >.