Skip to content
Snippets Groups Projects
Commit 1fe13dbe authored by Lennart Eichhorn's avatar Lennart Eichhorn
Browse files

Fixed SinglePoint Mutator.

parent f1e72f16
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,6 @@ public class Crossover<T extends Enum<?>> implements Mutator { ...@@ -61,6 +61,6 @@ public class Crossover<T extends Enum<?>> implements Mutator {
this.crossoverChance *= (1 - this.crossoverMultiplier); // Lower mutation rate with generation this.crossoverChance *= (1 - this.crossoverMultiplier); // Lower mutation rate with generation
} }
return mutatedPopulation; return mutatedPopulation;
} }
} }
...@@ -53,6 +53,6 @@ public class SinglePoint<T extends Enum<?>> implements Mutator { ...@@ -53,6 +53,6 @@ public class SinglePoint<T extends Enum<?>> implements Mutator {
this.mutationChance *= (1 - this.mutationMultiplier); // Lower mutation rate with generation this.mutationChance *= (1 - this.mutationMultiplier); // Lower mutation rate with generation
} }
return population; return mutatedPopulation;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment