update sol of knapsack