- Research Article
160
- 10.1016/j.artint.2010.02.001
Soft arc consistency revisited
- Feb 02, 2010
- Artificial Intelligence
- M.C Cooper + 5 more +5
Soft arc consistency revisited
The Weighted Constraint Satisfaction Problem (WCSP) framework allows representing and solving problems involving both hard constraints and cost functions. It has been applied to various problems, including resource allocation, bioinformatics, scheduling, etc. To solve such problems, solvers usually rely on branch-and-bound algorithms equipped with local consistency filtering, mostly soft arc consistency. However, these techniques are not well suited to solve problems with very large domains. Motivated by the resolution of an RNA gene localization problem inside large genomic sequences, and in the spirit of bounds consistency for large domains in crisp CSPs, we introduce soft bounds arc consistency, a new weighted local consistency specifically designed for WCSP with very large domains. Compared to soft arc consistency, BAC provides significantly improved time and space asymptotic complexity. In this paper, we show how the semantics of cost functions can be exploited to further improve the time complexity of BAC. We also compare both in theory and in practice the efficiency of BAC on a WCSP with bounds consistency enforced on a crisp CSP using cost variables. On two different real problems modeled as WCSP, including our RNA gene localization problem, we observe that maintaining bounds arc consistency outperforms arc consistency and also improves over bounds consistency enforced on a constraint model with cost variables.
Loading PDF
Soft arc consistency revisited
Soft arc consistency revisited
Virtual Arc Consistency for Linear Constraints in Cost Function Networks
In Constraint Programming, solving discrete minimization problems with hard and soft constraints can be done either using (i) soft global constraints, (ii) a reformulation into a linear program, or (iii) a reformulation into local cost functions. Approach (i) benefits from a vast catalog of constraints. Each soft constraint propagator communicates with other soft constraints only through the variable domains, resulting in weak lower bounds. Conversely, the approach (ii) provides a global view with strong bounds, but the size of the reformulation can be problematic. We focus on approach (iii) in which soft arc consistency (SAC) algorithms produce bounds of intermediate quality. Recently, the introduction of linear constraints as local cost functions increases their modeling expressiveness. We adapt an existing SAC algorithm to handle linear constraints. We show that our algorithm significantly improves the lower bounds compared to the original algorithm on several benchmarks, reducing solving time in some cases.
Read moreArc consistency for soft constraints
Arc consistency for soft constraints
Consistency techniques for polytime linear global cost functions in weighted constraint satisfaction
Lee and Leung make practical the consistency enforcement of global cost functions in Weighted Constraint Satisfaction Problems (WCSPs). The main idea of their approach lies in the derivation of polynomial time algorithms for the computation of the minimum cost of global cost functions. In this paper, we investigate how soft arc consistency can also be applied on global cost functions with no known efficient minimum cost computation algorithms. We propose polytime linear projection-safe (PLPS) cost functions, which have a polynomial size integer linear formulation and can maintain this good property across projection/extension operations. We observe that the minimum of the linear relaxation gives a good approximation to the minimum of the integer formulation. This is used as the basis for the enforcement of relaxed forms of existing soft arc consistencies. By using the linear formulations, we can easily enforce conjunctions of overlapping PLPS, which give stronger pruning power. We further propose polytime integral linear projection-safe (PILPS) cost functions, which are PLPS cost functions with guaranteed integral solutions to the linear relaxation. We prove theorems to compare the consistency strengths among PLPS, PILPS and their conjunctions. Extensive experimentations are conducted to compare our proposed algorithms against state of the art global cost functions consistency enforcement algorithms and integer programming. Empirical results agree with our theoretical predictions, and confirm orders of magnitude improvement in terms of pruning and runtime by our proposals.
Read moreTrends in Constraint Programming
Introduction. Part I. The Past, Present and Future of Constraint Programming. Chapter 1. Constraint Programming as Declarative Algorithmics. Chapter 2. Constraint Programming Tools. Chapter 3. The Next 10 Years of Constraint Programming. Chapter 4. Constraint Propagation and Implementation. Chapter 5. On the First SAT/CP Integration Workshop. Chapter 6. Constraint-based Methods for Bioinformatics. Part II. Constraint Modeling and Reformulation. Chapter 7. Improved Models and Reformulation. Chapter 8. The Automatic Generation of Redundant Representations and Channeling Constraints. Part III. Symmetry in Constraint Satisfaction Problems. Chapter 9. GAPLex: Generalized Static Symmetry Breaking. Chapter 10. Symmetry Breaking in Subgraph Pattern Matching. Part IV. Interval Analysis, Constraint Propagation and Applications. Chapter 11. Modeling and Solving of a Radio Antenna Deployment Support Application. Chapter 12. Guaranteed Numerical Injectivity Test via Interval Analysis. Chapter 13. An Interval-based Approximation Method for Discrete Changes in Hybrid cc. Part V. Local Search Techniques in Constraint Satisfaction. Chapter 14. Combining Adaptive Noise and Look-Ahead in Local Search for SAT. Chapter 15. Finding Large Cliques using SAT Local Search. Chapter 16. Multi-Point Constructive Search for Constraint Satisfaction: An Overview. Chapter 17. Boosting SLS Using Resolution. Chapter 18. Growing COMET. Part VI. Preferences and Soft Constraints. Chapter 19. The Logic Behind Weighted CSP. Chapter 20. Dynamic Heuristics for Branch and Bound on Tree-Decomposition of Weighted CSPs. Part VII. Constraints in Software Testing, Verification and Analysis. Chapter 21. Extending a CP Solver with Congruences as Domains for Program Verification. Chapter 22. Generating Random Values Using Binary Decision Diagrams and Convex Polyhedra. Chapter 23. A Symbolic Model for Hash-Collision Attacks. Chapter 24. Strategy for Flaw Detection Based on a Service-driven Model for Group Protocols. Part VIII. Constraint Programming for Graphical Applications. Chapter 25. Trends and Issues in using Constraint Programming for Graphical Applications. Chapter 26. A Constraint Satisfaction Framework for Visual Problem Solving. Chapter 27. Computer Graphics and Constraint Solving: An Application to Virtual Camera Control. Index.
Read moreRedundant modeling in permutation weighted constraint satisfaction problems
In classical constraint satisfaction, redundant modeling has been shown effective in increasing constraint propagation and reducing search space for many problem instances. In this paper, we investigate, for the first time, how to benefit the same from redundant modeling in weighted constraint satisfaction problems (WCSPs), a common soft constraint framework for modeling optimization and over-constrained problems. Our work focuses on a popular and special class of problems, namely, permutation problems. First, we show how to automatically generate a redundant permutation WCSP model from an existing permutation WCSP using generalized model induction. We then uncover why naively combining mutually redundant permutation WCSPs by posting channeling constraints as hard constraints and relying on the standard node consistency (NC*) and arc consistency (AC*) algorithms would miss pruning opportunities, which are available even in a single model. Based on these observations, we suggest two approaches to handle the combined WCSP models. In our first approach, we propose $m\text {-NC}_{\text c}^*$ and $m\text {-AC}_{\text c}^*$ and their associated algorithms for effectively enforcing node and arc consistencies in a combined model with m sub-models. The two notions are strictly stronger than NC* and AC* respectively. While the first approach specifically refines NC* and AC* so as to apply to combined models, in our second approach, we propose a parameterized local consistency LB(m,?). The consistency can be instantiated with any local consistency ? for single models and applied to a combined model with m sub-models. We also provide a simple algorithm to enforce LB(m,?). With the two suggested approaches, we demonstrate their applicabilities on several permutation problems in the experiments. Prototype implementations of our proposed algorithms confirm that applying $2\text {-NC}_{\text c}^*,\;2\text {-AC}_{\text c}^*$ , and LB(2,?) on combined models allow far more constraint propagation than applying the state-of-the-art AC*, FDAC*, and EDAC* algorithms on single models of hard benchmark problems.
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 moreHandbook of Constraint Programming
Handbook of Constraint Programming
Minimization of Locally Defined Submodular Functions by Optimal Soft Arc Consistency
Submodular function minimization is a polynomially solvable combinatorial problem. Unfortunately the best known general-purpose algorithms have high-order polynomial time complexity. In many applications the objective function is locally defined in that it is the sum of cost functions (also known as soft or valued constraints) whose arities are bounded by a constant. We prove that every valued constraint satisfaction problem with submodular cost functions has an equivalent instance on the same constraint scopes in which the actual minimum value of the objective function is rendered explicit. Such an equivalent instance is the result of establishing optimal soft arc consistency and can hence be found by solving a linear program. From a practical point of view, this provides us with an alternative algorithm for minimizing locally defined submodular functions. From a theoretical point of view, this brings to light a previously unknown connection between submodularity and soft arc consistency.
Read moreIncrementally solving functional constraints
Binary functional constraints represent an important constraint class in Constraint Satisfaction Problems (CSPs). They have been studied in different contexts [for example (van Hentenryck et al. 1992; Kirousis 1993; van Beek and Dechter 1995; David 1995; Zhang et al. 1999)]. Functional constraints are also a primitive in Constraint Programming (CP) systems. In a CP system (Jaffar and Maher 1994), constraints are incrementally added to and removed from its constraint store which can be modeled as a CSP. The success of CP systems illustrates the need to have efficient incremental CSP algorithms. Existing work on functional constraints deals mainly with static CSPs where all constraints are known a priori. We show that an incremental CSP with pure functional constraints can be solved in almost the same time complexity as a static one. To solve more constraints (not only pure functional constraints) in a mixed CSP with both functional and non-functional constraints, we propose an algorithm with complexity comparable to the cost of enforcing arc consistency.
Read moreWeighted Constrained CP-nets: an Extension of Constrained CP-nets with Weighted Constraints
A Conditional Preference Network (CP-net) is a graphical model widely used to represent qualitative preferences in many real-world applications. Preference elicitation, representation, and reasoning plays an essential role in e-commerce and other applications relying on users’ preferences and desires. However, managing preferences often comes with dealing with hard and soft constraints. While hard constraints are requirements that can either be satisfied or violated, this two-level of satisfiability can be generalized to multiple levels through soft constraints. In this context, our main objective is to manage conditional and qualitative preferences together with hard and soft constraints, within a unique model. The constrained CP-net graphical model has been proposed to manage both conditional preferences and hard constraints. In order to include soft constraints, we extend the underlying constraint network of the constrained CP-net to a Weighted Constraint Satisfaction Problem (WCSP). A WCSP is a CSP where (soft) constraints can be violated or satisfied with associated costs. More precisely, a cost function is associated to each constraint. We call the Weighted Constrained CP-nets (WCCP-net) the new model we propose. Like for CP-nets and Constrained CP-nets, there are two queries to consider for WCCP-nets: outcome optimization and outcome comparison. The outcome optimization query in the case of a constrained CP-net consists in finding the set of feasible solutions that are not dominated by any other solutions. This set is called the Pareto optimal set. In the case of the WCCP-net, this task consists of finding those solutions, from the Pareto optimal set, that maximize the total cost function of the underlying WCSP. This is a NP-hard problem that we tackle using a variant of the branch and bound algorithm that has been proposed to solve the outcome optimization in the case of constrained CP-nets.
Read moreSpeeding Up Weighted Constraint Satisfaction Using Redundant Modeling
In classical constraint satisfaction, combining mutually redundant models using channeling constraints is effective in increasing constraint propagation and reducing search space for many problems. In this paper, we investigate how to benefit the same for weighted constraint satisfaction problems (WCSPs), a common soft constraint framework for modeling optimization and over-constrained problems. First, we show how to generate a redundant WCSP model from an existing WCSP using generalized model induction. We then uncover why naively combining two WCSPs by posting channeling constraints as hard constraints and relying on the standard NC* and AC* propagation algorithms does not work well. Based on these observations, we propose m -NC* c and m-AC* c and their associated algorithms for effectively enforcing node and arc consistencies on a combined model with m sub-models. The two notions are strictly stronger than NC* and AC* respectively. Experimental results confirm that applying the 2-NC* c and 2-AC* c algorithms on combined models reduces more search space and runtime than applying the state-of-the-art AC*, FDAC*, and EDAC* algorithms on single models.KeywordsCombine ModelConstraint Satisfaction ProblemHard ConstraintLocal ConsistencyBinary ConstraintThese keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Read moreFiltering Decomposable Global Cost Functions
As (Lee et al., 2012) have shown, weighted constraint satisfaction problems can benefit from the introduction of global cost functions, leading to a new Cost Function Programming paradigm. In this paper, we explore the possibility of decomposing global cost functions in such a way that enforcing soft local consistencies on the decomposition offers guarantees on the level of consistency enforced on the original global cost function. We show that directional arc consistency and virtual arc consistency offer such guarantees. We conclude by experiments on decomposable cost functions showing that decompositions may be very useful to easily integrate efficient global cost functions in solvers.
Read moreSearch by constraint propagation
Constraint programming is traditionally presented as the combination of two components: a constraint model and a search procedure. In this paper we show that tree search procedures can be fully internalized in the constraint model with a fixed enumeration strategy. This approach has several advantages: 1) it makes search strategies declarative, and modeled as constraint satisfaction problems; 2) it makes it possible to express search strategies in existing front-end modeling languages supporting reified constraints without any extension; 3) it opens up constraint propagation algorithms to search constraints and to the implementation of novel search procedures based on constraint propagation. We illustrate this approach with a Horn clause extension of the MiniZinc modeling language and the modeling in this language of a variety of search procedures, including dynamic symmetry breaking procedures and limited discrepancy search, as constraint satisfaction problems. We show that this generality does not come with a significant overhead, and can in fact exhibit exponential speedups over procedural implementations, thanks to the propagation of the search constraints.
Read moreTime Complexity of Constraint Satisfaction via Universal Algebra
The exponential-time hypothesis (ETH) states that 3-SAT is not solvable in subexponential time, i.e. not solvable in O(c^n) time for arbitrary c > 1, where n denotes the number of variables. Problems like k-SAT can be viewed as special cases of the constraint satisfaction problem (CSP), which is the problem of determining whether a set of constraints is satisfiable. In this paper we study the worst-case time complexity of NP-complete CSPs. Our main interest is in the CSP problem parameterized by a constraint language Gamma (CSP(Gamma)), and how the choice of Gamma affects the time complexity. It is believed that CSP(Gamma) is either tractable or NP-complete, and the algebraic CSP dichotomy conjecture gives a sharp delineation of these two classes based on algebraic properties of constraint languages. Under this conjecture and the ETH, we first rule out the existence of subexponential algorithms for finite domain NP-complete CSP(Gamma) problems. This result also extends to certain infinite-domain CSPs and structurally restricted CSP(Gamma) problems. We then begin a study of the complexity of NP-complete CSPs where one is allowed to arbitrarily restrict the values of individual variables, which is a very well-studied subclass of CSPs. For such CSPs with finite domain D, we identify a relation SD such that (1) CSP({SD}) is NP-complete and (2) if CSP(Gamma) over D is NP-complete and solvable in O(c^n) time, then CSP({SD}) is solvable in O(c^n) time, too. Hence, the time complexity of CSP({SD}) is a lower bound for all CSPs of this particular kind. We also prove that the complexity of CSP({SD}) is decreasing when |D| increases, unless the ETH is false. This implies, for instance, that for every c>1 there exists a finite-domain Gamma such that CSP(Gamma) is NP complete and solvable in O(c^n) time.
Read more