Generalized assignment problem

From HandWiki
Short description: Combinatorial optimization problem

In applied mathematics, the maximum generalized assignment problem is a problem in combinatorial optimization. This problem is a generalization of the assignment problem in which both tasks and agents have a size. Moreover, the size of each task might vary from one agent to the other.

This problem in its most general form 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 tasks assigned to it cannot exceed this budget. It is required to find an assignment in which all agents do not exceed their budget and total profit of the assignment is maximized.

In 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 assignment problem. When the costs and profits of all tasks do not vary between different agents, this problem reduces to the multiple knapsack problem. If there is a single agent, then, this problem reduces to the knapsack problem.

Explanation of definition

In the following, we have n kinds of items, [math]\displaystyle{ a_1 }[/math] through [math]\displaystyle{ a_n }[/math] and m kinds of bins [math]\displaystyle{ b_1 }[/math] through [math]\displaystyle{ b_m }[/math]. Each bin [math]\displaystyle{ b_i }[/math] is associated with a budget [math]\displaystyle{ t_i }[/math]. For a bin [math]\displaystyle{ b_i }[/math], each item [math]\displaystyle{ a_j }[/math] has a profit [math]\displaystyle{ p_{ij} }[/math] and a weight [math]\displaystyle{ w_{ij} }[/math]. A solution is an assignment from items to bins. A feasible solution is a solution in which for each bin [math]\displaystyle{ b_i }[/math] the total weight of assigned items is at most [math]\displaystyle{ t_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.

Mathematically the generalized assignment problem can be formulated as an integer program:

[math]\displaystyle{ \begin{align} \text{maximize } & \sum_{i=1}^m\sum_{j=1}^n p_{ij} x_{ij}. \\ \text{subject to } & \sum_{j=1}^n w_{ij} x_{ij} \le t_i & & i=1, \ldots, m; \\ & \sum_{i=1}^m x_{ij} \le 1 & & j=1, \ldots, n; \\ & x_{ij} \in \{0,1\} & & i=1, \ldots, m, \quad j=1, \ldots, n; \end{align} }[/math]

Complexity

The generalized assignment problem is NP-hard,[1] However, there are linear-programming relaxations which give a [math]\displaystyle{ (1 - 1/e) }[/math]-approximation.[2]

Greedy approximation algorithm

For the problem variant in which not every item must be assigned to a bin, there is a family of algorithms for solving the GAP by using a combinatorial translation of any algorithm for the knapsack problem into an approximation algorithm for the GAP.[3]

Using any [math]\displaystyle{ \alpha }[/math]-approximation algorithm ALG for the knapsack problem, it is possible to construct a ([math]\displaystyle{ \alpha + 1 }[/math])-approximation for the generalized assignment problem in a greedy manner using a residual profit concept. The algorithm constructs a schedule in iterations, where during iteration [math]\displaystyle{ j }[/math] a tentative selection of items to bin [math]\displaystyle{ b_j }[/math] is selected. The selection for bin [math]\displaystyle{ b_j }[/math] might change as items might be reselected in a later iteration for other bins. The residual profit of an item [math]\displaystyle{ x_i }[/math] for bin [math]\displaystyle{ b_j }[/math] is [math]\displaystyle{ p_{ij} }[/math] if [math]\displaystyle{ x_i }[/math] is not selected for any other bin or [math]\displaystyle{ p_{ij} }[/math][math]\displaystyle{ p_{ik} }[/math] if [math]\displaystyle{ x_i }[/math] is selected for bin [math]\displaystyle{ b_k }[/math].

Formally: We use a vector [math]\displaystyle{ T }[/math] to indicate the tentative schedule during the algorithm. Specifically, [math]\displaystyle{ T[i]=j }[/math] means the item [math]\displaystyle{ x_i }[/math] is scheduled on bin [math]\displaystyle{ b_j }[/math] and [math]\displaystyle{ T[i]=-1 }[/math] means that item [math]\displaystyle{ x_i }[/math] is not scheduled. The residual profit in iteration [math]\displaystyle{ j }[/math] is denoted by [math]\displaystyle{ P_j }[/math], where [math]\displaystyle{ P_j[i]=p_{ij} }[/math] if item [math]\displaystyle{ x_i }[/math] is not scheduled (i.e. [math]\displaystyle{ T[i]=-1 }[/math]) and [math]\displaystyle{ P_j[i]=p_{ij}-p_{ik} }[/math] if item [math]\displaystyle{ x_i }[/math] is scheduled on bin [math]\displaystyle{ b_k }[/math] (i.e. [math]\displaystyle{ T[i]=k }[/math]).

Formally:

Set [math]\displaystyle{ T[i]=-1 \text{ for } i = 1\ldots n }[/math]
For [math]\displaystyle{ j=1,\ldots,m }[/math] do:
Call ALG to find a solution to bin [math]\displaystyle{ b_j }[/math] using the residual profit function [math]\displaystyle{ P_j }[/math]. Denote the selected items by [math]\displaystyle{ S_j }[/math].
Update [math]\displaystyle{ T }[/math] using [math]\displaystyle{ S_j }[/math], i.e., [math]\displaystyle{ T[i]=j }[/math] for all [math]\displaystyle{ i \in S_j }[/math].

See also

References

  1. Özbakir, Lale; Baykasoğlu, Adil; Tapkan, Pınar (2010), Bees algorithm for generalized assignment problem, Applied Mathematics and Computation, 215, Elsevier, pp. 3782–3795, doi:10.1016/j.amc.2009.11.018 .
  2. Fleischer, Lisa; Goemans, Michel X.; Mirrokni, Vahab S.; Sviridenko, Maxim (2006). Tight approximation algorithms for maximum general assignment problems. 
  3. Cohen, Reuven; Katzir, Liran; Raz, Danny (2006). "An efficient approximation for the Generalized Assignment Problem". Information Processing Letters 100 (4): 162–166. doi:10.1016/j.ipl.2006.06.003. 

Further reading

Kellerer, Hans; Pferschy, Ulrich; Pisinger, David (2013-03-19). Knapsack Problems. Springer. ISBN 978-3-540-24777-7.