Constraint Systems Laboratory 10/24/2015Bayer–MS Thesis Defense1 Reformulating Constraint Satisfaction Problems with Application to Geospatial Reasoning.

Slides:



Advertisements
Similar presentations
Constraint Satisfaction Problems
Advertisements

Constraint Systems Laboratory February 18, 2009 CSP Modeling Examples CSP: Examples Industrial applications: scheduling, resource allocation, product configuration,
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
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:
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
Constraint Optimization Presentation by Nathan Stender Chapter 13 of Constraint Processing by Rina Dechter 3/25/20131Constraint Optimization.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
Review: Constraint Satisfaction Problems How is a CSP defined? How do we solve CSPs?
A First Practical Algorithm for High Levels of Relational Consistency Shant Karakashian, Robert Woodward, Christopher Reeson, Berthe Y. Choueiry & Christian.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables {A,B,C,…}, a set of domain values for these variables,
Constraint Processing Techniques for Improving Join Computation: A Proof of Concept Anagh Lal & Berthe Y. Choueiry Constraint Systems Laboratory Department.
4 Feb 2004CS Constraint Satisfaction1 Constraint Satisfaction Problems Chapter 5 Section 1 – 3.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
An Approximation of Generalized Arc-Consistency for Temporal CSPs Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
CPSC 322, Lecture 13Slide 1 CSPs: Arc Consistency & Domain Splitting Computer Science cpsc322, Lecture 13 (Textbook Chpt 4.5,4.8) February, 02, 2009.
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
 i may require adding new constraints, except for… o i =1  domain filtering o i =   constraint filtering Robert Woodward & Berthe Y. Choueiry Constraint.
Foundations of Constraint Processing Evaluation to BT Search 1 Foundations of Constraint Processing CSCE421/821, Spring
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 1 Ryan Kinworthy CSCE Advanced Constraint Processing.
Solvable problem Deviation from best known solution [%] Percentage of test runs ERA RDGR RGR LS Over-constrained.
Constraint Satisfaction Problems
A Constraint Satisfaction Problem (CSP) is a combinatorial decision problem defined by a set of variables, a set of domain values for these variables,
Reformulating Constraint Models Using Input Data Martin Michalowski 1, Craig A. Knoblock 1 and Berthe Y. Choueiry 1,2 1 Information Sciences Institute,
Support: UCARE grant awarded to Chris Reeson & CAREER Award # from the National Science Foundation. To the public: –Illustrate the power of CP For.
Constraint Systems Laboratory March 26, 2007Reeson–Undergraduate Thesis1 Using Constraint Processing to Model, Solve, and Support Interactive Solving of.
Ken Bayer, Josh Snyder, and Berthe Y. Choueiry Constraint Systems Laboratory University of Nebraska-Lincoln A Constraint-Based Approach to Solving Minesweeper.
1 Bandwidth Allocation Planning in Communication Networks Christian Frei & Boi Faltings Globecom 1999 Ashok Janardhanan.
Chapter 5 Outline Formal definition of CSP CSP Examples
Constraint Satisfaction Problems
Slide 1 CSPs: Arc Consistency & Domain Splitting Jim Little UBC CS 322 – Search 7 October 1, 2014 Textbook §
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
Exploiting Automatically Inferred Constraint-Models for Building Identification in Satellite Imagery Research funded by the AFSOR, grant numbers FA
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
Motivation & Goal SAT and Constraint Processing (CP) are fundamental areas of Computer Science that address the same computational questions. Compare SAT.
Chapter 5 Section 1 – 3 1.  Constraint Satisfaction Problems (CSP)  Backtracking search for CSPs  Local search for CSPs 2.
Hande ÇAKIN IES 503 TERM PROJECT CONSTRAINT SATISFACTION PROBLEMS.
Chapter 5: Constraint Satisfaction ICS 171 Fall 2006.
Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.
Chapter 5 Constraint Satisfaction Problems
Constraint Systems Laboratory R.J. Woodward 1, S. Karakashian 1, B.Y. Choueiry 1 & C. Bessiere 2 1 Constraint Systems Laboratory, University of Nebraska-Lincoln.
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.
Foundations of Constraint Processing, Fall 2004 October 3, 2004Interchangeability in CSPs1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
1. 2 Outline of Ch 4 Best-first search Greedy best-first search A * search Heuristics Functions Local search algorithms Hill-climbing search Simulated.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Chapter 5 Team Teaching AI (created by Dewi Liliana) PTIIK 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.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
Roman Barták (Charles University in Prague, Czech Republic) ACAT 2010.
Inference and search for the propositional satisfiability problem
Computer Science cpsc322, Lecture 13
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
Robert Glaubius and Berthe Y. Choueiry
Empirical Comparison of Preprocessing and Lookahead Techniques for Binary Constraint Satisfaction Problems Zheying Jane Yang & Berthe Y. Choueiry Constraint.
Computer Science cpsc322, Lecture 13
SAT-Based Area Recovery in Technology Mapping
Evaluation of (Deterministic) BT Search Algorithms
More on Constraint Consistency
Evaluation of (Deterministic) BT Search Algorithms
Constraint Satisfaction Problems & Its Application in Databases
Evaluation of (Deterministic) BT Search Algorithms
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Reformulating the Dual Graphs of CSPs
Presentation transcript:

Constraint Systems Laboratory 10/24/2015Bayer–MS Thesis Defense1 Reformulating Constraint Satisfaction Problems with Application to Geospatial Reasoning Ken Bayer Constraint Systems Laboratory Department of Computer Science & Engineering University of Nebraska-Lincoln Supported by NSF CAREER award # & AFOSR grants FA , FA

Constraint Systems Laboratory Main contributions 1.Four new reformulation techniques for CSPs –Query reformulation –Domain reformulation –Constraint relaxation –Reformulation via symmetry detection 2.BID as a CSP [Michalowski & Knoblock, AAAI 05] –Improved constraint model –Showed that original BID is in P –Custom solver 3.Application of the reformulations to BID problem 10/24/20152Bayer–MS Thesis Defense

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques –Description –General use in CSPs –Application to BID –Evaluation on real-world BID data Conclusions & future work 10/24/20153Bayer–MS Thesis Defense

Constraint Systems Laboratory Motivation: finding my house 10/24/2015Bayer–MS Thesis Defense4 Google Maps Yahoo Maps Actual location Microsoft Live Local (as of November 2006)

Constraint Systems Laboratory Abstraction & Reformulation … may be an approximation Original formulation Original query Reformulated formulation Reformulated query Original problemReformulated problem Reformulation technique Solutions( P r )  (Solutions( P o )) Solutions( P o ) Original spaceReformulated space 10/24/20155Bayer–MS Thesis Defense

Constraint Systems Laboratory Constraint Satisfaction Problems Formulation : F = ( V, D, C ) –V = set of variables –D = set of their domains –C = set of constraints restricting the acceptable combination of values for variables Query: All consistent solutions, a single solution, etc. Solved with –Constraint propagation –Search 10/24/20156Bayer–MS Thesis Defense

Constraint Systems Laboratory Constraint propagation Remove values that cannot appear in any solution Arc consistency 10/24/20157Bayer–MS Thesis Defense

Constraint Systems Laboratory Building Identification (BID) problem Data input: map layout + phone book Basic numbering rules Additional information 10/24/20158Bayer–MS Thesis Defense B6 B8 B2 B4 B5 B3 B9 B10B7 B1 S1S2 S3 Si = Building = Corner building = Street S1#1,S1#4, S1#8,S2#7, S2#8,S3#1, S3#2,S3#3, S3#15 Phone Book

Constraint Systems Laboratory Basic numbering rules Ordering: Increasing/decreasing numbers along a street Parity: Odd/even numbers on opposing sides of a street Phone book: Complete/incomplete –Assumption: all addresses in phone-book must be used Ordering B1 << B2B3 Odd Even Parity B1 B2 B3 B4 Phone book # 17 # 29 # 54 B1B2 B3 B4 10/24/20159Bayer–MS Thesis Defense

Constraint Systems Laboratory Additional information Landmarks B1B Pennsylvania Avenue Gridlines B1B2 S1 S1 #1xxS1 #2xx 10/24/201510Bayer–MS Thesis Defense

Constraint Systems Laboratory Query 1.Given an address, what buildings could it be? 2.Given a building, what addresses could it have? 10/24/201511Bayer–MS Thesis Defense B6 B8 B2 B4 B5 B3 B9 B10B7 B1 S1S2 S3 Si = Building = Corner building = Street S1#1,S1#4, S1#8,S2#7, S2#8,S3#1, S3#2,S3#3, S3#15 S1#1, S3#1, S3#15 Phone Book

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques Conclusions & future work 10/24/ /24/ Bayer–MS Thesis Defense

Constraint Systems Laboratory CSP model: variables Orientation variables –OddOnNorth, OddOnEast, IncreasingNorth, IncreasingEast –Domains: {true, false} Corner variables –Corner buildings –Domains: set of streets Building variables –Corner & non-corner buildings –Domains: set of addresses D B1c = { S1, S2 } D B1 = { S1 # 2, S1 # 4,…, S1 # 228, S2 # 5, S2 # 9,…, S2 # 25 } S1 S2 D B2 = { S2 # 5, S2 # 9,…, S2 # 25 } B2 B1 B1c 10/24/201513Bayer–MS Thesis Defense

Constraint Systems Laboratory CSP model: constraints S1 S2 B2 OddOnNorth B1 B1c B3 B4 B5 B1 B2 IncreasingEast 10/24/201514Bayer–MS Thesis Defense

Constraint Systems Laboratory Example constraint network 10/24/201515Bayer–MS Thesis Defense B6 B8 B2 B4 B5 B3 B9 B10B7 B1 S1S2 S3 Si = Building = Corner building = Street S1#1,S1#4, S1#8,S2#7, S2#8,S3#1, S3#2,S3#3, S3#15

Constraint Systems Laboratory 1.Orientations vary per street (e.g., Belgrade) 2.Non-corner building on two streets 3.Corner building on more than two streets  All gracefully handled by the model Special configurations 10/24/201516Bayer–MS Thesis Defense

Constraint Systems Laboratory Custom solver Backtrack search Conflict-directed backjumping Forward checking (nFC3) Domains implemented as intervals (box consistency) Variable ordering 1.Orientation variables 2.Corner variables 3.Building variables Backdoor variables –Orientation + corner variables Orientation & corner variables Building variables Filter values 10/24/201517Bayer–MS Thesis Defense

Constraint Systems Laboratory Backdoor variables We instantiate only orientation & corner variables We guarantee solvability without instantiating building variables B6B8B11B2B4 B5 B3 B9 B10 B7 B1 B6B8B11B2B4 B5 B3 B9 B10 B7 B1 10/24/201518Bayer–MS Thesis Defense

Constraint Systems Laboratory Features of new model & solver Model –Reflects topology –Reduces number of variables –Reduces constraint arity –Constraints can be declared locally & in restricted ‘contexts’ (feature important for Michalowski’s work) Solver –Exploits structure of problem –Implements domains as possibly infinite intervals –Incorporates all reformulations (to be introduced) Improvement over previous work [Michalowski+, 05] 10/24/201519Bayer–MS Thesis Defense

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques –Query reformulation –AllDiff-Atmost & domain reformulation –Constraint relaxation –Reformulation via symmetry detection Conclusions & future work 10/24/ /24/201520Bayer–MS Thesis Defense

Constraint Systems Laboratory Query in the BID Problem: BID instances have many solutions We only need to know which values appear in at least one solution B1B2B3B4 Phone book: {4,8} B1B2B3B /24/201521Bayer–MS Thesis Defense

Constraint Systems Laboratory Query reformulation Query: Find all solutions, collect values for variables Query: For each variable- value combination, determine satisfiability Solving the BIDReformulated BID Query reformulation Original queryReformulated query Single counting problemMany satisfiability problems All solutionsPer-variable solution Exhaustive searchOne path Impractical when there are many solutions Costly when there are few solutions 10/24/201522Bayer–MS Thesis Defense

Constraint Systems Laboratory Evaluations: real-world data from El Segundo [Shewale] Case studyPhone bookNumber of… completenessbuildingscorner bldgsblocks NSeg125-c100.0% NSeg125-i45.6% NSeg206-c100.0% NSeg206-I50.5% SSeg131-c100.0% SSeg131-i60.3% SSeg178-c100.0% SSeg178-i65.6% Previous work did not scale up beyond 34 bldgs, 7 corner bldgs, 1 block All techniques tested return same solutions 10/24/201523Bayer–MS Thesis Defense

Constraint Systems Laboratory Evaluation: query reformulation Case studyOriginal queryNew query [s] NSeg125-i>1 week744.7 NSeg206-i>1 week14,818.9 SSeg131-i>1 week66,901.1 SSeg178-i>1 week119,002.4 Case studyOriginal query [s]New query [s] NSeg125-c NSeg206-c20.24,971.2 SSeg131-c ,618.4 SSeg178-c ,279.1 Incomplete phone book → many solutions → better performance Complete phone book → few solutions → worse performance 10/24/201524Bayer–MS Thesis Defense

Constraint Systems Laboratory Generalizing query reformulation Relational (i,m)-consistency, R(i,m)C –Given m constraints, let s be the size of their scope –Compute all solutions of length s –To generate tuples of length i (i.e., constraints of arity i) –Space: O(d s ) Query reformulation –For each combination of values for i variables –Try to extend to one solution of length s –Space: O( ( ) d i ), i < s Per-variable solution computes R(1,| C |)C s i 10/24/201525Bayer–MS Thesis Defense

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques –Query reformulation –AllDiff-Atmost & domain reformulation –Constraint relaxation –Reformulation via symmetry detection Conclusions & future work 10/24/ /24/201526Bayer–MS Thesis Defense

Constraint Systems Laboratory Domain reformulation Domains in the BID are large Min/max value? Enumerate? B1B2B3B4 Phonebook = {3,8} [3,8] [0,245] [0, ] B1B2B3B4 {1,2,3,…,8} 10/24/201527Bayer–MS Thesis Defense

Constraint Systems Laboratory AllDiff-Atmost constraint AllDiff-Atmost( A,k,d) –For a set of variables A, ensure that the variables in A collectively are not assigned more than k values from the set d Three expansion slots { High end graphics card, Low end graphics card, Sound card, 10MB ethernet card, 100MB ethernet card, 1GB ethernet card, …} At most one network card 10/24/201528Bayer–MS Thesis Defense

Constraint Systems Laboratory AllDiff-Atmost reformulation Replaces –interval d of values (potentially infinite) –with k symbolic values 10/24/201529Bayer–MS Thesis Defense

Constraint Systems Laboratory AllDiff-Atmost in the BID B1B2B3B4 Phone book: {12,28} B5 Cannot use more than –3 addresses less than 12 –3 addresses in (12,28) –3 addresses more than 28 Even side ……1228… { s 1, s 2, s 3, 12, s 4, s 5, s 6, 28, s 7, s 8, s 9 } { 2, 4, …, 10, 12, 14, …, 26, 28, 30, …, 998, 1000 } Original domain Reformulated domain 10/24/201530Bayer–MS Thesis Defense

Constraint Systems Laboratory Evaluation : domain reformulation Reduced domain size → improved search performance Case study Phone-book completeness Average domain sizeRuntime [s] OriginalReformulatedOriginalReformulated NSeg125-i45.6% NSeg206-i50.5% , SSeg131-i60.3% , ,901.1 SSeg178-i65.6% , , /24/201531Bayer–MS Thesis Defense

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques –Query reformulation –AllDiff-Atmost & domain reformulation –Constraint relaxation –Reformulation via symmetry detection Conclusions & future work 10/24/ /24/201532Bayer–MS Thesis Defense

Constraint Systems Laboratory Constraint relaxation Resource allocation problems are often matching problems with additional constraints Alice Charlie Bob Computer sales TV sales Inventory or Additional constraint: We don’t want Bob and Charlie both working sales at the same time 10/24/201533Bayer–MS Thesis Defense

Constraint Systems Laboratory BID as a matching problem Assume we have no grid constraints 10/24/201534Bayer–MS Thesis Defense B6 B8 B2 B4 B5 B3 B9 B10B7 B1 S1 S2 S3 S1#1,S1#4, S1#8,S2#7, S2#8,S3#1, S3#2,S3#3, S3#15

Constraint Systems Laboratory BID w/o grid constraints BID instances without grid constraints can be solved in polynomial time Case studyRuntime [s] BT searchMatching NSeg125-c NSeg206-c SSeg131-c SSeg178-c NSeg125-i NSeg206-i SSeg131-i SSeg178-i /24/201535Bayer–MS Thesis Defense

Constraint Systems Laboratory BID w/ grid constraints The matching reformulation is a necessary approximation Solutions to BID instance Solutions to matching reformulation Reformulation No solution to matching reformulation → no solution to the original BID 10/24/201536Bayer–MS Thesis Defense

Constraint Systems Laboratory Lookahead : relaxation during search Filter vvps that do not appear in any maximum matching [Régin, 1994] Instantiated variables (corners) Matching relaxation Uninstantiated variables Filter values 10/24/201537Bayer–MS Thesis Defense

Constraint Systems Laboratory Using the relaxation prior to search Preproc1 –Prior to running per-variable solution loop –Remove vvps that don’t appear in any max. matching [Régin, 1994] BID instance + vvp Relax as matching Preproc2 Is matching solvable? Search determines solvability of CSP Yes No BID cannot have a solution Preproc2 –Prior to testing a CSP for solvability –Necessary approximation determines unsolvability 10/24/201538Bayer–MS Thesis Defense

Constraint Systems Laboratory Evaluation: constraint relaxation Generally, improves performance Rarely, the overhead exceeds the gains Case Study BT Preproc2 +BT % (from BT) Lkhd +BT % (from BT) Lkhd +Preproc1&2 + BT % (from Lkhd+BT) NSeg125-i % % % NSeg206-c % % % SSeg178-i % % % 10/24/201539Bayer–MS Thesis Defense Case Study BT Preproc2 +BT % (from BT) Lkhd +BT % (from BT) Lkhd +Preproc1&2 + BT % (from Lkhd+BT) NSeg125-i % % % NSeg206-c % % %

Constraint Systems Laboratory Outline Background BID model & custom solver Reformulation techniques –Query reformulation –AllDiff-Atmost & domain reformulation –Constraint relaxation –Reformulation via symmetry detection Conclusions & future work 10/24/ /24/201540Bayer–MS Thesis Defense

Constraint Systems Laboratory Find all maximum matchings … alternating cycles: … even alternating paths free vertex: Find one maximum matching [Hopcroft+Karp, 73] Identify… [Berge, 73] 10/24/201541Bayer–MS Thesis Defense

Constraint Systems Laboratory Symmetric maximum matchings  = =  () All matchings can be produced using the sets of disjoint alternating paths & cycles  Compact representation S 10/24/201542Bayer–MS Thesis Defense

Constraint Systems Laboratory Some symmetric solutions do not break the grid constraints –Use symmetry breaking constraints to avoid exploring them Some do, we do not know how to use them… Symmetric matchings in BID 10/24/201543Bayer–MS Thesis Defense 

Constraint Systems Laboratory Conclusions We proposed four reformulation techniques We described their usefulness for general CSPs We demonstrated their effectiveness on the BID Lesson: reformulation is an effective approach to improve the scalability of complex systems 10/24/201544Bayer–MS Thesis Defense

Constraint Systems Laboratory Future work Empirically evaluate our new algorithm for relational (i,m)-consistency Identify other problems that benefit from a matching relaxation Exploit the symmetries we identified Enhance the model by inferring more constraints [Michalowski] 10/24/201545Bayer–MS Thesis Defense

Constraint Systems Laboratory Questions? 10/24/201546Bayer–MS Thesis Defense

Constraint Systems Laboratory Overall architecture 10/24/201547Bayer–MS Thesis Defense

Constraint Systems Laboratory Using query reformulation A B E D F C ABCDEF ……………… ……………… ……………… AB …… …… …… … AC …… …… …… DB …… …… RC (i,m) : New algor.: Space O(d s ) Space O( ( ) d i ) EC …… …… …… FB …… …… Goal: Compute R(2,7)C with i=2, m=7 … … Note: i < s s i s=6 10/24/201548Bayer–MS Thesis Defense