libfgen
0.1.15
Library for optimization using a genetic algorithm or particle swarm optimization
|
Public Member Functions | |
FGEN_API | FgenppArchipelago (int max_size) |
FGEN_API | ~FgenppArchipelago () |
FGEN_API void | AddIsland (FgenppPopulation *pop) |
FGEN_API void | Run (int max_generation) |
FGEN_API void | RunThreaded (int max_generation) |
FGEN_API void | RunSteadyState (int max_generation) |
FGEN_API void | RunSteadyStateThreaded (int max_generation) |
FGEN_API FgenppIndividual * | BestIndividual () |
FGEN_API FgenppPopulation * | GetPopulation (int index) |
FgenppArchipelago::FgenppArchipelago | ( | int | _max_size | ) |
Constructor for an archipelago of genetic algorithms of the specified maximum size.
Definition at line 314 of file fgenpp.cpp.
Deconstructor for an archipelago that frees all data structures associated with the archipelago.
Definition at line 324 of file fgenpp.cpp.
void FgenppArchipelago::AddIsland | ( | FgenppPopulation * | pop | ) |
Add an island of type FgenppPopulation * to an archipelago.
Definition at line 334 of file fgenpp.cpp.
void FgenppArchipelago::Run | ( | int | max_generation | ) |
Run the genetic algorithm on the archipelago.
Definition at line 343 of file fgenpp.cpp.
Returns the best individual of the archipelago (all islands).
Definition at line 363 of file fgenpp.cpp.
FgenppPopulation * FgenppArchipelago::GetPopulation | ( | int | index | ) |
Returns the population (of type FgenppPopulation) corresponding to the given index.
Definition at line 371 of file fgenpp.cpp.