fafraob opened this issue 4 years ago · 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)).