arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02688cs.AIcs.DS
收藏

带成本的全局基数约束的高效实现

Efficient Implementation of the Global Cardinality Constraint with Costs

Université Côte d’Azur(蔚蓝海岸大学);CNRS(法国国家科学研究中心);I3S(信息科学与系统实验室)

Margaux Schmied, Jean-Charles Regin

AI总结:

本文针对带成本的基数约束过滤算法因反复计算最短路径而效率低的问题,提出基于地标上界的预处理方法,以快速避免大量显式最短路径计算,提升约束规划实现效率。

摘要:

约束规划的成功部分依赖于全局约束及其相关过滤算法的实现。近年来,出现了新的思想来在实践中改进这些实现,尤其是关于 all different 约束的实现。在本文中,我们考虑带成本的基数约束。基数约束是 all different 约束的推广,它规定了在解中给定变量集合必须取每个值的次数。带成本的版本引入了分配成本,并限制了分配成本的总和。该约束的弧一致性过滤算法在实践中难以使用,因为它会系统地搜索许多最短路径。我们提出了一种新方法,该方法基于地标(landmarks)使用最短路径的上界。这种方法可以看作是一种预处理。它速度快,并且在实践中避免了大量显式的最短路径计算。

英文摘要:

The success of Constraint Programming relies partly on the global constraints and implementation of the associated filtering algorithms. Recently, new ideas emerged to improve these implementations in practice, especially regarding the all different constraint. In this paper, we consider the cardinality constraint with costs. The cardinality constraint is a generalization of the all different constraint that specifies the number of times each value must be taken by a given set of variables in a solution. The version with costs introduces an assignment cost and bounds the total sum of assignment costs. The arc consistency filtering algorithm of this constraint is difficult to use in practice, as it systematically searches for many shortest paths. We propose a new approach that works with upper bounds on shortest paths based on landmarks. This approach can be seen as a preprocessing. It is fast and avoids, in practice, a large number of explicit computations of shortest paths.

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

↑