|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Interface for integrating incoming migrants into the local population. More...
#include <DemeReplacer.h>
Public Member Functions | |
| virtual | ~DemeReplacer ()=default |
| virtual void | replaceDeme (Population< GeneType > &population, std::vector< Individual< GeneType > > &&deme) const =0 |
| Replaces a portion of the local population with the given migrants. | |
Interface for integrating incoming migrants into the local population.
Implementations define the strategy for which local individuals are replaced when a "deme" (sub-population) arrives from another island.
| GeneType | The gene type of the individuals. |
Definition at line 21 of file DemeReplacer.h.
|
virtualdefault |
|
pure virtual |
Replaces a portion of the local population with the given migrants.
| population | The local population to modify. |
| deme | The incoming individuals (migrants). |
Implemented in galib::WorstReplacer< GeneType >.