IJCAI 20091 Russian Doll Search with Tree Decomposition Martí Sànchez, David Allouche, Simon de Givry, and Thomas Schiex INRA Toulouse, FRANCE.

Slides:



Advertisements
Similar presentations
Hybrid BDD and All-SAT Method for Model Checking Orna Grumberg Joint work with Assaf Schuster and Avi Yadgar Technion – Israel Institute of Technology.
Advertisements

Non-Binary Constraint Satisfaction Toby Walsh Cork Constraint Computation Center.
Tree Clustering for Constraint Networks 1 Chris Reeson Advanced Constraint Processing Fall 2009 By Rina Dechter & Judea Pearl Artificial Intelligence,
Adopt Algorithm for Distributed Constraint Optimization
ALIMENTATION AGRICULTURE ENVIRONNEMENT Max-CSP solver competition 2008 toulbar2 Marti Sanchez 1, Sylvain Bouveret 2, Simon de Givry 1, Federico Heras 3,
Interactive Configuration
1 Constraint Satisfaction Problems A Quick Overview (based on AIMA book slides)
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.
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
Artificial Intelligence Constraint satisfaction problems Fall 2008 professor: Luigi Ceccaroni.
4/17/20151 Franc Brglez Raleigh, NC, USA Matthias F. Stallmann Raleigh, NC, USA Effective Bounding Techniques For Solving Unate and Binate Covering Problems.
Constraint Satisfaction problems (CSP)
Join-graph based cost-shifting Alexander Ihler, Natalia Flerova, Rina Dechter and Lars Otten University of California Irvine Introduction Mini-Bucket Elimination.
Constraint Optimization Presentation by Nathan Stender Chapter 13 of Constraint Processing by Rina Dechter 3/25/20131Constraint Optimization.
Optimal Rectangle Packing: A Meta-CSP Approach Chris Reeson Advanced Constraint Processing Fall 2009 By Michael D. Moffitt and Martha E. Pollack, AAAI.
Foundations of Constraint Processing More on Constraint Consistency 1 Foundations of Constraint Processing CSCE421/821, Spring
1 Consistencies for Ultra-Weak Solutions in Minimax Weighted CSPs Using the Duality Principle Arnaud Lallouet 1, Jimmy H.M. Lee 2, and Terrence W.K. Mak.
Introduction Combining two frameworks
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
1 Optimisation Although Constraint Logic Programming is somehow focussed in constraint satisfaction (closer to a “logical” view), constraint optimisation.
Foundations of Constraint Processing, Fall 2005 October 20, 2005Ordering heuristics1 Foundations of Constraint Processing CSCE421/821, Fall 2005:
Constraint Satisfaction Problems
Jean-Charles REGIN Michel RUEHER ILOG Sophia Antipolis Université de Nice – Sophia Antipolis A global constraint combining.
Michael Heusch - IntCP 2006 Modeling and solving of a radio antennas deployment support application with discrete and interval constraints.
Recovering Articulated Object Models from 3D Range Data Dragomir Anguelov Daphne Koller Hoi-Cheung Pang Praveen Srinivasan Sebastian Thrun Computer Science.
M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2.
Soft constraints. Classical (hard) Constraints Variables {X 1,…,X n }=X Variables {X 1,…,X n }=X Domains {D(X 1 ),…,D(X n )}=D Domains {D(X 1 ),…,D(X.
Branch and Bound Algorithm for Solving Integer Linear Programming
Chapter 5 Outline Formal definition of CSP CSP Examples
Distributed Scheduling. What is Distributed Scheduling? Scheduling: –A resource allocation problem –Often very complex set of constraints –Tied directly.
Distributed Constraint Optimization Michal Jakob Agent Technology Center, Dept. of Computer Science and Engineering, FEE, Czech Technical University A4M33MAS.
Building “ Problem Solving Engines ” for Combinatorial Optimization Toshi Ibaraki Kwansei Gakuin University (+ M. Yagiura, K. Nonobe and students, Kyoto.
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
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.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
“LOGISTICS MODELS” Andrés Weintraub P
An Introduction to Artificial Intelligence Lecture 5: Constraint Satisfaction Problems Ramin Halavati In which we see how treating.
William Lam March 20, 2013 (with slides from the IJCAI-09 tutorial on Combinatorial Optimization for Graphical Models) Discrete Optimization via Branch.
Join-graph based cost-shifting Alexander Ihler, Natalia Flerova, Rina Dechter and Lars Otten University of California Irvine Introduction Mini-Bucket Elimination.
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
1 Chapter 5 Branch-and-bound Framework and Its Applications.
Constraint Propagation CS121 – Winter Constraint Propagation2 Constraint Propagation … … is the process of determining how the possible values of.
Where are the hard problems?
The NP class. NP-completeness
Constraint Programming
A Global Constraint for Closed Frequent Itemset Mining
Hybrid BDD and All-SAT Method for Model Checking
Structure-Based Methods Foundations of Constraint Processing
Consistency Methods for Temporal Reasoning
A First Practical Algorithm for High Levels of Relational Consistency
Constraint Satisfaction Problems (CSPs)
Constraint Optimization And counting, and enumeration 275 class
Constraint Propagation
Chapter 6. Large Scale Optimization
More on Constraint Consistency
Structure-Based Methods Foundations of Constraint Processing
More on Constraint Consistency
Constraints and Search
CONSTRAINT GENERATION (BENDERS DECOMPOSITION)
Constraint satisfaction problems
Constraint Satisfaction Problems. A Quick Overview
Directional consistency Chapter 4
Constraint Satisfaction Problems
Constraint satisfaction problems
Structure-Based Methods Foundations of Constraint Processing
Chapter 6. Large Scale Optimization
Presentation transcript:

IJCAI Russian Doll Search with Tree Decomposition Martí Sànchez, David Allouche, Simon de Givry, and Thomas Schiex INRA Toulouse, FRANCE

IJCAI Real applications with a structure SPOT5 #509 (Constraints 4(3), 1999) langladeM7 sheep pedigree (Constraints 13(1), 2008) CELAR SCEN-07r (Constraints 4(1), 1999) Earth Observation Satellite Management Radio Link Frequency Assignment Mendelian Error Detection Tag SNP Selection HapMap chr01 r 2 ≥0.8 #14481

IJCAI Framework: Weighted CSP k(X,D,F,k) n –X={X 1,..., X n } n variables nd –D={D 1,..., D n } n finite domains of maximum size d m –F={f 1,…,f m }, a set of m cost functions f S with scope S, assigns a positive cost to any assignment of S f ∅ f ∅ problem lower bound (obtained by enforcing local consistency by Equivalence Preserving Transformations) –k –k, maximum cost and global upper bound Find an assignment A of all the variables which minimizes ∑ f S  F f S ( A[S] ) NP-hard problem Improve bounds computation compared to BTD (Jégou&Terrioux, ECAI 2004; de Givry et al., AAAI 2006)

IJCAI Soft 2-Coloring example A D BC E F G J I H K XiXi XjXj f ij

IJCAI Soft 2-Coloring example A D BC E F G J I H K 5 Optimal solution of cost 5

IJCAI C5 C4 C3 C2 C1 Tree Decomposition C3 C1 C4 C2 C5 A D BC E F G J I H K {D} {E,F} {D,I,J} The set of clusters covers the set of variables and the set of cost functions Separator = intersection between two connected clusters

IJCAI C4 C3 C2 C1 Search with Tree Decomposition C5 A D BC E F G J I H K The assignment of a separator disconnects the problem into two independent subproblems C3 C1 C4 C2 C5 {D} {E,F} {D,I,J}

IJCAI C4 C5 C3 C E G F D 01 A D BC E F G J I H K Search with Tree Decomposition K J I H P2 / {(D=red)} C3 C1 C4 C2 C5 P4 / {(D=red)} P2 / {(D=green)} P4 / {(D=green)} {D} {E,F} {D,I,J}

IJCAI Search with Tree Decomposition F G E D 0 P2 / {(D=red)} C4 C5 C3 C2 A D BC E F G J I H K

IJCAI Search with Tree Decomposition F G E D 0 Record the optimum of P2 / {(D=red)} LB P2 / {(D=red)} = 1 OPT P2 / {(D=red)} = true P2 / {(D=red)} k Assume a global upper bound k = 5. It may be useless to compute the optimum of P2 / {(D=red)}, only a lower bound is needed! C4 C5 C3 C2 A D BC E F G J I H K

IJCAI Backtrack bounded by Tree Decomposition F G E D 0 P2 / {(D=red)} k Assume a global upper bound k = 5. It may be useless to compute the optimum of P2, only a lower bound is needed! Add a local upper bound: k UB P2 / {(D=red)} = k – 3 – LB P4 / {(D=red)} k UB P2 / {(D=red)} = k – 3 – max ( f  C4 + f  C5, LB P4 / {(D=red)} ) Maintaining local consistencyRecorded during search C3 C1 C4 C2 C5 BTD C4 C5 C3 C2 A D BC E F G J I H K (Jégou & Terrioux, ECAI 2004) (de Givry et al., AAAI 2006)

IJCAI Russian Doll Search with Tree Decomposition k UB P2 / {(D=red)} = k – 3 – max ( f  C4 + f  C5, LB P4 / {(D=red)}, LB P4 RDS ) Found during searchObtained in preprocessing RDS-BTD lower bound is a maximum between Local Consistency Local Consistency Recorded lower bounds Recorded lower bounds RDS lower bounds RDS lower bounds –Pi RDS is a relaxation of Pi / A by removing separator variables and cost functions on them –For all i, solves Pi RDS in a bottom-up order using BTD exploiting RDS lb C3 C1 C4 C2 C5 The optimum of Pi RDS is a lower bound of Pi / A for any separator assignment A

IJCAI Russian Doll Search with Tree Decomposition A D BC E F G J I H K P3 RDS A D BC E F G J I H K P2 RDS A D BC E F G J I H K P5 RDS A D BC E F G J I H K P4 RDS P1=P1 RDS A D BC E F G J I H K Same complexities as BTD: Time: O(exp(w+1)) Space: O(exp(s)) s w = tree-width = largest cluster size –1, s = largest separator size LB P3 RDS =0 LB P2 RDS =1 LB P5 RDS =0 LB P4 RDS =1 LB P1 RDS =5 LB P3 / {(E=red),(F=green)} =1, …

IJCAI Related Work A D BC E F G J H K I C6 C2 C3 C5 C4 C11 C7 C8 C10 C9 C1 RDS (Verfaillie et al, AAAI 1996) C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11

IJCAI Related Work A D BC E F G J H K I Pseudo-Tree RDS (Larrosa et al, ECAI 2002) AND/OR graph search (Marinescu & Dechter, AAAI 2006) C1 C2 C3 C4 C5 C6 C7 C8 C9 C10 C11 C6 C2 C3 C5 C4 C11 C7 C8 C10 C9 C1

IJCAI Exploiting small separators only Merge clusters i and father(i) p if |sep i,father(i) | > p  Gives more freedom for the dynamic variable ordering heuristic C5 C4 C3 C2 C1 A D BC E F G J I H K C3 C1 C4 C2 C5 {D} {E,F} {D,I,J} p p = 2 C3 C1 C4 U C5 C2 {D} {E,F} C4 U C5 (Jégou et al., CP 2007)

IJCAI Exploiting small separators only A D BC E F G J H K I DFBB C1 p p = 0

IJCAI Tag SNP Selection Set covering problem with additional coverage quadratic criteria

IJCAI Tag SNP Selection ∞ 4 DFBB BTD RDS-BTD 25 largest instances from HapMap human chr01 (r 2 ≥ 0.5) 171 ≤ n/2 ≤ ≤ d ≤ 266 6% ≤ m ≤ 37% 14% ≤ w ≤ 23% Solved by toulbar2 toulbar2 v.0.8 with initial upper bound found by FESTA and with MCS tree decomposition Time limit: 2 hours p

IJCAI Radio Link Frequency Assignment CELAR SCEN-07r (Constraints 4(1), 1999)

IJCAI Radio Link Frequency Assignment Maximum Cardinality Search tree decomposition heuristic Root selection: largest (SCEN-06) / most costly (SCEN-07r) cluster Last-conflict variable ordering (Lecoutre et al., 20006) and dichotomic binary branching Closing 1 open problem by exploiting tree decompostion CELARndmkpwDFBBBTD RDS- BTD SCEN ∞∞ sec.221 sec. 316 sec. SCEN-07r (> 50 days) 6 days 4.5 days RECORDS : SCEN-07r p = 3 BTD  recorded LB (20 %) RDS-BTD  recorded LB (6.4 %) RECORDS : SCEN-06 p = ∞ BTD  5633 recorded LB RDS-BTD  7145 recorded LB

IJCAI Conclusion and perspectives RDS-BTDRDS-BTD generalizes DFBB, RDS, PT-RDS, BTD,… exploiting better bounds Needs only linear extra space But there are not obtained in polynomial time small separatorsRestriction to small separators gives more robustness Give more freedom to dynamic variable ordering inside clusters Perspectives Produce any-time lower bounds (Iterative Deepening) p Dedicated heuristics to find small separators, p auto-tuning toulbar2 toulbar2 C++ solver version 0.8 ( )

IJCAI Enforcing local consistency by Equivalence Preserving Transformations AB f  =0 1 1 Cost extension from a unary to a binary cost function AB f  =0 Cost projection from a binary to a unary cost function AB 2 f  = AB f  =1 2 Cost projection from a unary cost function to f to f 

IJCAI A1 A2 B1 B2 T|F a c d b b a D C B AE Weighted CSP model B2Representativity b0 a10 c100 d0 A1B2Constraint2 False a .. 0 B1Tagsnp TrueM False0 A1A2Constraint1 Falsea  Truea0 Falseb0.. 0 A1B1Dispersion True 90 TrueFalse0 True0 False 0 a a