@@ -46,13 +46,13 @@ class MonotonicGeneticAlgorithmTest {
4646 val epc = injector.getInstance(ExecutionPhaseController ::class .java)
4747 epc.startSearch()
4848 val solution = monoGA.search()
49- epc.finishSearch ()
49+ epc.finishSession ()
5050 assertTrue(solution.individuals.size == 1 )
5151 assertEquals(OneMaxSampler .DEFAULT_N .toDouble(), solution.overall.computeFitnessScore(), 0.001 )
5252 }
5353 }
5454
55-
55+
5656 // Tests Edge Case: CrossoverProbability=0 on Monotonic GA
5757 @Test
5858 fun testNoCrossoverWhenProbabilityZero_Monotonic () {
@@ -97,7 +97,7 @@ class MonotonicGeneticAlgorithmTest {
9797 assertEquals(2 , rec.mutated.size)
9898 }
9999 }
100-
100+
101101 // Tests Edge Case: MutationProbability=0 on Monotonic GA
102102 @Test
103103 fun testNoMutationWhenProbabilityZero_Monotonic () {
@@ -118,7 +118,7 @@ class MonotonicGeneticAlgorithmTest {
118118 config.gaSolutionSource = EMConfig .GASolutionSource .POPULATION
119119 config.maxEvaluations = 100_000
120120 config.stoppingCriterion = EMConfig .StoppingCriterion .ACTION_EVALUATIONS
121-
121+
122122 ga.setupBeforeSearch()
123123
124124 val pop = ga.getViewOfPopulation()
@@ -139,7 +139,7 @@ class MonotonicGeneticAlgorithmTest {
139139 // crossover forced
140140 assertEquals(1 , rec.xoCalls.size)
141141 // mutation disabled
142- assertEquals(0 , rec.mutated.size)
142+ assertEquals(0 , rec.mutated.size)
143143 }
144144 }
145145 // Verifies that one generation is formed by elites plus monotonic replacement outcome
@@ -163,7 +163,7 @@ class MonotonicGeneticAlgorithmTest {
163163 config.gaSolutionSource = EMConfig .GASolutionSource .POPULATION
164164 config.maxEvaluations = 100_000
165165 config.stoppingCriterion = EMConfig .StoppingCriterion .ACTION_EVALUATIONS
166-
166+
167167 ga.setupBeforeSearch()
168168
169169 val pop = ga.getViewOfPopulation()
@@ -213,7 +213,7 @@ class MonotonicGeneticAlgorithmTest {
213213 assertTrue(rec.mutated.any { it == = o2 })
214214 }
215215 }
216-
216+
217217 // Ensures that maximum fitness never decreases across generations when running full search
218218 @Test
219219 fun testMonotonicReplacementRule () {
@@ -234,7 +234,7 @@ class MonotonicGeneticAlgorithmTest {
234234 val epc = injector.getInstance(ExecutionPhaseController ::class .java)
235235 epc.startSearch()
236236 val solution = monoGA.search()
237- epc.finishSearch ()
237+ epc.finishSession ()
238238 // Check monotonicity across recorded generations: best score (selection metric) is non-decreasing
239239 val bestScores = rec.bestFitnessPerGeneration
240240 for (k in 1 until bestScores.size) {
0 commit comments