Commit before some experiments with smart argument changing

This commit is contained in:
emil
2024-12-01 19:57:30 +03:00
parent 26d454c976
commit 1562f775af
12 changed files with 1358 additions and 15 deletions
@@ -66,8 +66,8 @@ public class Main {
MUTATIONRATE = 0.34;
}
else { // Ultra-hard sudoku
POPULATIONSIZE = 500000;
TOURNAMENTSIZE = 3;
POPULATIONSIZE = 100000;
TOURNAMENTSIZE = 10;
MUTATIONRATE = 0.1;
}
@@ -109,7 +109,7 @@ public class Main {
generation++;
// Plot the fitness graph every 10 generations
if (generation % 1 == 0) {
if (generation % 10 == 0) {
mainInstance.plotFitness(fitnessValues);
}