Reputation: 3473
I'm looking to solve a constrained optimization problem. I believe it is a variant of the generalized assignment problem.
I have n kinds of items, x1 through xn and m kinds of bins b1 through bm. There is an overall budget w. For a bin bi, each item xj has a profit pij and a weight wij. We want to:
find xij, which indicates the number of items of type j in bin i
maximize sum(i=1 to m) sum(j=1 to n) pij xij
subject to:
sum(i=1 to m) sum(j=1 to n) wij xij <= w (total weight budget)
sum(i=1 to m) xij <= 1 (each item goes in 0 or 1 bins)
each xij is equal to 0 or 1 (no partial or negative item assignments)
So this is identical to the generalized assignment problem as presented on Wikipedia, but there is an overall budget instead of a budget for each bin.
I'm wondering whether this maps to another named problem so I can read about known solutions.
Upvotes: 2
Views: 218
Reputation: 226
This is variation of 0-1 knapsack problem with mn items.
We can view different weights and profits in bins as different items. We have mn items x11 ... xmn, where item xij have weight wij and profit pij. The only difference from knapsack problem is that we can take at most one item from one "group" of items (items with same type). But regarding dynamic programming algorithm, this is simplification, because you don't need to take combinations of items in one group into account.
Upvotes: 1