dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
Replacement< S > Class Template Referenceabstract

Replacement skeleton operator. More...

#include <Replacement.h>

Inheritance diagram for Replacement< S >:
EGenerational< S > FirstImprove< S > ReplaceWorst< S >

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
 

Detailed Description

template<class S>
class Replacement< S >

Replacement skeleton operator.

Template Parameters
SType of individual in the population

Member Function Documentation

◆ replace() [1/2]

template<class S >
virtual vector<S> Replacement< S >::replace ( vector< S > &  ,
const S &  ,
const int &  position 
)
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.

Parameters
position
Returns
vector

Implemented in ReplaceWorst< S >, FirstImprove< S >, and EGenerational< S >.

◆ replace() [2/2]

template<class S >
virtual vector<S> Replacement< S >::replace ( vector< S > &  ,
vector< 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.

Returns
vector

Implemented in ReplaceWorst< S >, FirstImprove< S >, and EGenerational< S >.


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