|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Abstract interface for neighbourhood-based parent selection in a cellular GA. More...
#include <LocalSelection.h>
Public Member Functions | |
| virtual | ~LocalSelection ()=default |
| Virtual destructor for polymorphic use. | |
| virtual const Individual< GeneType > & | select (const Population< GeneType > &population, std::size_t row, std::size_t col, std::size_t rows, std::size_t cols) const =0 |
| Selects one individual from the neighbourhood of a grid cell. | |
Abstract interface for neighbourhood-based parent selection in a cellular GA.
Implementations choose one individual for the current cell using only the local neighbourhood of that cell in the inferred 2D grid.
| GeneType | Numeric type of each gene. |
Definition at line 19 of file LocalSelection.h.
|
virtualdefault |
Virtual destructor for polymorphic use.
|
pure virtual |
Selects one individual from the neighbourhood of a grid cell.
| population | Population interpreted as a 2D grid in row-major order. |
| row | Row of the current cell. |
| col | Column of the current cell. |
| rows | Total number of grid rows. |
| cols | Total number of grid columns. |
Implemented in galib::BestNeighborSelection< GeneType >.