I have the following 0-1 knapsack problem variant:
I want to buy X units of a product at min cost, and there are m farmers that offer:
- farmer 1: a11 units at cost c11, ..., a1n1 units at cost c1n1
...
- farmer m: am1 units at cost cm1, ..., amnm units at cost cmnm
and I can choose at most...