From f1105f4df0547156b24d7fbb3effc693217b8a5c Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Thu, 19 Nov 2020 09:53:42 -0500 Subject: [PATCH] Added comment --- src/mutation/mutation_methods.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mutation/mutation_methods.py b/src/mutation/mutation_methods.py index e827730..8ff352b 100644 --- a/src/mutation/mutation_methods.py +++ b/src/mutation/mutation_methods.py @@ -23,6 +23,7 @@ class Mutation_Methods: index = random.randint(0, ga.population.size()-1) chromosome = ga.population.get_chromosome(index) + # Cross the chromosome with its mutation ga.population.set_chromosome( ga.crossover_individual_impl(ga, chromosome, ga.mutation_individual_impl(ga, chromosome)), index