Skip to content

Commit 6ae5bb8

Browse files
authored
Merge pull request #1488 from WebFuzzing/refactor/steady-state-decouple-from-standard-ga-v2
refactor: decouple SteadyStateGA from StandardGeneticAlgorithm
2 parents bbfea02 + 5924df2 commit 6ae5bb8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/kotlin/org/evomaster/core/search/algorithms/StandardGeneticAlgorithm.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import org.evomaster.core.search.algorithms.wts.WtsEvalIndividual
2424
* - This implementation assumes that crossover and mutation are implemented by the superclass.
2525
* - The actual fitness evaluation is managed externally via the [WtsEvalIndividual] wrapper.
2626
*/
27-
open class StandardGeneticAlgorithm<T> : AbstractGeneticAlgorithm<T>() where T : Individual {
27+
class StandardGeneticAlgorithm<T> : AbstractGeneticAlgorithm<T>() where T : Individual {
2828

2929
override fun getType(): EMConfig.Algorithm {
3030
return EMConfig.Algorithm.StandardGA

core/src/main/kotlin/org/evomaster/core/search/algorithms/SteadyStateGeneticAlgorithm.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import kotlin.math.max
1313
* of individuals at a time:
1414
* Only replaces selected parents with offspring if the offspring are better
1515
*
16-
* This class inherits from StandardGeneticAlgorithm to reuse shared components,
16+
* This class inherits from AbstractGeneticAlgorithm to reuse shared components,
1717
* but overrides search behavior to follow steady-state principles.
1818
*/
19-
class SteadyStateGeneticAlgorithm<T> : StandardGeneticAlgorithm<T>() where T : Individual {
19+
class SteadyStateGeneticAlgorithm<T> : AbstractGeneticAlgorithm<T>() where T : Individual {
2020

2121
override fun getType(): EMConfig.Algorithm {
2222
return EMConfig.Algorithm.SteadyStateGA

0 commit comments

Comments
 (0)