18 GADefineIdentity(
"GASteadyStateGA", GAID::SteadyStateGA);
38 int setptr(
const std::string &name,
const void *value)
override;
39 int get(
const char *name,
void *value)
const override;
41 int minimaxi()
const override {
return minmax; }
42 int minimaxi(
int m)
override;
44 const GAPopulation &population()
const override {
return *pop; }
46 int populationSize()
const override {
return pop->size(); }
47 int populationSize(
unsigned int n)
override;
51 return GAGeneticAlgorithm::scaling(s);
56 return GAGeneticAlgorithm::selector(s);
58 void objectiveFunction(GAGenome::Evaluator f)
override;
59 void objectiveData(
const GAEvalData &v)
override;
61 float pReplacement()
const {
return pRepl; }
62 float pReplacement(
float p);
63 int nReplacement()
const {
return nRepl; }
64 int nReplacement(
unsigned int n);
This is the basic interface for the object that contains evaluation data.
Definition: GAEvalData.h:15
The base GA class is virtual - it defines the core data elements and parts of the interface that are ...
Definition: GABaseGA.h:89
The base genome class just defines the genome interface - how to mutate, crossover,...
Definition: GAGenome.h:200
Parameter List.
Definition: GAParameter.h:83
Definition: GAPopulation.h:66
Definition: GAScaling.h:46
Definition: GASelector.h:55
Steady-state genetic algorithm class.
Definition: GASStateGA.h:16
void initialize(unsigned int seed=0) override
Undefined for the base class.
void step() override
Evolve by one generation.