|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Selection strategy that chooses the best individuals for migration. More...
#include <ElitismSelector.h>
Public Member Functions | |
| std::vector< Individual< GeneType > > | selectDeme (const Population< GeneType > &population, std::size_t count) const override |
| Selects the elite members of the population. | |
Public Member Functions inherited from galib::DemeSelector< GeneType > | |
| virtual | ~DemeSelector ()=default |
Selection strategy that chooses the best individuals for migration.
Picks the top count fittest individuals from the local population to be shared with neighbors.
| GeneType | The gene type of the individuals. |
Definition at line 24 of file ElitismSelector.h.
|
inlineoverridevirtual |
Selects the elite members of the population.
| population | Source population. |
| count | Number of elites to select. |
Implements galib::DemeSelector< GeneType >.
Definition at line 33 of file ElitismSelector.h.
References galib::Population< GeneType >::size().