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

Elitist Generational Replacement Operator Performs the generational replacement operator with elitism 1. More...

#include <EGenerational.h>

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

Public Member Functions

vector< S > replace (vector< S > &, vector< S > &) override
 Performs the generational replacement operator between the two vectors of individuals. The resulting vector is the population with the best fittest solutions and pop.len() - 1 best others. More...
 
vector< S > replace (vector< S > &, const S &, const int &position) override
 Not implemented for this replacement. More...
 
string getName () const override
 

Detailed Description

template<class S>
class EGenerational< S >

Elitist Generational Replacement Operator Performs the generational replacement operator with elitism 1.

Template Parameters
S

Member Function Documentation

◆ replace() [1/2]

template<class S >
vector< S > EGenerational< S >::replace ( vector< S > &  population,
const S &  offspring,
const int &  position 
)
overridevirtual

Not implemented for this replacement.

Template Parameters
S
Parameters
population
offspring
position
Returns
vector

Implements Replacement< S >.

◆ replace() [2/2]

template<class S >
vector< S > EGenerational< S >::replace ( vector< S > &  population,
vector< S > &  offspring 
)
overridevirtual

Performs the generational replacement operator between the two vectors of individuals. The resulting vector is the population with the best fittest solutions and pop.len() - 1 best others.

Template Parameters
S
Parameters
vector1
Returns

Implements Replacement< S >.


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