1 #ifndef GENETICALGORITHM_H 2 #define GENETICALGORITHM_H
Abstract class describing a population of models.
int m_generationsMax
Stores the maximum number of generations.
int m_populationSize
Stores the desired population size.
void initialize(IPopulation *population)
void setNGenerationsMax(int generationsMax)
Class imlementing the Genetic Algorithm.
IModel * optimize(IPopulation *population)
IPopulation * m_population
Stores a pointer to the population being optimized.
void setPopulationSize(int populationSize)
int m_currentGeneration
Stores the number of the current generation.
Abstract class describing the interface for a model.
int getCurrentGeneration()