Abstract
We introduce a variant of the knapsack problem, in which the weights of items are also variables but must satisfy a system of linear constraints, and the capacity of knapsack is given and known. We discuss two models: (1) the value of each item is given; (2) the value-to-weight ratio of each item is given. The goal is to determine the weight of each item, and to find a subset of items such that the total weight is no more than the capacity and the total value is maximized. We provide several practical application scenarios that motivate our study, and then investigate the computational complexity and corresponding algorithms. In particular, we show that if the number of constraints is a fixed constant, then both problems can be solved in polynomial time. If the number of constraints is an input, then we show that the first problem is NP-Hard and cannot be approximated within any constant factor unless \(\mathrm{P}= \mathrm{NP}\), while the second problem is NP-Hard but admits a polynomial time approximation scheme. We further propose approximation algorithms for both problems, and extend the results to multiple knapsack cases with a fixed number of knapsacks and identical capacities.
Similar content being viewed by others
References
Adams, W.P., Sherali, H.D.: Mixed-integer bilinear programming problems. Math. Program. 59(1), 279–305 (1993)
Bertsimas, D., Sim, M.: The price of robustness. Oper. Res. 52(1), 35–53 (2004)
Bhalgat, A., Goel, A., Khanna, S.: Improved approximation results for stochastic knapsack problems. In: Proceedings of the Twenty-second Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’11, pp. 1647–1665. SIAM (2011)
Burer, S., Letchford, A.N.: Non-convex mixed-integer nonlinear programming: A survey. Surv. Oper. Res. Manag. Sci. 17(2), 97–106 (2012)
Chekuri, C., Khanna, S.: A polynomial time approximation scheme for the multiple knapsack problem. SIAM J. Comput. 35(3), 713–728 (2005)
Dean, B.C.: Approximation algorithms for stochastic scheduling problems. Ph.D. thesis, Massachusetts Institute of Technology, Boston (2005)
Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman and Co., San Francisco (1979)
Gupte, A., Ahmed, S., Cheon, M., Dey, S.: Solving mixed integer bilinear problems using MILP formulations. SIAM J. Optim. 23(2), 721–744 (2013)
Håstad, J.: Clique is hard to approximate within \(n^{1 - \epsilon }\). In: Proceedings 37th Annual Symposium on Foundations of Computer Science, pp. 627–636 (1996)
Ibarra, O.H., Kim, C.E.: Fast approximation algorithms for the knapsack and sum of subset problems. J. ACM 22(4), 463–468 (1975)
Kellerer, H., Pferschy, U., Pisinger, D.: Knapsack Problems. Springer, New York (2004)
Köppe, M.: On the complexity of nonlinear mixed-integer optimization. In: Lee, J., Leyffer, S. (eds.) Mixed-Integer Nonlinear Programming. IMA Volumes in Mathematics and its Applications, vol. 154, pp. 533–558. Springer, Berlin (2011)
Monaci, M., Pferschy, U.: On the robust knapsack problem. SIAM J. Optim. 23(4), 1956–1982 (2013)
Nip, K., Wang, Z., Wang, Z.: Scheduling under linear constraints. Eur. J. Oper. Res. 253(2), 290–297 (2016)
Sahni, S.: Algorithms for scheduling independent tasks. J. ACM 23(1), 116–127 (1976)
Wang, Z., Xing, W.: A successive approximation algorithm for the multiple knapsack problem. J. Comb. Optim. 17(4), 347–366 (2009)
Williamson, D.P., Shmoys, D.B.: The Design of Approximation Algorithms. Cambridge University Press, Cambridge (2011)
Ye, Y.: Interior Point Algorithms: Theory and Analysis. Wiley-Interscience, New York (1997)
Acknowledgements
We thank the anonymous reviewers for their constructive comments. Zhenbo Wang’s research has been supported by NSFC No. 11371216.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Nip, K., Wang, Z. & Wang, Z. Knapsack with variable weights satisfying linear constraints. J Glob Optim 69, 713–725 (2017). https://doi.org/10.1007/s10898-017-0540-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10898-017-0540-y