Elitist Generational Replacement Operator Performs the generational replacement operator with elitism 1.
More...
#include <EGenerational.h>
|
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 |
|
template<class S>
class EGenerational< S >
Elitist Generational Replacement Operator Performs the generational replacement operator with elitism 1.
- Template Parameters
-
◆ 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
-
- 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
-
- Parameters
-
- Returns
Implements Replacement< S >.
The documentation for this class was generated from the following file: