diff --git a/src/mutation/mutation_methods.py b/src/mutation/mutation_methods.py index 82ef0f4..37d9d78 100644 --- a/src/mutation/mutation_methods.py +++ b/src/mutation/mutation_methods.py @@ -89,7 +89,7 @@ class Mutation_Methods: """Selects random chromosomes while avoiding the best chromosomes. (Elitism)""" index = random.randrange( - len(ga.population)/8, + ceil(len(ga.population)/8), len(ga.population) ) ga.mutation_individual_impl(ga, index)