arXiv · 2506.03330
On Solving the Knapsack Problem with Conflicts
Abstract
A variant of the well-known Knapsack Problem is studied in this paper, where pairs of items are conflicting, and cannot be selected at the same time. This configures a set of hard constraints. The problem, which can be used to model real applications, looks for a selection of items such that the total profit is maximized, the capacity of the container is respected, and no conflict is violated. In this paper, we consider a previously known mixed integer linear program representing the problem and we solve it with the open-source solver CP-SAT, part of the Google OR-Tools computational suite. An experimental campaign on the instances available from the literature and adopted in the last decade, indicate that the approach we propose achieves results comparable with, and often better than, those of state-of-the-art solvers, notwithstanding its intrinsic conceptual and implementation simplicity.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Roberto Montemanni, Derek H. Smith. 2025-06-03. On Solving the Knapsack Problem with Conflicts. https://arxiv.org/abs/2506.03330
Cite the original work for its findings. Save a collection to share your selection of sources.