For the Coursera Discrete Optimisation knapsack assignment