Experiences in using Prolog to develop a practical constraint solver

P. Lim
{"title":"Experiences in using Prolog to develop a practical constraint solver","authors":"P. Lim","doi":"10.1109/TAI.1994.346427","DOIUrl":null,"url":null,"abstract":"Sophisticated Prolog implementations like ECL/sup i/PS/sup e/, with automatic memory management and facilities for data-driven computation, offer many advantages for software development. The question is whether such automated systems can be used to deliver applications with a practical performance. We discuss our experiences with implementing an incremental version of the Simplex algorithm in ECL/sup i/PS/sup e/ (as part of a constraint logic programming system). Our application consists of approximately 2000 lines of ECL/sup i/PS/sup e/ Prolog code. In this paper, we present the highlights of our implementational experience and show how the application takes advantage of the meta-level control facilities and the garbage-collector. After taking performance profiles, we show how we modified the algorithm to increase performance. In previous systems, such as CHIP, CLP(/spl Rscr/) and Prolog-III, the solver was written in C, following the conventional wisdom that this is necessary to achieve good performance. We show that intricate coding is not necessary, since automated tools such as ECL/sup i/PS/sup e/ can already be used to produce realistic applications (and ECL/sup i/PS/sup e/ is being improved on continuously). Our results are quantified using a series of benchmarks against existing C-coded implementations. The Simplex solver is being used within Esprit project CHIC to develop financial applications.<<ETX>>","PeriodicalId":262014,"journal":{"name":"Proceedings Sixth International Conference on Tools with Artificial Intelligence. TAI 94","volume":"49 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1994-11-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings Sixth International Conference on Tools with Artificial Intelligence. TAI 94","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TAI.1994.346427","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Sophisticated Prolog implementations like ECL/sup i/PS/sup e/, with automatic memory management and facilities for data-driven computation, offer many advantages for software development. The question is whether such automated systems can be used to deliver applications with a practical performance. We discuss our experiences with implementing an incremental version of the Simplex algorithm in ECL/sup i/PS/sup e/ (as part of a constraint logic programming system). Our application consists of approximately 2000 lines of ECL/sup i/PS/sup e/ Prolog code. In this paper, we present the highlights of our implementational experience and show how the application takes advantage of the meta-level control facilities and the garbage-collector. After taking performance profiles, we show how we modified the algorithm to increase performance. In previous systems, such as CHIP, CLP(/spl Rscr/) and Prolog-III, the solver was written in C, following the conventional wisdom that this is necessary to achieve good performance. We show that intricate coding is not necessary, since automated tools such as ECL/sup i/PS/sup e/ can already be used to produce realistic applications (and ECL/sup i/PS/sup e/ is being improved on continuously). Our results are quantified using a series of benchmarks against existing C-coded implementations. The Simplex solver is being used within Esprit project CHIC to develop financial applications.<>
使用Prolog开发实用约束求解器的经验
复杂的Prolog实现,如ECL/sup i/PS/sup e/,具有自动内存管理和数据驱动计算的功能,为软件开发提供了许多优势。问题是这样的自动化系统能否用于交付具有实际性能的应用程序。我们讨论了在ECL/sup i/PS/sup e/(作为约束逻辑编程系统的一部分)中实现Simplex算法的增量版本的经验。我们的应用程序由大约2000行ECL/sup /PS/sup / Prolog代码组成。在本文中,我们将重点介绍我们的实现经验,并展示应用程序如何利用元级控制工具和垃圾收集器。在获得性能配置文件之后,我们将展示如何修改算法以提高性能。在以前的系统中,如CHIP, CLP(/spl Rscr/)和Prolog-III,求解器是用C编写的,遵循了传统的观点,这是实现良好性能所必需的。我们表明,复杂的编码是没有必要的,因为像ECL/sup i/PS/sup e/这样的自动化工具已经可以用来产生现实的应用程序(ECL/sup i/PS/sup e/正在不断改进)。我们使用一系列针对现有c编码实现的基准对结果进行了量化。单纯形解算器正在Esprit项目CHIC中用于开发金融应用程序
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信