Added comment
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user