Jump to content

Generalized assignment problem: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
Line 10: Line 10:
==Definition==
==Definition==
In the following, we have ''n'' kinds of items, <math>x_1</math> through <math>x_n</math> and ''m'' kinds of bins <math>b_1</math> through <math>b_m</math>. Each bin <math>b_1</math> is associated with a budget <math>w_i</math>. For a bin <math>b_i</math>, each item <math>x_j</math> has a profit <math>p_{ij}</math> and a weight <math>w_{ij}</math>. A solution is subset of items ''U'' and an assignment from ''U'' to the bins. A feasible solution is a solution in which for each bin <math>b_i</math> the weights sum of assigned items is at most <math>w_i</math>. The solution's profit is the sum of profits for each item-bin assignment. The goal is to find a maximum profit feasible solution.
In the following, we have ''n'' kinds of items, <math>x_1</math> through <math>x_n</math> and ''m'' kinds of bins <math>b_1</math> through <math>b_m</math>. Each bin <math>b_1</math> is associated with a budget <math>w_i</math>. For a bin <math>b_i</math>, each item <math>x_j</math> has a profit <math>p_{ij}</math> and a weight <math>w_{ij}</math>. A solution is subset of items ''U'' and an assignment from ''U'' to the bins. A feasible solution is a solution in which for each bin <math>b_i</math> the weights sum of assigned items is at most <math>w_i</math>. The solution's profit is the sum of profits for each item-bin assignment. The goal is to find a maximum profit feasible solution.

The generalized assignment problem is NP-hard, and it is even APX-hard to approximation. Recently it was shown that it is (<math>e/(e-1) - \epsilon</math>) hard to approximate for every <math>\epsilon</math>.

==Greedy Algorithm==
Using any algorithm ALG <math> \alpha</math>-approximation algorithm for the knapsack problem, it is possible to construct a (<math> \alpha+1</math>)-approximation for the generalized assignment problem in a greedy manner using a residual profit concept.
The residual profit of an item <math>x_i</math> for bin <math>b_j</math> is <math>p_{ij}</math> is <math>x_i</math> is not selected for any other bin or <math> p_{ij}</math> – <math>p_{ik} </math> if <math>x_i</math> is selected for bin <math>b_k</math>.


Mathematically the generalized assignment problem can be formulated as:
Mathematically the generalized assignment problem can be formulated as:
Line 23: Line 17:
::<math> x_{ij} \in \{0,1\} \qquad i=1, \ldots, m, \quad j=1, \ldots, n</math>;
::<math> x_{ij} \in \{0,1\} \qquad i=1, \ldots, m, \quad j=1, \ldots, n</math>;


The generalized assignment problem is NP-hard, and it is even APX-hard to approximation. Recently it was shown that it is (<math>e/(e-1) - \epsilon</math>) hard to approximate for every <math>\epsilon</math>.

==Greedy Algorithm==
Using any algorithm ALG <math> \alpha</math>-approximation algorithm for the knapsack problem, it is possible to construct a (<math> \alpha+1</math>)-approximation for the generalized assignment problem in a greedy manner using a residual profit concept.
The residual profit of an item <math>x_i</math> for bin <math>b_j</math> is <math>p_{ij}</math> is <math>x_i</math> is not selected for any other bin or <math> p_{ij}</math> – <math>p_{ik} </math> if <math>x_i</math> is selected for bin <math>b_k</math>.


Formally:
Formally:

Revision as of 15:00, 26 January 2007

The maximum general assignment problem is a problem in combinatorial optimization. This problem is a generalization of the assignment problem in which both task and agents have a size. Moreover, this size of each task might vary from one agent to the other.

This problem in its most general form, the problem is as follows:

There are a number of agents and a number of tasks. Any agent can be assigned to perform any task, incurring some cost and profit that may vary depending on the agent-task assignment. Moreover, each agent has a budget and the sum of the costs of task assigned to it cannot exceed this budget. It is required to find an assignment in which an agent does not exceed its budget and total profit of the assignment is maximized.

Special cases

In the special case in which all the agents' budgets and all tasks' costs are equal to 1, this problem reduces to the maximum assignment problem. When the costs and profits of all agents-task assignment are equal, this problem reduces to the multiple knapsack problem. If there is a single agent, then, this problem reduces to the Knapsack problem.

Definition

In the following, we have n kinds of items, through and m kinds of bins through . Each bin is associated with a budget . For a bin , each item has a profit and a weight . A solution is subset of items U and an assignment from U to the bins. A feasible solution is a solution in which for each bin the weights sum of assigned items is at most . The solution's profit is the sum of profits for each item-bin assignment. The goal is to find a maximum profit feasible solution.

Mathematically the generalized assignment problem can be formulated as:

maximize
subject to ;
;
;

The generalized assignment problem is NP-hard, and it is even APX-hard to approximation. Recently it was shown that it is () hard to approximate for every .

Greedy Algorithm

Using any algorithm ALG -approximation algorithm for the knapsack problem, it is possible to construct a ()-approximation for the generalized assignment problem in a greedy manner using a residual profit concept. The residual profit of an item for bin is is is not selected for any other bin or if is selected for bin .

Formally:

For do:
call ALG to find a solution to bin using the residual profit function.

References

Fleischer, Goemans, Mirrokni, and Sviridenko, 2006.

  • Knapsack Problems. Springer Verlag. 2005. ISBN 3-540-40286-1. {{cite book}}: |first= missing |last= (help); Text "Kellerer" ignored (help); Text "Kellerer" ignored (help)