GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
Loading...
Searching...
No Matches
Public Member Functions | List of all members
galib::DemeReplacer< GeneType > Class Template Referenceabstract

Interface for integrating incoming migrants into the local population. More...

#include <DemeReplacer.h>

Inheritance diagram for galib::DemeReplacer< GeneType >:
[legend]

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.
 

Detailed Description

template<typename GeneType>
class galib::DemeReplacer< GeneType >

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.

Template Parameters
GeneTypeThe gene type of the individuals.

Definition at line 21 of file DemeReplacer.h.

Constructor & Destructor Documentation

◆ ~DemeReplacer()

template<typename GeneType >
virtual galib::DemeReplacer< GeneType >::~DemeReplacer ( )
virtualdefault

Member Function Documentation

◆ replaceDeme()

template<typename GeneType >
virtual void galib::DemeReplacer< GeneType >::replaceDeme ( Population< GeneType > &  population,
std::vector< Individual< GeneType > > &&  deme 
) const
pure virtual

Replaces a portion of the local population with the given migrants.

Parameters
populationThe local population to modify.
demeThe incoming individuals (migrants).

Implemented in galib::WorstReplacer< GeneType >.


The documentation for this class was generated from the following file: