arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.03330math.OC
收藏

求解带冲突的背包问题

On Solving the Knapsack Problem with Conflicts

Roberto Montemanni, Derek H. Smith

AI总结:

本文针对带冲突约束的背包问题,采用已知混合整数线性规划模型并用开源求解器CP-SAT求解,实验表明该方法在概念和实现简单的同时,效果可与最先进求解器相当甚至更优。

摘要:

本文研究了著名背包问题的一个变体,其中物品对之间存在冲突,不能同时被选择,这构成了一组硬约束。该问题可用于建模实际应用,旨在寻找一种物品选择方案,使得总利润最大化、容器容量得到满足且不违反任何冲突约束。本文采用一个已知的混合整数线性规划模型来表示该问题,并使用开源求解器CP-SAT(Google OR-Tools计算套件的一部分)进行求解。在文献中可用且近十年被采用的实例上开展的实验表明,尽管所提方法在概念和实现上具有固有的简洁性,但其取得的结果可与最先进求解器相媲美,且往往更优。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑