ScRGB

From formulasearchengine
Revision as of 00:30, 11 March 2012 by en>PetesGuide (External links: replaced broken link to ExtremeTech "Defining scRGB" with link to same article found on PCMag.com (verified by using Wayback machine))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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, x1 through xn and m kinds of bins b1 through bm. Each bin bi is associated with a budget wi. For a bin bi, each item xj has a profit pij and a weight wij. A solution is a subset of items U and an assignment from U to the bins. A feasible solution is a solution in which for each bin bi the total weight of assigned items is at most wi. 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 i=1mj=1npijxij.
subject to j=1nwijxijwii=1,,m;
i=1mxij1j=1,,n;
xij{0,1}i=1,,m,j=1,,n;

The generalized assignment problem is NP-hard, and it is even APX-hard to approximate it. Recently it was shown that an extension of it is e/(e1)ε hard to approximate for every ε.Potter or Ceramic Artist Truman Bedell from Rexton, has interests which include ceramics, best property developers in singapore developers in singapore and scrabble. Was especially enthused after visiting Alejandro de Humboldt National Park.

Greedy approximation algorithm

Using any algorithm ALG α-approximation algorithm for the knapsack problem, it is possible to construct a (α+1)-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 j a tentative selection of items to bin bj is selected. The selection for bin bj might change as items might be reselected in a later iteration for other bins. The residual profit of an item xi for bin bj is pij if xi is not selected for any other bin or pijpik if xi is selected for bin bk.

Formally: We use a vector T to indicate the tentative schedule during the algorithm. Specifically, T[i]=j means the item xi is scheduled on bin bj and T[i]=1 means that item xi is not scheduled. The residual profit in iteration j is denoted by Pj, where Pj[i]=pij if item xi is not scheduled (i.e. T[i]=1) and Pj[i]=pijpik if item xi is scheduled on bin bk (i.e. T[i]=k).

Formally:

Set T[i]=1 for all i=1n
For j=1...m do:
Call ALG to find a solution to bin bj using the residual profit function Pj. Denote the selected items by Sj.
Update T using Sj, i.e., T[i]=j for all iSj.

See also

References

External links