IndexError in the best_solution function in line 3124 #93
-
After some time running the GA function ga_instance.run(), a IndexError occur in the following line:
Has anyone come across this index error before? How did you resolve it? After I modified the fitness parameters to a more appropriate setting I was able to get GA to run for longer, however the Index error still persists. Thanks for anyone's help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It it possible to share the code? |
Beta Was this translation helpful? Give feedback.
-
Problem fixed changing keep_parents from 1 to -1. I think the problem was the population size decreasing to 0. |
Beta Was this translation helpful? Give feedback.
Problem fixed changing keep_parents from 1 to -1.
I think the problem was the population size decreasing to 0.