首页> 外文会议>Functional and constraint logic programming >Parameterized Models for On-Line and Off-Line Use
【24h】

Parameterized Models for On-Line and Off-Line Use

机译:在线和离线使用的参数化模型

获取原文
获取原文并翻译 | 示例

摘要

The Monadic Constraint Programming framework leverages Haskell's rich static type system and powerful abstraction mechanisms to implement an embedded domain specific language (EDSL) for constraint programming. In this paper we show how the same constraint model expressed in the EDSL can be processed in various modes by external constraint solvers. We distinguish between on-line and off-line use of solvers. In off-line mode, the model is not solved; instead it is compiled to lower-level code that will search for solutions when compiled and run. For on-line use, the search can be handled by either the framework or in the external solver. Off-line mode requires recompilation after each change to the model. To avoid repeated recompilation, we separate model from data by means of parameters that need not be known at compile time. Parametrization poses several challenges, which we resolve by embedding the EDSL more deeply.
机译:Monadic约束编程框架利用Haskell丰富的静态类型系统和强大的抽象机制来实现用于约束编程的嵌入式领域特定语言(EDSL)。在本文中,我们展示了外部约束求解器如何以各种模式处理EDSL中表示的相同约束模型。我们区分在线和离线使用求解器。在离线模式下,模型无法求解;而是将其编译为较低级别的代码,这些代码将在编译和运行时搜索解决方案。对于在线使用,搜索可以由框架或在外部求解器中处理。每次更改模型后,离线模式都需要重新编译。为了避免重复编译,我们通过在编译时不需要知道的参数将模型与数据分离。参数化带来了一些挑战,我们通过更深入地嵌入EDSL来解决这些挑战。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号