Modernized GAlib  3.0.0 current
GADCrowdingGA.h
1 // $Header$
2 /* ----------------------------------------------------------------------------
3  dcrowdingga.h
4  mbwall 29mar99
5  Copyright (c) 1999 Matthew Wall, all rights reserved
6 
7  Header file for the steady-state genetic algorithm class.
8 ---------------------------------------------------------------------------- */
9 #ifndef _ga_deterministic_crowding_ga_h_
10 #define _ga_deterministic_crowding_ga_h_
11 
12 #include <GABaseGA.h>
13 
15 {
16  public:
17  GADefineIdentity("GADeterministicCrowdingGA", 241);
18 
19  explicit GADCrowdingGA(const GAGenome &g) : GAGeneticAlgorithm(g) {}
20  ~GADCrowdingGA() override = default;
21 
22  void initialize(unsigned int seed = 0) override;
23  void step() override;
24  GADCrowdingGA &operator++()
25  {
26  step();
27  return *this;
28  }
29 };
30 
31 #endif
Definition: GADCrowdingGA.h:15
void step() override
Evolve by one generation.
void initialize(unsigned int seed=0) override
Undefined for the base class.
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