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

Interface for choosing individuals to migrate out of the island. More...

#include <DemeSelector.h>

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

Public Member Functions

virtual ~DemeSelector ()=default
 
virtual std::vector< Individual< GeneType > > selectDeme (const Population< GeneType > &population, std::size_t count) const =0
 Selects individuals for migration.
 

Detailed Description

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

Interface for choosing individuals to migrate out of the island.

Implementations define which members of the local population are selected to be sent to neighboring islands.

Template Parameters
GeneTypeThe gene type of the individuals.

Definition at line 21 of file DemeSelector.h.

Constructor & Destructor Documentation

◆ ~DemeSelector()

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

Member Function Documentation

◆ selectDeme()

template<typename GeneType >
virtual std::vector< Individual< GeneType > > galib::DemeSelector< GeneType >::selectDeme ( const Population< GeneType > &  population,
std::size_t  count 
) const
pure virtual

Selects individuals for migration.

Parameters
populationThe local population to select from.
countThe number of individuals to select.
Returns
A vector containing copies of the selected individuals.

Implemented in galib::ElitismSelector< GeneType >.


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