Modify franctional knapsack problem