Hardcoded Range in Initialize Function
Opened this issue · 0 comments
fafraob commented
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)).