- Book Chapter
3
- 10.1016/b978-0-12-701610-8.50010-0
Chapter 2 - CSP solving — An overview
- Jan 01, 1993
- Foundations of Constraint Satisfaction
- Edward Tsang
Chapter 2 - CSP solving — An overview
Solving constraint satisfaction problems (CSP) efficiently depends on the solver configuration and the search strategy. However, it is difficult to customize the constraint solvers because they are not modular enough, and it is hard to create new search strategies by composition. To solve these problems, we propose spacetime programming, a paradigm based on lattices and synchronous process calculi that views search strategies as processes working collaboratively towards the resolution of a CSP. We implement the compiler of the language and use it to replace the search module of Choco, a state of the art constraint solver, with an efficient spacetime program that offers better modularity and compositionality of search strategies.
Chapter 2 - CSP solving — An overview
Chapter 2 - CSP solving — An overview
RIGOROUS SOLUTION TECHNIQUES FOR NUMERICAL CONSTRAINT SATISFACTION PROBLEMS
A constraint satisfaction problem (e.g., a system of equations and inequalities) consists of a finite set of constraints specifying which value combinations from given variable domains are admitted. It is called numerical if its variable domains are continuous. Such problems arise in many applications, but form a difficult problem class since they are NP-hard. Solving a constraint satisfaction problem is to find one or more value combinations satisfying all its constraints. Numerical computations on floating-point numbers in computers often suffer from rounding errors. The rigorous control of rounding errors during numerical computations is highly desired in many applications because it would benefit the quality and reliability of the decisions based on the solutions found by the computations. Various aspects of rigorous numerical computations in solving constraint satisfaction problems are addressed in this thesis: search, constraint propagation, combination of inclusion techniques, and post-processing. The solution of a constraint satisfaction problem is essentially performed by a search. In this thesis, we propose a new complete search technique (i.e., it can find all solutions within a predetermined tolerance) for numerical constraint satisfaction problems. This technique is general and can be used in place of branching steps in most branch-and-prune methods. Moreover, this new technique speeds up the most recent general search strategy (often by an order of magnitude) and provides a concise representation of solutions. To make a constraint satisfaction problem easier to solve, a major approach, called constraint propagation, in the constraint programming1 field is often used to reduce the variable domains (by discarding redundant value combinations from the domains). Basing on directed acyclic graphs, we propose a new constraint propagation technique and a method for coordinating constraint propagation and search. More importantly, we propose a novel generic scheme for combining multiple inclusion techniques2 in numerical constraint propagation. This scheme allows bringing into the constraint propagation framework the strengths of various techniques coming from different fields. To illustrate the flexibility and efficiency of the generic scheme, we base on this scheme and devise several specific combination strategies for rigorous numerical constraint propagation using interval constraint propagation, interval arithmetic, affine arithmetic, and linear programming. Our experiments show that the new propagation techniques outperform previously available methods by 1 to 4 orders of magnitude or more in speed. We also propose several post-processing techniques for the representation of continuums of solutions. Based on connectedness, they allow grouping each cluster of connected solution subsets into a larger subset, thus allowing getting additional grouping information. Potentially, these techniques enable interval-based solution techniques to be alternatives to bounding-volume techniques in applications such as collision detection and interactive graphics. __________________________________________________ 1 Constraint programming is an approach to programming that relies on both reasoning and computing. 2 An inclusion technique is to include a set of interest into enclosures. It is also called an enclosure technique.
Read moreFirstCS—New Aspects on Combining Constraint Programming with Object-Orientation in Java
The aim of the presented constraint programming library firstCS is the integration of the constraint programming paradigm in the object-oriented programming language Java. This open-box library provides its users with the necessary concepts to model and solve constraint satisfaction problems and even constraint optimization problems over finite integer domains. The application focus of firstCS is constraint-based scheduling and resource allocations (e.g. Sandow in INFORMATIK 2011, LNI, vol. P-192, p. 248, 2011), however, it offers all primitives to realize new constraints and according propagation algorithms as well as problem-specific tree search heuristics to find good or even best solutions. Beyond related work and an overview over the general architecture of the system and the supported constraints, this presentation focuses on new aspects of the current version of firstCS, i.e. redundancy checking and the assembling of new search strategies from existing ones using the implementation language Java. The presentation is completed by code fragments showing interesting implementation details.
Read moreCSP solver for Safe PLC Controller: Application to manufacturing systems
CSP solver for Safe PLC Controller: Application to manufacturing systems
Declarative Heuristics in Constraint Satisfaction
Constraint Satisfaction Problems (CSPs) have the big advantage of a succinct, declarative and easy to understand representation form. Unfortunately, solving CSPs is NP-complete in the general case. In order to cope with this, common CSP frameworks offer the possibility to use different built-in heuristics. However, the provided built-in heuristics are often not suitable to significantly boost solution calculation. Also the facilities for expressing domain-specific heuristics in a declarative manner within the CSP framework are typically very limited (e.g. by defining a static variable selection order)and thus are often not applicable. As a consequence such domain-specific heuristics are often implemented by means of custom propagators or custom constraints (e.g. a special constraint for bin packing problems) forcing domain experts and knowledge engineers to leave the declarative world and implement the heuristics in a procedural manner. In this paper we propose a new declarative language for expressing domain specific heuristics for CSPs which can be easily integrated in every CSP framework. We also describe a prototype implementation within a state-of-the-art CSP solver and present proof of concept results on real world configuration problem instances.
Read moreA Hybrid Programming Framework for Modeling and Solving Constraint Satisfaction and Optimization Problems
This paper proposes a hybrid programming framework for modeling and solving of constraint satisfaction problems (CSPs) and constraint optimization problems (COPs). Two paradigms, CLP (constraint logic programming) and MP (mathematical programming), are integrated in the framework. The integration is supplemented with the original method of problem transformation, used in the framework as a presolving method. The transformation substantially reduces the feasible solution space. The framework automatically generates CSP and COP models based on current values of data instances, questions asked by a user, and set of predicates and facts of the problem being modeled, which altogether constitute a knowledge database for the given problem. This dynamic generation of dedicated models, based on the knowledge base, together with the parameters changing externally, for example, the user’s questions, is the implementation of the autonomous search concept. The models are solved using the internal or external solvers integrated with the framework. The architecture of the framework as well as its implementation outline is also included in the paper. The effectiveness of the framework regarding the modeling and solution search is assessed through the illustrative examples relating to scheduling problems with additional constrained resources.
Read moreDecentralized Constraint Satisfaction
We show that several important resource allocation problems in wireless networks fit within the common framework of constraint satisfaction problems (CSPs). Inspired by the requirements of these applications, where variables are located at distinct network devices that may not be able to communicate but may interfere, we define natural criteria that a CSP solver must possess in order to be practical. We term these algorithms decentralized CSP solvers. The best known CSP solvers were designed for centralized problems and do not meet these criteria. We introduce a stochastic decentralized CSP solver, proving that it will find a solution in almost surely finite time, should one exist, and also showing it has many practically desirable properties. We benchmark the algorithm's performance on a well-studied class of CSPs, random k-SAT, illustrating that the time the algorithm takes to find a satisfying assignment is competitive with stochastic centralized solvers on problems with order a thousand variables despite its decentralized nature. We demonstrate the solver's practical utility for the problems that motivated its introduction by using it to find a noninterfering channel allocation for a network formed from data from downtown Manhattan.
Read moreModeling and solving constraint satisfaction problems through Petri nets
Constraint satisfaction problems (CSP) represent one of the most studied areas in Artificial Intelligence and related disciplines. A lot of theoretical problems and applications, including computer vision, job-shop scheduling, planning, design and others, can be formulated as problems related to the satisfaction of constraints. Classical approaches to the solution of CSP are usually based on some form of backtracking search; such approaches suffer, in the general case, of some drawbacks essentially represented by the so-called thrashing behavior, a problem arising when the search algorithm repeatedly explores parts of the search space not leading to any solution. In this paper an alternative approach to backtracking search is proposed by modeling a system of constraints through an ordinary Petri net model. The Petri net model is able to capture every finite domain CSP, representing a wide and significant class of CSP used in applications. Algebraic analysis is then exploited for solving the CSP corresponding to the net model. In particular, even if a direct application of the fundamental equation of Petri nets would be theoretically possible, such a possibility could be unsatisfactory in practice. Because of that, a cyclic net model for CSP is introduced, such that the whole set of solutions can be characterized by means of a subset of the set of minimal support T-invariants of the net model. An algorithm able to directly compute only such a subset of invariants is then proposed as the core process for solving a CSP.
Read moreCluster-Specific Heuristics for Constraint Solving
In Constraint Satisfaction Problems (CSP), variable ordering heuristics help to increase efficiency. Applying an appropriate heuristic can increase the performance of CSP solvers. On the other hand, if we apply specific heuristics for similar CSPs, CSP solver performance could be further improved. Similar CSPs can be grouped into same clusters. For each cluster, appropriate heuristics can be found by applying a local search. Thus, when a new CSP is created, the corresponding cluster can be found and the pre-calculated heuristics for the cluster can be applied. In this paper, we propose a new method for constraint solving which is called Cluster Specific Heuristic (CSH). We present and evaluate our method on the basis of example CSPs.
Read moreSymmetry Breaking Constraints for Value Symmetries in Constraint Satisfaction
Constraint satisfaction problems (CSPs) sometimes contain both variable symmetries and value symmetries, causing adverse effects on CSP solvers based on tree search. As a remedy, symmetry breaking constraints are commonly used. While variable symmetry breaking constraints can be expressed easily and propagated efficiently using lexicographic ordering, value symmetry breaking constraints are often difficult to formulate. In this paper, we propose two methods of using symmetry breaking constraints to tackle value symmetries. First, we show theoretically when value symmetries in one CSP correspond to variable symmetries in another CSP of the same problem. We also show when variable symmetry breaking constraints in the two CSPs, combined using channeling constraints, are consistent. Such results allow us to tackle value symmetries efficiently using additional CSP variables and channeling constraints. Second, we introduce value precedence, a notion which can be used to break a common class of value symmetries, namely symmetries of indistinguishable values. While value precedence can be expressed using inefficient if-then constraints in existing CSP solvers, we propose efficient propagation algorithms for implementing global value precedence constraints. We also characterize several theoretical properties of the value precedence constraints. Extensive experiments are conducted to verify the feasibility and efficiency of the two proposals.
Read morePredicting Good Propagation Methods for Constraint Satisfaction
Given the breadth of constraint satisfaction problems (CSPs) and the wide variety of CSP solvers, it can be difficult to determine a priori which solving method is best suited to a problem. We explore the use of machine learning to predict which solving method will be most effective for a given problem. Our investigation studies the problem of attribute selection for CSPs, and supervised learning to classify CSP instances drawn from four distinct CSP classes. We limit our study to the choice of two well-known, but simple, CSP solvers. We show that the average performance of the resulting solver is very close to the average performance of a CSP solver based on an oracle.
Read moreConstraint satisfaction problems in logic programming
Due to its relational form, its definite clause syntax and the possibility of writing metaprograms in the same language, it turns out that logic programming is a convenient programming language to represent, relax and solve constraint satisfaction problems (CSPs). Not only we can represent CSPs writing elegant logic programs in a declarative style, but we can also solve them in an efficient way by writing simple metaprograms adding new control strategies to the usual backtrack search strategy of logic programs. This paper defines the classes of CSPs we consider, shows the mapping between these CSPs and logic programs having the same semantics, and describes how to represent relaxation algorithms as logic metaprograms.
Read moreA Flexible and Dynamic CSP Solver for Web Service Composition in the Semantic Web Environment
As the Web service composition requests planning with scheduling with many parameters, the composition by the planner alone has the limitations that apply to a more general and intelligent Web service composition. The research [1] suggests a combined architecture of Hierarchical Task Network (HTN) planning and Constraint Satisfaction Problem (CSP) to solve the above limitation. In this paper, we focus on the CSP system on the semantic Web for the combined service composer and its applied solver, which gives the final solution set satisfying the constraints. The CSP solver, which is a part of the combined architecture, is extended by applying the semantic Web concept so that it can automatically solve a given problem more flexibly. CSP ontology is designed and implemented to work on the extension and this integrates the CSP and semantic Web concepts in the conceptual layer. The extended framework has advantages, such as generality, extendibility, dynamic configurability and parallelism due to the application of the semantic Web concept and a distributed CSP.
Read moreBoolean approach for representing and solving constraint-satisfaction problems
In this paper, we propose a new way for representing and solving constraintsatisfaction problems (CSPs). We first show that a CSP can be modelized by a single pseudo-Boolean function. Then some theoretical results establishing the links between a CSP and its associated pseudo-Boolean function are described. We propose a Branch and Bound method exploiting this representation for solving CSPs. This method follows the same scheme developed by the Forward-Checking procedure. The main difference between the Branch and bound method and the Forward-Checking method lies in the computation performed at every node of the search tree. The Branch and Bound method uses the constraints in an active way to infer a knowledge about the problem. Then a solution or failure may be detected quickly.
Read moreSolution Techniques for Constraint Satisfaction Problems: Advanced Approaches
Conventional techniques for the constraint satisfaction problem (CSP) have had considerable success in their applications. However, there are many areas in which the performance of the basic approaches may be improved. These include heuristic ordering of certain tasks performed by the CSP solver, hybrids which combine compatible solution techniques and graph based methods which exploit the structure of the constraint graph representation of a CSP. Also, conventional constraint satisfaction techniques only address problems with hard constraints (i.e. each of which are completely satisfied or completely violated, and all of which must be satisfied by a valid solution). Many real applications require a more flexible approach which relaxes somewhat these rigid requirements. To address these issues various approaches have been developed. This paper attempts a systematic review of them.
Read more