dignea
1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
|
Replacement skeleton operator. More...
#include <Replacement.h>
Public Member Functions | |
virtual vector< S > | replace (vector< S > &, vector< S > &)=0 |
Method to perform the replacement operation. This is a virtual method that must be implemented in the subclasses. It receives two vectors of individuals and performs the corresponding replacement over it. More... | |
virtual vector< S > | replace (vector< S > &, const S &, const int &position)=0 |
Method to perform the replacement operation. This is a virtual method that must be implemented in the subclasses. It receives a population of individuals, a new individual to be included and a position and performs the corresponding replacement over the population. More... | |
virtual std::string | getName () const =0 |
Replacement skeleton operator.
S | Type of individual in the population |
|
pure virtual |
Method to perform the replacement operation. This is a virtual method that must be implemented in the subclasses. It receives a population of individuals, a new individual to be included and a position and performs the corresponding replacement over the population.
position |
Implemented in ReplaceWorst< S >, FirstImprove< S >, and EGenerational< S >.
|
pure virtual |
Method to perform the replacement operation. This is a virtual method that must be implemented in the subclasses. It receives two vectors of individuals and performs the corresponding replacement over it.
Implemented in ReplaceWorst< S >, FirstImprove< S >, and EGenerational< S >.