diff --git a/src/parent_selection/parent_selection_methods.py b/src/parent_selection/parent_selection_methods.py index 5b33577..513a7be 100644 --- a/src/parent_selection/parent_selection_methods.py +++ b/src/parent_selection/parent_selection_methods.py @@ -151,7 +151,7 @@ class Parent_Selection: # The worst chromosome has a weight of 1, # the next worst chromosome has a weight of 2, # etc. - # with an inflation of (1-selection probability) * sum of weights + # with an inflation of (1-selection probability) * average weight average_weight = (len(ga.population)+1) // 2 inflation = (1-ga.selection_probability) * average_weight