|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
Parameters for the Island Model Genetic Algorithm. More...
#include <IslandGAParams.h>
Public Attributes | |
| std::size_t | migration_interval = 50 |
| Number of generations between migration events. | |
| std::size_t | migration_size = 5 |
| Number of individuals to send per migration event. | |
| double | immigration_quota = 0.1 |
| Maximum fraction of the population that can be replaced by migrants in one step. | |
| std::size_t | buffer_capacity = 5 |
| Capacity of the circular buffer for incoming migrants (in terms of batches). | |
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 |
Parameters for the Island Model Genetic Algorithm.
Extends the base AlgorithmConfig with parameters specific to migration and asynchronous communication between islands.
Definition at line 17 of file IslandGAParams.h.
| std::size_t galib::IslandGAParams::buffer_capacity = 5 |
Capacity of the circular buffer for incoming migrants (in terms of batches).
Definition at line 28 of file IslandGAParams.h.
| double galib::IslandGAParams::immigration_quota = 0.1 |
Maximum fraction of the population that can be replaced by migrants in one step.
Definition at line 25 of file IslandGAParams.h.
Referenced by galib::utils::AlgorithmBuilder< GeneType >::buildIslandGA().
| std::size_t galib::IslandGAParams::migration_interval = 50 |
Number of generations between migration events.
Definition at line 19 of file IslandGAParams.h.
Referenced by galib::utils::AlgorithmBuilder< GeneType >::buildIslandGA().
| std::size_t galib::IslandGAParams::migration_size = 5 |
Number of individuals to send per migration event.
Definition at line 22 of file IslandGAParams.h.
Referenced by galib::utils::AlgorithmBuilder< GeneType >::buildIslandGA().