Grail (C++)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::evolution::Selection Class Reference

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)
 

Detailed Description

The Selection class encapsulates the selection operation, i.e., how individuals are selected from the current population to the next generation, in evolutionary algorithm.

Member Function Documentation

◆ Perform()

void grail::evolution::Selection::Perform ( std::vector< std::unique_ptr< EvoScript >> &  population,
size_t  populationMaxSize 
)
virtual

Perform - performs the selection

Parameters
population- the current population.
populationMaxSize- what is the maximum size of the population after the selection.

The documentation for this class was generated from the following files: