arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09576cs.AI
收藏

通过图重写自动化Essence规范的重构

Automating Reformulation of Essence Specifications via Graph Rewriting

School of Computer Science, University of St Andrews(圣安德鲁斯大学计算机学院)

Ian Miguel, András Z. Salamon, Christopher Stone

AI总结:

本文提出基于图重写的系统,利用Essence语言高级变量类型结构自动重构约束模型以提升求解性能,并通过案例研究验证其有效性。

摘要:

为参数化问题类构建有效的约束模型,对于后续求解该类问题实例的效率至关重要。事先很难知道一组候选模型中哪一个在实践中表现最佳。本文提出了一个系统,该系统采用图重写来自动重构输入模型以提升性能。通过将我们的工作置于Essence抽象约束规范语言中,我们可以利用其高级变量类型中的结构来直接触发重写。我们通过用Graph Programs 2语言表达的重写规则来实现我们的系统,这些规则被应用于输入规范的抽象语法树。我们展示了如何将重构后问题的解自动翻译回原始问题的解,以用于验证和呈现。我们通过一个详细的案例研究证明了我们系统的有效性。

英文摘要:

Formulating an effective constraint model of a parameterised problem class is crucial to the efficiency with which instances of the class can subsequently be solved. It is difficult to know beforehand which of a set of candidate models will perform best in practice. This paper presents a system that employs graph rewriting to reformulate an input model for improved performance automatically. By situating our work in the Essence abstract constraint specification language, we can use the structure in its high level variable types to trigger rewrites directly. We implement our system via rewrite rules expressed in the Graph Programs 2 language, applied to the abstract syntax tree of an input specification. We show how to automatically translate the solution of the reformulated problem into a solution of the original problem for verification and presentation. We demonstrate the efficacy of our system with a detailed case study.

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

↑