|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Replacement strategy that replaces the least fit individuals. More...
#include <WorstReplacer.h>
Public Member Functions | |
| void | replaceDeme (Population< GeneType > &population, std::vector< Individual< GeneType > > &&deme) const override |
| Replaces the worst local individuals. | |
Public Member Functions inherited from galib::DemeReplacer< GeneType > | |
| virtual | ~DemeReplacer ()=default |
Replacement strategy that replaces the least fit individuals.
Identifies the worst N individuals in the local population and replaces them with the N arrived migrants.
| GeneType | The gene type of the individuals. |
Definition at line 24 of file WorstReplacer.h.
|
inlineoverridevirtual |
Replaces the worst local individuals.
| population | Local population. |
| deme | Incoming migrants. |
Implements galib::DemeReplacer< GeneType >.
Definition at line 32 of file WorstReplacer.h.
References galib::Population< GeneType >::size().