arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14559cs.AImath.OC
收藏

PyCSP3-Scheduling: PyCSP3的调度扩展

PyCSP3-Scheduling: A Scheduling Extension for PyCSP3

Univ. Artois, UR 3926, Laboratoire de Génie Informatique et d’Automatique de l’Artois (LGI2A)(阿劳斯-大学,UR 3926,阿劳斯信息工程与自动化实验室(LGI2A))

Sohaib Afifi

AI总结:

提出PyCSP3 Scheduling库,通过53个专用约束和27个表达式为PyCSP3添加调度抽象,并编译为标准约束,在261个实例上验证了与原始公式的目标一致性,但运行时性能因编译开销而异。

摘要:

PyCSP$^3$提供了一种高效构建约束模型以解决组合约束问题的方法,并将其导出为XCSP$^3$,保持了建模与求解的完全分离。然而,它缺乏对调度抽象(如区间变量、序列变量和资源函数)的原生支持。因此,即使PyCSP$^3$已经提供了如NoOverlap和Cumulative等整数数组上的全局约束,调度模型仍需通过低层整数变量和手动通道约束进行编码。我们提出了PyCSP$^3$ Scheduling,一个通过53个专用约束和27个表达式为PyCSP$^3$添加调度抽象的库,并将其编译为标准PyCSP$^3$/XCSP$^3$约束,维护了支撑PyCSP$^3$生态系统的建模/求解分离。在17个模型家族(每个5次运行)的261个配对实例上,两种公式在所有72个双重证明最优对以及近一半的家族(8/17)中产生了相同的目标值,且在编译后结构保持不变;然而,运行时性能在不同家族间存在差异,部分家族有显著提升(高达5.8倍),而其他家族由于编译分解的开销出现性能下降。代码和基准测试可在以下网址获取:https://github.com/sohaibafifi/pycsp3-scheduling

英文摘要:

PyCSP$^3$ provides a productive way to build constraint models for solving combinatorial constrained problems and export them to XCSP$^3$, preserving a complete separation between modeling and solving. However, it lacks native support for scheduling abstractions such as interval variables, sequence variables, and resource functions. As a result, scheduling models must be encoded with low-level integer variables and manual channeling constraints, even though PyCSP$^3$ already provides global constraints like NoOverlap and Cumulative on integer arrays. We present PyCSP$^3$ Scheduling, a library that adds scheduling abstractions to PyCSP$^3$ through 53 dedicated constraints and 27 expressions, and compiles them down to standard PyCSP$^3$/XCSP$^3$ constraints, maintaining the modeling/solving separation that underpins the PyCSP$^3$ ecosystem. On 261 paired instances across 17 model families (5 runs each), both formulations produce identical objectives on all 72 doubly-proved optimal pairs and nearly half of the families (8/17) remain structurally unchanged after compilation; however, runtime performance diverges across families, with clear gains on some (up to 5.8x) and regressions on others due to the overhead of compilation decompositions. Code and benchmarks are available at: https://github.com/sohaibafifi/pycsp3-scheduling

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

↑