Skip to content

refactor: decouple SteadyStateGA from StandardGeneticAlgorithm#1488

Merged
arcuri82 merged 2 commits intomasterfrom
refactor/steady-state-decouple-from-standard-ga-v2
Mar 27, 2026
Merged

refactor: decouple SteadyStateGA from StandardGeneticAlgorithm#1488
arcuri82 merged 2 commits intomasterfrom
refactor/steady-state-decouple-from-standard-ga-v2

Conversation

@francastagna
Copy link
Collaborator

SteadyStateGeneticAlgorithm never called super.searchOnce() nor formTheNextPopulation(), so inheriting from StandardGeneticAlgorithm created unnecessary coupling to a concrete class. SteadyState now inherits directly from AbstractGeneticAlgorithm, simplifying the hierarchy. StandardGeneticAlgorithm no longer needs to be open.

SteadyStateGeneticAlgorithm never called super.searchOnce() nor
formTheNextPopulation(), so inheriting from StandardGeneticAlgorithm
created unnecessary coupling to a concrete class. SteadyState now
inherits directly from AbstractGeneticAlgorithm, simplifying the
hierarchy. StandardGeneticAlgorithm no longer needs to be open.
@jgaleotti jgaleotti requested a review from arcuri82 March 26, 2026 19:15
@arcuri82 arcuri82 merged commit 6ae5bb8 into master Mar 27, 2026
13 checks passed
@arcuri82 arcuri82 deleted the refactor/steady-state-decouple-from-standard-ga-v2 branch March 27, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants