|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Configuration parameters specific to the cellular genetic algorithm. More...
#include <CellularGAParams.h>
Public Attributes | |
| bool | use_local_elitism = true |
| Keeps the best individual among the current cell and its offspring. | |
Public Attributes inherited from galib::AlgorithmConfig | |
| std::size_t | max_generations = 100 |
| Maximum number of generations to evolve. | |
| double | mutation_rate = 0.05 |
| Probability of mutation occurring for each individual [0.0, 1.0]. | |
| double | crossover_rate = 0.8 |
| Probability of crossover between parents [0.0, 1.0]. | |
| bool | use_elitism = true |
| Whether to preserve the best individual across generations. | |
| std::size_t | threads = 1 |
| std::size_t | num_threads = 0 |
| Number of OpenMP threads to use. 0 means use system default (omp_get_max_threads). | |
Additional Inherited Members | |
Public Member Functions inherited from galib::AlgorithmConfig | |
| virtual | ~AlgorithmConfig ()=default |
Configuration parameters specific to the cellular genetic algorithm.
Extends the common AlgorithmConfig with behaviour that controls local survivor selection inside each cell neighbourhood.
Definition at line 18 of file CellularGAParams.h.
| bool galib::CellularGAParams::use_local_elitism = true |
Keeps the best individual among the current cell and its offspring.
If enabled, the current individual competes with both produced children and the fittest of the three survives into the next generation.
Definition at line 25 of file CellularGAParams.h.
Referenced by galib::utils::AlgorithmBuilder< GeneType >::buildCellularGA().