Grail (C++)  1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Selection.hh
1 // Copyright QED Software 2023.
2 
3 #ifndef GRAIL_SELECTION_H
4 #define GRAIL_SELECTION_H
5 
6 #include <memory>
7 #include <vector>
8 
9 namespace grail
10 {
11 namespace evolution
12 {
13  class Individual;
14 
19  class Selection
20  {
21  public:
22  virtual ~Selection();
23 
30  virtual void Perform(std::vector<std::unique_ptr<Individual>>& currentPopulation, size_t populationMaxSize);
31  };
32 }
33 }
34 #endif // GRAIL_SELECTION_H
grail::evolution::Selection::Perform
virtual void Perform(std::vector< std::unique_ptr< Individual >> &currentPopulation, size_t populationMaxSize)
Perform - performs the selection.
Definition: Selection.cpp:10
grail::evolution::Selection
The Selection class encapsulates the selection operation, i.e., how individuals are selected from the...
Definition: Selection.hh:19