Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University.

Slides:



Advertisements
Similar presentations
Interchangeability in Constraint Programming Shant Karakashian, Robert J. Woodward, Berthe Y. Choueiry, Steven D. Prestwich and Eugene C. Freuder 1.
Advertisements

ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
G53CLP Constraint Logic Programming Modeling CSPs – Case Study I Dr Rong Qu.
Anany Levitin ACM SIGCSE 1999SIG. Outline Introduction Four General Design Techniques A Test of Generality Further Refinements Conclusion.
Constraint Optimization Presentation by Nathan Stender Chapter 13 of Constraint Processing by Rina Dechter 3/25/20131Constraint Optimization.
Best-First Search: Agendas
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
A Partial Taxonomy of Substitutability & Interchangeability Shant Karakashian Robert J. Woodward Berthe Y. Choueiry Steven D. Prestwich Eugene C. Freuder.
Problem Solving with Constraints, Fall 2011 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Problem Solving with Constraints.
Constraint Processing Techniques for Improving Join Computation: A Proof of Concept Anagh Lal & Berthe Y. Choueiry Constraint Systems Laboratory Department.
Foundations of Constraint Processing, Spring 2008 Evaluation to BT SearchApril 16, Foundations of Constraint Processing CSCE421/821, Spring 2008:
Constraint Systems Laboratory Oct 21, 2004Guddeti: MS thesis defense1 An Improved Restart Strategy for Randomized Backtrack Search Venkata P. Guddeti Constraint.
An Approximation of Generalized Arc-Consistency for Temporal CSPs Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
Improving Backtrack Search For Solving the TCSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
CPSC 322, Lecture 12Slide 1 CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12 (Textbook Chpt ) January, 29, 2010.
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.
Efficient Techniques for Searching the Temporal CSP Lin Xu and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science and Engineering.
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,
Cut-and-Traverse: A new Structural Decomposition Method for CSPs Yaling Zheng and Berthe Y. Choueiry Constraint Systems Laboratory Computer Science & Engineering.
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.
Constraint Systems Laboratory December 9, 2005ISI AI Seminar Series1 Symmetry Detection in Constraint Satisfaction Problems & its Application in Databases.
Chapter 5 Outline Formal definition of CSP CSP Examples
Constraint Systems Laboratory 11/22/2005Zheng – Comprehensive1 Survey of Techniques for Detecting and Exploiting Symmetry in Constraint Satisfaction Problems.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
Foundations of Constraint Processing, Fall 2004 November 18, 2004More on BT search1 Foundations of Constraint Processing CSCE421/821, Fall 2004:
Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian.
Constraint Programming for Supply Chain Management J. Christopher Beck Cork Constraint Computation Centre (4C) SCM Information Day, Nov.
CP Summer School Modelling for Constraint Programming Barbara Smith 1.Definitions, Viewpoints, Constraints 2.Implied Constraints, Optimization,
Vlad Furash & Steven Wine.  Problem surfaced in 1848 by chess player Max Bezzel as 8 queens (regulation board size)  Premise is to place N queens on.
Constraint Satisfaction Problem:  Used to model constrained combinatorial problems  Important real-world applications: hardware & software verification,
Because the localized R(*,m)C does not consider combinations of relations across clusters, propagation between clusters is hindered. Synthesizing a global.
Modelling for Constraint Programming Barbara Smith CP 2010 Doctoral Programme.
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 Systems Laboratory 11/26/2015Zhang: MS Project Defense1 OPRAM: An Online System for Assigning Capstone Course Students to Sponsored Projects.
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.
Quality of LP-based Approximations for Highly Combinatorial Problems Lucian Leahu and Carla Gomes Computer Science Department Cornell University.
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.
Foundations of Constraint Processing, Fall 2012 Odds and Ends: Modeling Examples & Graphical Representations 1Odds & Ends Foundations of Constraint Processing.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
ERA on an over-constrained problem A Constraint-Based System for Hiring & Managing Graduate Teaching Assistants Ryan Lim, Praveen Venkata Guddeti, and.
Tractable Symmetry Breaking for CSPs with Interchangeable Values P. Van Hentenryck, P. Flener, J. Pearson and M. Agren IJCAI 2003 Presented by: Shant Karakashian.
10.3 Reformulation The Lex-Leader Method Shant Karakashian 1.
853 instances from the 2008 CP Solver Competition. Real full lookahead cl+proj-wR(*,m)C, which enforces R(*, m)C on each cluster, adds projection of constraints.
Shortcomings of Traditional Backtrack Search on Large, Tight CSPs: A Real-world Example Venkata Praveen Guddeti and Berthe Y. Choueiry The combination.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Consistency Methods for Temporal Reasoning
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
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.
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Evaluation of (Deterministic) BT Search Algorithms
Constraints and Search
Evaluation of (Deterministic) BT Search Algorithms
Constraint Satisfaction Problems & Its Application in Databases
Odds and Ends Modeling Examples & Graphical Representations
Evaluation of (Deterministic) BT Search Algorithms
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Revisiting Neighborhood Inverse Consistency on Binary CSPs
Reformulating the Dual Graphs of CSPs
Presentation transcript:

Constraint Systems Laboratory Presented by: Robert J. Woodward, Amanda Swearngin 1 Berthe Y. Choueiry 2 Eugene C. Freuder 3 1 ESQuaReD Laboratory, University of Nebraska-Lincoln 2 Constraint Systems Laboratory, University of Nebraska-Lincoln 3 Cork Constraint Computation Centre, University College Cork A Reformulation Strategy for Multi-Dimensional CSPs: The Case Study of the SET Game Acknowledgements National Science Foundation under grants CCF , CNS , and RI Science Foundation Ireland under grant 05/IN/ /2/2015SARA 20111

Constraint Systems Laboratory Outline General reformulation strategy for CSPs –Multidimensional CSPs (MD-CSPs) –Problem reformulation by value interchangeability –A general reformulation strategy for MD-CSPs Game of Set: A new toy problem –Game, CSP model –Problem reformulation –Algorithms & Results Conclusions 12/2/2015SARA 20112

Constraint Systems Laboratory Value in domain Multi-Dimensional CSPs [Yoshikawa+ 1992] All variables have the same domain Domain is multi-dimensional –A set of dimensions –Each domain value is described by a combination of dimensions values In MD-CSPs, a constraint can be –One-dimensional: defined over a single dimension –Multi-dimensional, otherwise Typical applications –Scheduling, resource allocation, configuration, etc. 12/2/2015SARA dim 3 dim 2 dim 1

Constraint Systems Laboratory Reformulation by value interchangeability Value interchangeability [Freuder 91] –Domain abstraction: equivalent values –‘Perfect’ equivalence rare, small domain partitions –Ignoring some constraints yields larger domain partitions, smaller CSPs, smaller search space [Haselboeck 93, Choueiry+ 94] Abstraction in MD-CSPs [Freuder+ 95,97] –Abstract domains based on a dimension, P r –Solve reformulated CSP –Use solution of P r to guide solving original CSP, P o How to “use solution of P r to solve P o ”? Hard to automate 12/2/2015SARA a b c d e f

Constraint Systems Laboratory Reformulation Strategy for MD-CSPs Process For each one-dimensional constraint Abstract domains using interchangeability Enforce one-dimensional constraint Solve remaining CSPs with some solver 12/2/2015SARA P o : Original MD-CSP One-dimensional constraints: {C 1,C 2,C 3,…,C n } Other constraints P 1 : A set of reformulated CSPs One-dim constraints: {C 2,C 3,…,C n } P n : A set of reformulated CSPs One-dim constraints:  Exploit approximate symmetries to enforce C 1 Enforce remaining constraints Exploit approximate symmetries to enforce C 2 Questions –Which 1-dim constraint to use first? –How to process reformulated problems? Case study of the Set game

Constraint Systems Laboratory Outline General reformulation strategy for CSPs –Multidimensional CSPs (MD-CSPs) –Problem reformulation by value interchangeability –A general reformulation strategy for MD-CSPs Game of Set: A new toy problem –Game, CSP model –Problem reformulation –Algorithms & Results Conclusions 12/2/2015SARA 20116

Constraint Systems Laboratory Game of Set [Falco 74] Deck of 81(=3 4 ) cards, each card with a unique combination of 4 attributes values 1.Number  {1,2,3} 2.Color  { green,purple,red } 3.Filling  { empty,stripes, full } 4.Shape  { diamond,squiggle,oval } Solution set: 3 cards  attribute, the 3 cards have either the same value or all different values 12/2/2015SARA cards are dealt, on table [3,21] Recreational game, favorite of children & CS/math students New toy problem for AI: a typical multi-dimensional CSP

Constraint Systems Laboratory Set as an MD-CSP Model –Three variables –Same domain (12 cards) –One ‘physical’ constraints –Four 1-dimensional constraints 12/2/2015SARA c 1,c 2,c 3,…,c 12 C=⊕C≠C=⊕C≠ F=⊕F≠F=⊕F≠ S=⊕S≠S=⊕S≠ N=⊕N≠N=⊕N≠ id ≠ c 1,c 2,c 3,…,c 12 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 Number Color r g p Filling f e s Shape s o d c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 Same domain for all 3 variables Domain Table Domain dimensions

Constraint Systems Laboratory Reformulation by Value Interchangeability 12/2/2015SARA c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c 3,c 4,c 6 c 1,c 2 c 5 id ≠ S = ⊕ S ≠ c 3,c 4,c 6 c 1,c 2 c 5 N=⊕N≠N=⊕N≠ V1V1 V2V2 V3V3 Filling≡empty, Color≡red Number yields 3 domain partitions by neighborhood interchangeability (meta), replacing 6 3 solutions by 3 3 subproblems Enforcing N = ⊕ N ≠ replaces 3 3 by 4 subproblems D 1 = D 2 = D 3 c 3,c 4,c 6 c 1,c 2 c5c5 V1V1 V2V2 V3V3 c 3,c 4,c 6 V1V1 V2V2 V3V3 S=⊕S≠S=⊕S≠ id ≠ N=1 c 1,c 2 V1V1 V2V2 V3V3 N=2 c5c5 c5c5 c5c5 V1V1 V2V2 V3V3 N=3N≠N≠ N=N= D 1 ≠ D 2 ≠ D 3

Constraint Systems Laboratory Reformulation Strategy for Set Which dimension to choose first? ↪ For Set, heuristics based on data in ‘Domain Table:’ Fewest subproblems first (infamously, Fail First Principle) 12/2/2015SARA Original CSP C = {A 1,A 2,A 3,A 4 }={S,N,C,F} D 1 =D 2 =D 3 P(A 1,a) C = {A 2,A 3,A 4 } D 1 =D 2 =D 3 P(A 1,b) C = {A 2,A 3,A 4 } D 1 =D 2 =D 3 P(A 1,c) C = {A 2,A 3,A 4 } D 1 =D 2 =D 3 P(A 1,≠) C = {A 2,A 3,A 4 } D 1 ≠ D 2 ≠ D 3 abc ≠ Enforcing mutually exclusive constraints of each dimension Select one-dim constraint P(A 2,a) C = {A 3,A 4 } D 1 =D 2 =D 3 P(A 2,≠) C = {A 3,A 4 } D 1 ≠ D 2 ≠D 3 P(A i,a) C = {A j,A k } D 1 ≠ D 2 ≠ D 3 P(A i,≠) C = {A j,A k } D 1 ≠ D 2 ≠ D 3 Exploit approximate symmetries to enforce C 2 P o : Original MD-CSP One-dim constraints: {C 1,C 2,C 3,…,C n } P 1 : A set of reformulated CSPs One-dim constraints: {C 2,C 3,…,C n } Exploit approximate symmetries to enforce C 1

Constraint Systems Laboratory Selecting Domain Dimension 12/2/2015SARA Goal: Reduce branching factor –In example below, no card in domain has a shaded filling, thus, subproblems for Filling=s and F ≠ do not exist Filling ≡ e C = {F,S,C,N} Filling ≡ f D 1 =D 2 =D 3 c2c2 c3c3 c8c8 c9c9 c1c1 c4c4 c5c5 c6c6 c7c7 Filling eeeefffff F≠F≠ ✗ C = {S,C,N}, F ≡ e C = {S,C,N}, F ≡ f Domainc1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9  Number Color r g p Filling f e s Shape s o d D 1 =D 2 =D 3 c2c2 c3c3 c8c8 c9c9 c1c1 c4c4 c5c5 c6c6 c7c7 Our reformulation algorithm for Set –Uses ‘Domain Table’ & ‘Summary of Domain Table’ –Has 4 tests & 5 heuristics

Constraint Systems Laboratory Algorithms: Finding all Solutions 1.Brute-force search (BF) −3-nested for-loops generate all combinations, then test for solutions −Contradicts 40+ years of CP research & experience  −Does not scale (12 3 ∿ d n ) 2.Backtrack search (Basic Solver) –Symmetry breaking (lexicographic ordering) –Both forward-checking (equality) & back-checking (All-diff constraints) 3.Reformulation-based algorithm –Uses 2 data structures: ‘Domain Table’ & ‘Summary of Domain Table’ –Includes 5 selection heuristics –Open subproblems maintained in an agenda: room for heuristics (1Sol) Empirical tests: randomly selected ‘hands’ of 3 to 81 cards, results averaged over of 1,000 runs 12/2/2015SARA

Constraint Systems Laboratory Results 12/2/2015SARA Algorithm#Cards#Sol#CC#NV Time [msec] Brute Force BT Search Reformulation Brute Force BT Search Reformulation #CC,#NV: Reformulation dramatically reduces # of combinations tested CPU time reflects the cost of setting up the data structures for the CSP & search

Constraint Systems Laboratory Online Game gameofset.unl.edu Game running online Interface explaining the reformulation still in development Advertzmt: minesweeper.unl.edu & sudoku.unl.edu (CP-based) 12/2/2015SARA

Constraint Systems Laboratory Conclusions Contributions –A systematic approach to reformulation and ‘conditional’ symmetries –Applicability to real-world problems highly promising –A new toy problem for AI research & education Technical issues –Generalize heuristics for dimension selection and problem decomposition –Explore other types of interchangeability/symmetries –Extend definition of MD-CSP to allow unequal/all-diff domains Modeling lesson –CSP variables and values are often ‘objects’ with attributes –So far, we have integrated those attributes in the constraint definitions –Let’s rethink CSP modeling: Maybe multi-dimensional CSPs are more common than we thought they are.. 12/2/2015SARA