Grail (C#)
1.4.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 the evolutionary algorithm.
See EAOptimizer.
More...
Public Member Functions | |
virtual List< Individual > | Perform (List< Individual > currentPopulation, int populationMaxSize) |
The function that performs the selection. More... | |
The Selection class encapsulates the selection operation, i.e., how individuals are selected from the current population to the next generation, in the evolutionary algorithm.
See EAOptimizer.
|
inlinevirtual |
The function that performs the selection.
currentPopulation | The input population before the selection. For convenience, it will be sorted by fitness from lowest to highest. |
populationMaxSize | The expected population size after the selection. When implementing a custom Perform method, you should make sure that the returned population size is equal to this value, if possible. |