Trying to adapt the problem to the inspyred knapsack implementation