Imagine you run a small workshop. You have a pile of jobs waiting and a handful of machines to do them. Each machine has a budget of hours — its capacity — and each job, on each machine, takes a certain amount of that capacity and earns a certain profit. The same job might be cheap and lucrative on one machine and slow and barely worth it on another.
Your task: assign every job to at most one machine, never exceed any machine's capacity, and make the total profit as large as possible.
That is the Generalized Assignment Problem (GAP). It sounds like the kind of thing a spreadsheet should settle in a second. It isn't. GAP generalizes both the knapsack problem (one machine) and the classic assignment problem, and as soon as machines have real capacity limits, finding the best assignment becomes genuinely hard.
Comments
Loading comments...