5 #ifndef DIGNEA_STEADYGA_H
6 #define DIGNEA_STEADYGA_H
9 #include <dignea/core/Solution.h>
13 #include <dignea/utilities/random/PseudoRandom.h>
31 string getName()
const override {
return "Steady-State Genetic Algorithm"; }
37 string getID()
const override {
return "SSGA"; }
62 vector<S> offspring(1);
63 S child1 = this->selection->select(this->population);
64 S child2 = this->selection->select(this->population);
66 this->reproduction(child1, child2);
67 offspring[0] = child1;
78 this->performedEvaluations++;
Class to represent an Abstract Genetic Algorithm. Base skeleton is defined here, to extend in particu...
Definition: AbstractGA.h:38
unique_ptr< Replacement< S > > replacement
Definition: AbstractGA.h:101
Class to represents a Steady State Genetic Algorithm (SSGA) At each generation, a new individual is i...
Definition: SteadyGA.h:21
void updateProgress() override
Updates the performed evaluations by one on each call.
Definition: SteadyGA.h:77
string getName() const override
Get the Name.
Definition: SteadyGA.h:31
vector< S > createMating() override
Creates the mating of individuals to be evaluated.
Definition: SteadyGA.h:61
SteadyGA()
Creates a RAW Steady GA instance.
Definition: SteadyGA.h:51
string getID() const override
Get the ID of the algorithm.
Definition: SteadyGA.h:37