![]() |
Grail (C++)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
The Selection class encapsulates the selection operation, i.e., how individuals are selected from the current population to the next generation, in evolutionary algorithm. More...
#include <Selection.hh>
Public Member Functions | |
virtual void | Perform (std::vector< std::unique_ptr< EvoScript >> &population, size_t populationMaxSize) |
The Selection class encapsulates the selection operation, i.e., how individuals are selected from the current population to the next generation, in evolutionary algorithm.
|
virtual |
Perform - performs the selection
population | - the current population. |
populationMaxSize | - what is the maximum size of the population after the selection. |