- 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
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.
Chapter 2 - CSP solving — An overview
Chapter 2 - CSP solving — An overview
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 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 moreRIGOROUS 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 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 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 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 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 moreCSP solver for Safe PLC Controller: Application to manufacturing systems
CSP solver for Safe PLC Controller: Application to manufacturing systems
Decentralized 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 moreSolving constraint satisfaction problems by a genetic algorithm adopting viral infection
Several approximate algorithms have been reported to solve large constraint satisfaction problems (CSPs) in a practical time. While these papers discuss techniques to escape from local optima, the present paper describes a method that actively performs global search. The present method is to improve the rate of search of genetic algorithms using viral infection instead of mutation. The partial solutions of a CSP are considered to be viruses and a population of viruses is created as well as a population of candidate solutions. Search for a solution is conducted by crossover infection substitutes the gene of a virus for the locus decided by the virus. Experimental results using randomly generated CSPs prove that the proposed method is faster than a usual genetic algorithm in finding a solution when the constraint density of a CSP is low.
Read morePrediction-Based Adaptive Variable Ordering Heuristics for Constraint Satisfaction Problems
Variable ordering heuristics (VOH) play a central role in solving Constraint Satisfaction Problems (CSP). The performance of different VOHs may vary greatly when solving the same CSP instance, so identifying an efficient candidate VOH for a given CSP has been a key issue in the community. In this study, we propose a prediction-based approach to adaptively select efficient VOHs for different CSPs from a set of candidates. Our work demonstrates that efficient candidate VOHs can be identified by learning from the topology of search trees. Specifically, we propose to represent the topology of a binary search tree by the sequence of the Numbers of Positive Decisions (NPD) made before each failure occurs. Based on the representation, we predict the total failure number of a search tree from its beginning part. When solving a CSP, we run a probing procedure to obtain the NPD sequences generated by candidate VOHs and select an efficient one for the resolution according to the prediction results. Our experiments show that the Long Short Term Memory model and Gradient Boosting Decision Tree models trained with the search trees sampled from easy instances are effective in identifying efficient VOHs for hard instances. The models capture some common structure properties hidden in the search trees of different problems. Our approach outperforms the state-of-the-art adaptive VOHs in terms of the number of solved instances and the PAR2 score of runtime.
Read moreDomain k-Wise Consistency Made as Simple as Generalized Arc Consistency
In Constraint Programming (CP), Generalized Arc Consistency (GAC) is the central property used for making inferences when solving Constraint Satisfaction Problems (CSPs). Developing simple and practical filtering algorithms based on consistencies stronger than GAC is a challenge for the CP community. In this paper, we propose to combine k-Wise Consistency (kWC) with GAC, where kWC states that every tuple in a constraint can be extended to every set of k − 1 additional constraints. Our contribution is as follows. First, we derive a domain-filtering consistency, called Domain k-Wise Consistency (DkWC), from the combination of kWC and GAC. Roughly speaking, this property corresponds to the pruning of values of GAC, when enforced on a CSP previously made kWC. Second, we propose a procedure to enforce DkWC, relying on an encoding of kWC to generate a modified CSP called k-interleaved CSP. Formally, we prove that enforcing GAC on the k-interleaved CSP corresponds to enforcing DkWC on the initial CSP. Consequently, we show that the strong DkWC can be enforced very easily in constraint solvers since the k-interleaved CSP is rather immediate to generate and only existing GAC propagators are required: in a nutshell, DkWC is made as simple and practical as GAC. Our experimental results show the benefits of our approach on a variety of benchmarks.
Read moreChapter 8 - Stochastic search methods for CSPs
Chapter 8 - Stochastic search methods for CSPs
Constraint and Integer Programming
List of Figures. List of Tables. Preface. Contributing Authors. Foreword J. Hooker. 1: Constraint and Integer Programming M. Milano, M. Trick. 1. Introduction. 2. CP(FD) Basic Concepts. 3. Integer Linear Programming Basic Concepts. 4. Incomplete search strategies. 5. Conclusion. References. 2: Two Generic Schemes for Efficient and Robust Cooperative Algorithms E. Danna, C. Le Pape. 1. Introduction. 2. Operations Research Algorithms and Constraint Programming. 3. Operations Research Algorithms and Mixed Integer Programming. 4. Constraint Programming and Mixed Integer Programming. 5. Operations Research Algorithms and Local Search. 6. Mixed Integer Programming and Local Search. 7. Constraint Programming and Local Search. References. 3: Branch-and-Infer A. Bockmayr, T. Kasper. 1. Introduction. 2. Modeling in CP and IP. 3. An illustrating example: discrete tomography. 4. Branch and Infer. 5. Symbolic constraints in IP. 6. Example: Symbolic constraints for supply chain planning. 7. Summary. References. 4: Global Constraints and Filtering Algorithms J.-C. Regin. 1. Introduction. 2. Global Constraints. 3. Filtering Algorithms. 4. Two Successful Filtering Algorithms. 5. Global Constraints and Over-constrained Problems. 6. Quality of Filtering Algorithms. 7. Discussion. 8. Conclusion. References. 5:Exploiting relaxations in CP F. Focacci, A. Lodi, M. Milano. 1. Introduction and Motivation. 2. Integer Linear Programming and Relaxations. 3. Integrating Relaxations in CP. 4. Relax to propagate. 5. Relax to guide the search. 6. A case study: global optimization constraints for a Path constraint. 6: Hybrid Problem Solving in ECLiPSe F. Ajili, M.G. Wallace. 1. Introduction. 2. Integration of Constraints and Operations Research. 3. Language Ingredients for Hybrid Solvers. 4. ECLiPSe as a Platform for Building Hybrid Algorithms. 5. Programming a Hybrid Search in ECLiPSe. 6. Conclusion. References. 7: CP Based Branch-and-Price K. Easton, G. Nemhauser, M. Trick. 1. Introduction. 2. Three Illustrative Examples. 3. Implementation Issues. 4. Future Directions for CP Based Branch-and-Price. References. 8: Randomized Backtrack Search C.P. Gomes. 1. Introduction. 2. Randomization of Backtrack Search Methods. 3. Formal Models of Heavy-Tailed Behavior. 4. Heavy and Fat-Tailed Distributions. 5. Heavy and Fat-Tailed Distributions in Backtrack Search. 6. Restart Strategies. 7. Portfolio Strategies. 8. Conclusions. References. 9: Local Search and Constraint Programming: LS and CP illustrated on a transportation Problem F. Focacci, F. Laburthe, A. Lodi. 1. Introduction. 2. A didactic transportation problem. 3. A CP approach
Read more