On Solving the Knapsack Problem with Conflicts
On Solving the Knapsack Problem with Conflicts
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.
Roberto Montemanni、Derek H. Smith
计算技术、计算机技术
Roberto Montemanni,Derek H. Smith.On Solving the Knapsack Problem with Conflicts[EB/OL].(2025-06-03)[2025-06-22].https://arxiv.org/abs/2506.03330.点此复制
评论