[727d4a]: examples / knapsack / knapsack.tst  Maximize  Restore  History

Download this file

12 lines (8 with data), 285 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# knapsack.tst
>>> import test
>>> test.run((('bread', 4, 9200),
... ('pasta', 2, 4500),
... ('peanutButter', 1, 6700),
... ('babyFood', 3, 6900)),
... 4)
(13600, (('peanutButter', 1, 6700), ('babyFood', 3, 6900)))