Pantzan/KnapsackGA

Hardcoded Range in Initialize Function

fafraob opened this issue · 0 comments

In line 30 in knapsack.py the range is hardcoded to be range(0,5). Does only work correctly for your instances with 5 items. Could be solved by using range(0, len(weights)).