Abstract
In this paper, we present a novel hybrid metaheuristic for the Knapsack Problem with Forfeits (KPF). KPF is a recently introduced generalization of the Knapsack Problem. In this variant, a penalty cost incurs whenever both items composing a so-called forfeit pair belong to the solution. Our proposed algorithm, called GA–CG Forfeits, combines the strengths of the Genetic and Carousel Greedy paradigms. In this work, we define the algorithm and compare it with two previously proposed heuristics on a set of benchmark instances. In these tests, GA–CG Forfeits provided significantly better solutions than the other two algorithms on all instances.
Similar content being viewed by others
Data availability
The datasets generated during the current study are available from the corresponding author (Andrea Raiconi) on reasonable request.
References
Abualigah L, Diabat A (2021) Advances in sine cosine algorithm: a comprehensive survey. Artif Intell Rev 54(4):2567–2608
Abualigah L, Dulaimi AJ (2021) A novel feature selection method for data mining tasks using hybrid sine cosine algorithm and genetic algorithm. Cluster Comput 24:2161–2176
Abualigah L, Diabat A, Mirjalili S, Abd Elaziz M, Gandomi AH (2021) The arithmetic optimization algorithm. Comput Methods Appl Mech Eng 376:113609
Abualigah L, Yousri D, Abd Elaziz M, Ewees AA, Al-qaness MA, Gandomi AH (2021) Aquila optimizer: a novel meta-heuristic optimization algorithm. Comput Ind Eng 157:107250
Bettinelli A, Cacchiani V, Malaguti E (2017) A branch-and-bound algorithm for the knapsack problem with conflict graph. INFORMS J Comput 29(3):457–473
Carrabs F, Cerrone C, D’Ambrosio C, Raiconi A (2017) Column generation embedding carousel greedy for the maximum network lifetime problem with interference constraints. In: Springer proceedings in mathematics and statistics, vol 217, pp 151–159
Carrabs F, Cerulli R, D’Ambrosio C, Raiconi A (2017) Prolonging lifetime in wireless sensor networks with interference constraints. Lect Notes Comput Sci 10232:285–297
Carrabs F, Cerulli R, Pentangelo R, Raiconi A (2021) Minimum spanning tree with conflicting edge pairs: a branch-and-cut approach. Ann Oper Res 298:65–78
Cerrone C, Cerulli R, Gaudioso M (2016) Omega one multi ethnic genetic approach. Optim Lett 10(2):309–324
Cerrone C, Cerulli R, Golden B (2017) Carousel greedy: a generalized greedy algorithm with applications in optimization. Comput Oper Res 85:97–112
Cerrone C, D’Ambrosio C, Raiconi A (2019) Heuristics for the strong generalized minimum label spanning tree problem. Networks 74(2):148–160
Cerulli R, D’Ambrosio C, Raiconi A, Vitale G (2020) The knapsack problem with forfeits. In: Combinatorial optimization. 5th international symposium ISCO 2020. Lecture notes in computer science, vol 12176, pp 263–272
Cerulli R, D’Ambrosio C, Iossa A, Palmieri F (2021) Maximum network lifetime problem with time slots and coverage constraints: heuristic approaches. J Supercomput. https://doi.org/10.1007/s11227-021-03925-y
Ceselli A, Righini G (2006) An optimization algorithm for a penalized knapsack problem. Oper Res Lett 34:394–404
Chen W-N, Tan D-Z (2018) Set-based discrete particle swarm optimization and its applications: a survey. Front Comput Sci 12(2):203–216
Darmann A, Pferschy U, Schauer J (2009) Minimal spanning trees with conflict graphs. Optimization
Della Croce F, Pferschy U, Scatamacchia R (2019) New exact approaches and approximation results for the penalized knapsack problem. Discret Appl Math 253:122–135
Epstein L, Levin A (2008) On bin packing with conflicts. SIAM J Optim 19(3):1270–1298
Gendreau M, Laporte G, Semet F (2004) Heuristics and lower bounds for the bin packing problem with conflicts. Comput Oper Res 31(3):347–358
Goldberg DE (2006) Genetic algorithms. Pearson Education, London
Gurski F, Rehs C (2019) The knapsack problem with conflict graphs and forcing graphs of bounded clique-width. In: Operations research proceedings 2018. Springer, pp 259–265
Hadi K, Lasri R, El Abderrahmani A (2019) An efficient approach for sentiment analysis in a big data environment. Int J Eng Adv Technol 8(4):263–266
Hifi M, Otmani N (2012) An algorithm for the disjunctively constrained knapsack problem. Int J Oper Res 13(1):22–43
Hu J, Wu H, Zhong B (2020) Swarm intelligence-based optimisation algorithms: an overview and future research issues. Int J Autom Control 14(5/6):656–693
Kanté MM, Laforest C, Momege B (2013) Trees in graphs with conflict edges or forbidden transitions. In: International conference on theory and applications of models of computation. Springer, pp 343–354
Kong H, Kang Q, Li W, Liu C, Kang Y, He H (2019) A hybrid iterated carousel greedy algorithm for community detection in complex networks. Phys A Stat Mech Its Appl 536, Article Number 122124
Muritiba AEF, Iori M, Malaguti E, Toth P (2010) Algorithms for the bin packing problem with conflicts. INFORMS J Comput 22(3):401–415
Pferschy U, Schauer J (2009) The knapsack problem with conflict graphs. J Graph Algorithms Appl 13(2):233–249
Pferschy U, Schauer J (2011) The maximum flow problem with conflict and forcing conditions. In: International conference on network optimization. Springer, pp 289–294
Pferschy U, Schauer J (2017) Approximation of knapsack problems with conflict and forcing graphs. J Comb Optim 33(4):1300–1323
Sadykov R, Vanderbeck F (2013) Bin packing with conflicts: a generic branch-and-price algorithm. INFORMS J Comput 25(2):244–255
Samer P, Urrutia S (2015) A branch and cut algorithm for minimum spanning trees under conflict constraints. Optim Lett 9(1):41–55
Zhang R, Kabadi SN, Punnen AP (2011) The minimum spanning tree problem with conflict constraints and its variations. Discret Optim 8(2):191–205
Acknowledgements
C. D’Ambrosio has been supported by the Italian Ministry of University and Research (MUR) and European Union with the program PON “Ricerca e Innovazione” 2014–2020, Azione 1.2 “Mobilità dei Ricercatori” (AIM “Attraction and International Mobility”-LINEA 1), POC R&I 2014–2020.
Author information
Authors and Affiliations
Contributions
Giovanni Capobianco, Ciriaco D’Ambrosio, Luigi Pavone, Andrea Raiconi, Gaetano Vitale, and Fabio Sebastiano contributed to conceptualization, methodology, software, and writing—original draft preparation and revision.
Corresponding author
Ethics declarations
Conflict of interest
All authors declare that they have no conflict of interest.
Ethical approval
This article does not contain any studies with human participants or animals performed by any of the authors.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Capobianco, G., D’Ambrosio, C., Pavone, L. et al. A hybrid metaheuristic for the Knapsack Problem with Forfeits. Soft Comput 26, 749–762 (2022). https://doi.org/10.1007/s00500-021-06331-x
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00500-021-06331-x