IBM Labs in Haifa © 2005 IBM Corporation Assumption-based Pruning in Conditional CSP Felix Geller and Michael Veksler.

Slides:



Advertisements
Similar presentations
Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Advertisements

Constraint Satisfaction Problems Russell and Norvig: Chapter
Constraint Satisfaction Problems
Constraint Satisfaction Problems Russell and Norvig: Parts of Chapter 5 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2004/home.htm Prof: Dekang.
Interactive Configuration
This lecture topic (two lectures) Chapter 6.1 – 6.4, except
This lecture: CSP Introduction and Backtracking Search
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
This lecture topic (two lectures) Chapter 6.1 – 6.4, except 6.3.3
1 Finite Constraint Domains. 2 u Constraint satisfaction problems (CSP) u A backtracking solver u Node and arc consistency u Bounds consistency u Generalized.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Constraint Satisfaction problems (CSP)
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
IBM Labs in Haifa Generation Core: IBM's Systematic Constraint Solver.
IBM Labs in Haifa © 2005 IBM Corporation Adaptive Application of SAT Solving Techniques Ohad Shacham and Karen Yorav Presented by Sharon Barner.
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
ECE 667 Synthesis & Verification - SAT 1 ECE 667 ECE 667 Synthesis and Verification of Digital Systems Boolean SAT CNF Representation Slides adopted (with.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Constraint Satisfaction CSE 473 University of Washington.
GRASP-an efficient SAT solver Pankaj Chauhan. 6/19/ : GRASP and Chaff2 What is SAT? Given a propositional formula in CNF, find an assignment.
Constraint Satisfaction
Constraint Satisfaction Problems Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Constraint Propagation (Where a better exploitation of the constraints further reduces the need to make decisions) R&N: Chap. 5 + Chap. 24, p
CAP 492 Course Dr. Souham Meshoul 1 CONSTRAINT SATISFACTION PROBLEMS Chapter 5.
Stochastic greedy local search Chapter 7 ICS-275 Spring 2007.
Chapter 5 Outline Formal definition of CSP CSP Examples
SAT Solving Presented by Avi Yadgar. The SAT Problem Given a Boolean formula, look for assignment A for such that.  A is a solution for. A partial assignment.
Constraint Satisfaction Problems
Relaxation and Hybrid constraint processing Different relaxation techniques Some popular hybrid techniques.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Constraint Satisfaction Read Chapter 5. Model Finite set of variables: X1,…Xn Variable Xi has values in domain Di. Constraints C1…Cm. A constraint specifies.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Constraint Satisfaction CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Problem Solving with Constraints Lookahead Schemas 1 Foundations of Constraint Processing CSCE496/896, Fall
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Fall 2006 Jim Martin.
CSC 423 ARTIFICIAL INTELLIGENCE Constraint Satisfaction Problems.
1 Chapter 5 Constraint Satisfaction Problems. 2 Outlines  Constraint Satisfaction Problems  Backtracking Search for CSPs  Local Search for CSP  The.
Chapter 5 Constraint Satisfaction Problems
Review Test1. Robotics & Future Technology Future of Intelligent Systems / Ray Kurzweil futurist Ray Kurzweil / A Long Bet A Long Bet / Robot Soccer.
Maintaining Arc Consistency (MAC) MAC is the same as Back-tracking, but with calls to AC-3 interleaved... function Backtracking-Search(csp) returns.
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
Maximum Density Still Life Symmetries and Lazy Clause Generation Geoffrey Chu, Maria Garcia de la Banda, Chris Mears, Peter J. Stuckey.
CHAPTER 5 SECTION 1 – 3 4 Feb 2004 CS Constraint Satisfaction 1 Constraint Satisfaction Problems.
Arc Consistency CPSC 322 – CSP 3 Textbook § 4.5 February 2, 2011.
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK Constraint Satisfaction Problems.
Constraint Satisfaction Problems Rich and Knight: 3.5 Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Lecture 5: Constraint Satisfaction Problems
1 CSC 384 Lecture Slides (c) , C. Boutilier and P. Poupart CSC384: Lecture 16  Last time Searching a Graphplan for a plan, and relaxed plan heuristics.
1 Constraint Satisfaction Problems (CSP). Announcements Second Test Wednesday, April 27.
© 2012 IBM Corporation Perfect Hashing and CNF Encodings of Cardinality Constraints Yael Ben-Haim Alexander Ivrii Oded Margalit Arie Matsliah SAT 2012.
Inference and search for the propositional satisfiability problem
Constraint Satisfaction Problems Lecture # 14, 15 & 16
Constraint Satisfaction
CS 188: Artificial Intelligence
CS B551: Elements of Artificial Intelligence
Constraints and Search
Chapter 5: General search strategies: Look-ahead
Constraint satisfaction problems
Constraint Satisfaction Problems. A Quick Overview
Constraint Satisfaction Problems
Constraint satisfaction problems
Presentation transcript:

IBM Labs in Haifa © 2005 IBM Corporation Assumption-based Pruning in Conditional CSP Felix Geller and Michael Veksler

© 2005 IBM Corporation IBM Labs in Haifa 2 Outline  Conditional CSP (Mittal and Falkenhainer)  Conditional CSP solution methods  Activity CSP formulation  MAC-based algorithm for ACSP  Activity disjunction and implication  Questions

© 2005 IBM Corporation IBM Labs in Haifa 3  Describes CSP where not all variables are required to participate in a solution  (V, V I, D,C C,C A ) Conditional CSP (Mittal and Falkenhainer)  The assigned variables are active variables  A compatibility constraint is relevant if all its variables are active Activity of a variable is determined by activity constraint Given an assignment of values to  An activity constraint: is relevant if C is relevant  An activity constraint is satisfied if v is active or C is not satisfied  In a solution all relevant constraints have to be satisfied  Minimality requirement

© 2005 IBM Corporation IBM Labs in Haifa 4 Existing approaches to solving Conditional CSPs  Reformulation  Working directly on Conditional CSP representation  Main idea: maintain list of active variables and check/propagate constraints after their variables become active  [Mittal,Falkenhainer]: Backtrack search with conflicts recording  [Gelle,Faltings]: At first determine variable activity status; for fixed variable activity status CondCSP turns into CSP.  [Sabin,Freuder,Wallace], [Gelle,Sabin]: invoke consistency techniques (CondFC, CondMAC) directly on Conditional CSP representation  Propagate constraints once their variables are active  CondMAC proved to be superior over CondBT and CondFC  The limitation: constraint propagation has to wait until variables become active

© 2005 IBM Corporation IBM Labs in Haifa 5 Activity CSP formulation  (V, V I, V A,D,C,A)  Variable is active if either or is true  Constraint is relevant if all its variables are active  An assignment is a solution if all relevant constraints are satisfied  A - activation conditions: Each variable is dominated by some  Explicit activity variables Given an assignment of values to

© 2005 IBM Corporation IBM Labs in Haifa 6  Early conflict detection: e y = true  D(x)= D(y) = {0,…,4} e z = true  D(x)= D(z) = {5,…,9} D(y) ∩ D(z) = Ø  e y  e z = false  Information flow from conditional variables to unconditional variables: e y = true  D(x)= D(y) = {0,…,4} e z = true  D(x)= D(z) = {5,…,9} e y  e z  D(X)= {0…9} An ACSP problem {true,false} eyey ezez {0,…,4} y {5,…,9} z {0,…,100} x = = V

© 2005 IBM Corporation IBM Labs in Haifa 7 Enabling early constraint propagation  Allow constraint propagation to modify variable domains before the constraint variables become active eyey ezez {0,…,4} y {5,…,9} z z[e y,e z ] {5,…,9} Activity set ezez eyey y[e y,e z ] {0,…,4} Shadows

© 2005 IBM Corporation IBM Labs in Haifa 8 Assumption-based decomposition {0,…4} {5,…,9} {true,false} eyey ezez y z {0,…,100} x = = x eyey ezez y x[e y ] {0,…,4} {0,…,100} = z x[e z ] {5,…,9} {0,…,100} =  Collect assumptions (activity sets)  Create shadows  Group shadows and constraints into CSP sub-problems

© 2005 IBM Corporation IBM Labs in Haifa 9 Shadow synchronization y x[e y ] z x[e z ] {0,…,4} {5,…,9} {0,…,100} x eyey ezez {true,false} {0,…,4} {5,…,9} e y  e z = false {3}

© 2005 IBM Corporation IBM Labs in Haifa 10 Shadow synchronization  Two shadows of the same variable: x[AS 1 ] and x[AS 2 ]  If under the current partial solution, AS 2 implies AS 1 (AS 1 is weaker than AS 2 )  D(x[AS 2 ])  D(x[AS 2 ]) ∩ D(x[AS 1 ]  If an empty domain results, some activity var in AS 2 is false  If AS 1 and AS 2 are incomparable, but D(x[AS 1 ]) ∩ D(x[AS 2 ]) = Ø  Conclude that some var in AS 1 U AS 2 is false

© 2005 IBM Corporation IBM Labs in Haifa 11  Preprocessing  While there are unassigned variables  Select a variable and instantiate it  Propagate constraints  While constraint queue is not empty  Select and propagate a constraint  Synchronize shadows  Update constraint queue  Backtrack if failed AMAC - Putting all things together  Compute constraints activity sets  Create shadows  Substitute constraints parameters with suitable shadows Select an active variable Activity inference  Handle synchronization and constraint propagation failures  Combine activity deductions to determine value of activity variables

© 2005 IBM Corporation IBM Labs in Haifa 12 Experimental results - setting  Random Conditional CSP generator similar to the generator in [Sabin,Freuder,Wallace]  CSP over N variables with binary (compatibility) constraints  Problem parameters: Compatibility density Compatibility satisfiability Activity density Activation satisfiability (for )  N=48, |V I |=12, s a =0.75, d c =0.15

© 2005 IBM Corporation IBM Labs in Haifa 13 Experimental results – 1 activity cluster

© 2005 IBM Corporation IBM Labs in Haifa 14 Experimental results – 4 activity clusters

© 2005 IBM Corporation IBM Labs in Haifa 15 Experimental results – 36 independent activation conditions

© 2005 IBM Corporation IBM Labs in Haifa 16 Experimental results – effect of clustering (s c =0.25)

© 2005 IBM Corporation IBM Labs in Haifa 17 Activity disjunction {0,…,100} y x[e y ] {0,…,4} x z x[e z ] {5,…,9} eyey ezez V {true,false} {12} {0,…,9}

© 2005 IBM Corporation IBM Labs in Haifa 18 Activity implication  Implication constraints between activity variables induce equivalence between activity sets  e y  e z  {e y } ~ {e y, e z }  Equivalence allows to reduce the number of shadow variables

© 2005 IBM Corporation IBM Labs in Haifa 19 Summary  Introduced Activity CSP – a variant of Conditional CSP formulation  ACSP directly supports full constraint propagation  Activity MAC checks several activity assumptions in parallel  Infers that an assumption is false if the constraint propagation fails  ACSP naturally captures clustering and activity disjunction  Interpret activity disjunction and implication in terms of activity sets and shadows operations  Further improve propagation and information flow  AMAC substantially reduces number of backtracks and solution time on random benchmarks  On easy problems adds overhead of shadow/assumption manipulation

IBM Labs in Haifa © 2005 IBM Corporation

IBM Labs in Haifa 21 Assumption-based decomposition ConstraintActivity set C 1 (x,e y ) C 2 (x,y) C 3 (y,e z ) C 4 (x,z) C 5 (y,z) eyey ezez y z x eyey eyey ezez ezez eyey x eyey ezez e z [e y ] x[e y ] y z x[e z ] y[e y,e z ] z[e y,e z ]