I have the same problem as here: Variation on knapsack - minimum total value exceeding 'W' with an added constraint.
Details:
We have a group of items, each item (i) has a weight (w_i) and a value (v_i) and a price(p_i). We have to select a subgroup of these items such that:
- minimize the total aggregate value
s.t.
- total aggregate weight is at least W.
- total aggregate price is at most P.
If we ignore the last constraint, this is equivalent of 0/1 knapsack problem and can be solved as amit mentioned in the question linked above. With the addition of last constraint is it still solvable using dynamic programming ?
Any tips are appreciated.