Representation of genetic algorithm. Glues everything together.
More...
#include <GeneticAlgorithm.h>
|
| GeneticAlgorithm (int pop_size, const std::shared_ptr< Selector< T >> &s, const std::shared_ptr< Crossover< T >> c, const std::shared_ptr< Mutator< T >> &m, int _steps=-1, bool _rem_clones=true) |
|
std::shared_ptr< T > | optimize (FILE *stream) |
|
std::shared_ptr< T > | optimize () override |
|
template<class T>
class EvolutionaryAlgorithm::GeneticAlgorithm< T >
Representation of genetic algorithm. Glues everything together.
- Parameters
-
T | Type of specimen representation, subclass of Schedule. |
Definition at line 27 of file GeneticAlgorithm.h.
- Parameters
-
pop_size | Size of the population. |
s | Selection operator. |
c | Crossover operator. |
m | Mutation operator. |
Executes the genetic algorithm.
- Parameters
-
stream | File stream for statistics output. |
- Returns
- The most adapted specimen in all populations (best solution found).
The documentation for this class was generated from the following file: