Replacement procedure which replaces the worst individual in the population with the new offspring.
More...
#include <ReplaceWorst.h>
|
vector< S > | replace (vector< S > &vector1, vector< S > &vector2) override |
| Replaces the worst individual in the population for the best in offspring. Offspring must be of size 1. More...
|
|
vector< S > | replace (vector< S > &vector1, const S &solution, const int &position) override |
| Not implemented for this replacement. More...
|
|
string | getName () const override |
|
template<class S>
class ReplaceWorst< S >
Replacement procedure which replaces the worst individual in the population with the new offspring.
- Template Parameters
-
◆ replace() [1/2]
template<class S >
vector< S > ReplaceWorst< S >::replace |
( |
vector< S > & |
vector1, |
|
|
const S & |
solution, |
|
|
const int & |
position |
|
) |
| |
|
overridevirtual |
Not implemented for this replacement.
- Template Parameters
-
- Parameters
-
vector1 | |
solution | |
position | |
- Returns
- vector
Implements Replacement< S >.
◆ replace() [2/2]
template<class S >
vector< S > ReplaceWorst< S >::replace |
( |
vector< S > & |
population, |
|
|
vector< S > & |
offspring |
|
) |
| |
|
overridevirtual |
Replaces the worst individual in the population for the best in offspring. Offspring must be of size 1.
- Template Parameters
-
- Parameters
-
- Returns
Implements Replacement< S >.
The documentation for this class was generated from the following file: