continuous knapsack