Title :
Experiences in using Prolog to develop a practical constraint solver
Author_Institution :
Eur. Comput. Ind. Res. Centre, Munich, Germany
Abstract :
Sophisticated Prolog implementations like ECLiPSe , 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 iPSe (as part of a constraint logic programming system). Our application consists of approximately 2000 lines of ECLiPSe 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(ℛ) 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 ECLiPSe can already be used to produce realistic applications (and ECLiPSe 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
Keywords :
PROLOG; constraint handling; research initiatives; storage management; C-coded implementations; ECLiPSe; Esprit project CHIC; Prolog; Simplex algorithm; automated tools; automatic memory management; benchmarks; constraint logic programming system; constraint solver; data-driven computation; financial applications; garbage-collector; meta-level control facilities; performance profiles; software development; Application software; Arithmetic; Engines; Equations; Logic programming; Memory management; Neck; Pattern matching; Research and development management; Software development management;
Conference_Titel :
Tools with Artificial Intelligence, 1994. Proceedings., Sixth International Conference on
Conference_Location :
New Orleans, LA
Print_ISBN :
0-8186-6785-0
DOI :
10.1109/TAI.1994.346427