CIAO Environment Clause Samples

CIAO Environment. ‌ CIAO [BCC+97] is a multiparadigm programming language developed by an international team for over 20 years. CIAO offers an advanced programming environment that supports the ISO-Prolog standard, however, its modular design allows both restricting and extending the basic language through libraries. Complete information about CIAO can be found at ▇▇▇▇://▇▇▇.▇▇▇▇-▇▇▇▇.▇▇▇, together with complete documentation. Within ASCENS, we use CIAO to implement the Soft Constraint Logic Programming Frame- work [BMR97] to naturally model and solve the e-Mobility optimization problems. Besides lo- cal travel optimization problems of individual users, such as trips and journeys [MMH12], we pro- pose to use CIAO also to solve global optimization problems involving large ensembles of vehicles [BDG+13]. In both cases, we need to implement the SCLP framework explicitly by means of predicates. In particular, in order to implement the soft framework, we need to implement the semiring modeling the levels of satisfiability or the costs of the constraints. To this end, we define two predicates respectively modeling the additive and the multiplicative operations of the chosen semiring. 3.4.1 Progress and Integration‌ So far, our use of CIAO has focused on experimental prototypes. To tackle the global optimisation problems encountered in [BDG+13], we have proposed a framework based on the coordination of declarative and procedural knowledge. Our demo application in deliverable D7.3 illustrates how the parking optimization problem (consisting of finding the best parking lot for an ensemble of vehicles) can be solved using CIAO. The global problem is decomposed into several local problems solved by CIAO programs, whose parameters are iteratively determined by a Java coordinator in order to obtain an acceptable global solution. Our eventual aim is to provide a general way to embed the soft framework in CIAO, using for example a library offering a more general implementation of the operations of several semirings, or – more interestingly – a meta-level implementing efficiently this framework. Future plans also include providing a specialized component for the Java coordinator, or, ▇▇▇▇▇- ▇▇▇, an implementation of such a component in another procedural language with specific knowledge representation features, like OZ, to make the interaction with the SCLP component more direct.