Skip to content

Commit 1758e31

Browse files
shah314shah314
authored andcommitted
Only 1 mutation
Only 1 mutation
1 parent 1ab3ff5 commit 1758e31

File tree

4 files changed

+365792
-1
lines changed

4 files changed

+365792
-1
lines changed

gaClique.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int NUMBER_EDGES; // populated automatically by processData
2727
const int POPULATION = 10; // size of the population
2828
const int LOCAL_IMPROVEMENT = 10; // number of local improvements
2929
int GENERATIONS = 10000; // number of generations to run the algorithm
30-
const int MUTATIONS = 10; // How many vertices to remove randomly in the mutate() function
30+
const int MUTATIONS = 1; // How many vertices to remove randomly in the mutate() function
3131
const int UNIQUE_ITERATIONS = 100; // Used by localImprovement() to prevent a stall for very small cliques
3232
const int SHUFFLE_TOLERANCE = 10; // Generate a fresh population after a stall
3333

0 commit comments

Comments
 (0)