Implements a fitness-proportional selection scheme for mating selection that scales the fitness values linearly before carrying out the actual selection. More...
#include <shark/Algorithms/DirectSearch/Operators/Selection/LinearRanking.h>
Public Member Functions | |
LinearRankingSelection () | |
template<typename RngType , typename InIterator , typename OutIterator > | |
void | operator() (RngType &rng, InIterator individuals, InIterator individualsE, OutIterator out, OutIterator outE) const |
Selects individualss from the range of parent and offspring individuals. More... | |
Public Attributes | |
double | etaMax |
Selective pressure, parameter in [1,2] conrolling selection strength. 1.1 by default. More... | |
Implements a fitness-proportional selection scheme for mating selection that scales the fitness values linearly before carrying out the actual selection.
The algorithm is described in: James E. Baker. Adaptive Selection Methods for Genetic Algorithms. In John J. Grefenstette (ed.): Proceedings of the 1st International Conference on Genetic Algorithms (ICGA), pp. 101-111, Lawrence Erlbaum Associates, 1985
Definition at line 57 of file LinearRanking.h.
|
inline |
Definition at line 58 of file LinearRanking.h.
References shark::LinearRankingSelection< Ordering >::etaMax.
|
inline |
Selects individualss from the range of parent and offspring individuals.
The operator carries out the following steps:
[in] | individuals | Iterator pointing to the first valid individual. |
[in] | individualsE | Iterator pointing to the first invalid individual. |
[in] | out | Iterator pointing to the first valid element of the output range. |
[in] | outE | Iterator pointing to the first invalid element of the output range. |
Definition at line 75 of file LinearRanking.h.
double shark::LinearRankingSelection< Ordering >::etaMax |
Selective pressure, parameter in [1,2] conrolling selection strength. 1.1 by default.
Definition at line 111 of file LinearRanking.h.
Referenced by shark::LinearRankingSelection< Ordering >::LinearRankingSelection().