|
The knapsack problem is one of the most studied problems in combinatorial optimization, with many real-life applications. For this reason, many special cases and generalizations have been examined. Common to all versions are a set of ''n'' items, with each item having an associated profit ''pj'' ,weight ''wj''. The binary decision variable ''xj'' is used to select the item. The objective is to pick some of the items, with maximal total profit, while obeying that the maximum total weight of the chosen items must not exceed ''W''. Generally, these coefficients are scaled to become integers, and they are almost always assumed to be positive. The knapsack problem in its most basic form: ^n w_j x_j \leq W, | |- | | | |} ==Direct generalizations== One common variant is that each item can be chosen multiple times. The bounded knapsack problem specifies, for each item ''j'', an upper bound ''uj'' (which may be a positive integer, or infinity) on the number of times item ''j'' can be selected: ^n w_j x_j \leq W, | |- | | integral for all ''j'' |} The unbounded knapsack problem (sometimes called the integer knapsack problem) does not put any upper bounds on the number of times an item may be selected: ^n w_j x_j \leq W, | |- | | integral for all ''j'' |} The unbounded variant was shown to be NP-complete in 1975 by Lueker. Both the bounded and unbounded variants admit an FPTAS (essentially the same as the one used in the 0-1 knapsack problem). If the items are subdivided into ''k'' classes denoted , and exactly one item must be taken from each class, we get the multiple-choice knapsack problem: p_ x_ | |- |subject to | | |- | | |for all |- | | |for all and all |} If for each item the profits and weights are identical, we get the subset sum problem (often the corresponding decision problem is given instead): ^n p_j x_j \leq W, | |- | | | |} If we have ''n'' items and ''m'' knapsacks with capacities , we get the multiple knapsack problem: ^n p_j x_ | |- |subject to | |for all |- | | |for all |- | | |for all and all |} As a special case of the multiple knapsack problem, when the profits are equal to weights and all bins have the same capacity, we can have multiple subset sum problem. Quadratic knapsack problem: ^\sum_^n p_ x_i x_j | |- |subject to | | |- | | |for all | |} Set-Union Knapsack Problem: SUKP is defined by Kellerer et al (on page 423) as follows:
抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「List of knapsack problems」の詳細全文を読む スポンサード リンク
|