论文标题

如何构建自己的基于ASP的系统?

How to build your own ASP-based system?!

论文作者

Kaminski, Roland, Romero, Javier, Schaub, Torsten, Wanko, Philipp

论文摘要

答案集编程(ASP)已成为一种流行且相当复杂的声明性问题解决方法。可以说,这是由于其有吸引力的建模 - 解决方案的工作流程,即使对于计算机科学之外的外行,也为解决问题提供了一种简单的方法。与此不同,基础技术的高度复杂性使ASP专家越来越难以将想法付诸实践。 为了解决此问题,该教程旨在使用户能够构建自己的基于ASP的系统。更确切地说,我们展示了如何将ASP系统克林戈用于扩展ASP和实施自定义的特殊用途系统。为此,我们提出了两种选择。我们从传统的AI技术开始,并展示如何将元编程用于扩展ASP。这是一种相当轻的方法,它依靠克林戈的重新化功能来表达新功能。与此不同,本教程的主要部分使用传统的编程(以Python为单位)通过其应用程序编程界面来操纵Clingo。这种方法允许更改和控制ASP的整个模型 - 解决方案工作流程。核心是Clingo的新应用程序类,它使我们能够通过自定义类似于Clingo中的流程来利用Clingo的基础架构。例如,我们可以将操纵与程序进行抽象的语法树,控制各种形式的多拍解决,并为外国推论设置理论繁殖者。跨越元和应用程序编程的另一种横截面结构是Clingo的中间格式ASPIF,该格式指定了基础接地器和求解器之间的界面。我们通过示例和几个非平凡的案例研究来说明整个教程中上述概念和技术。

Answer Set Programming (ASP) has become a popular and quite sophisticated approach to declarative problem solving. This is arguably due to its attractive modeling-grounding-solving workflow that provides an easy approach to problem solving, even for laypersons outside computer science. Unlike this, the high degree of sophistication of the underlying technology makes it increasingly hard for ASP experts to put ideas into practice. For addressing this issue, this tutorial aims at enabling users to build their own ASP-based systems. More precisely, we show how the ASP system CLINGO can be used for extending ASP and for implementing customized special-purpose systems. To this end, we propose two alternatives. We begin with a traditional AI technique and show how meta programming can be used for extending ASP. This is a rather light approach that relies on CLINGO's reification feature to use ASP itself for expressing new functionalities. Unlike this, the major part of this tutorial uses traditional programming (in PYTHON) for manipulating CLINGO via its application programming interface. This approach allows for changing and controlling the entire model-ground-solve workflow of ASP. Central to this is CLINGO's new Application class that allows us to draw on CLINGO's infrastructure by customizing processes similar to the one in CLINGO. For instance, we may engage manipulations to programs' abstract syntax trees, control various forms of multi-shot solving, and set up theory propagators for foreign inferences. Another cross-sectional structure, spanning meta as well as application programming, is CLINGO's intermediate format, ASPIF, that specifies the interface among the underlying grounder and solver. We illustrate the aforementioned concepts and techniques throughout this tutorial by means of examples and several non-trivial case-studies.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源