Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.

Slides:



Advertisements
Similar presentations
Data-Flow Analysis II CS 671 March 13, CS 671 – Spring Data-Flow Analysis Gather conservative, approximate information about what a program.
Advertisements

Graphplan. Automated Planning: Introduction and Overview 2 The Dock-Worker Robots (DWR) Domain informal description: – harbour with several locations.
Interactive Configuration
Projection Global Consistency: Application in AI Planning Pavel Surynek Charles University, Prague Czech Republic.
CLASSICAL PLANNING What is planning ?  Planning is an AI approach to control  It is deliberation about actions  Key ideas  We have a model of the.
1 CMSC 471 Fall 2002 Class #6 – Wednesday, September 18.
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:
PROBLEM SOLVING AND SEARCH
ICS-271:Notes 5: 1 Lecture 5: Constraint Satisfaction Problems ICS 271 Fall 2008.
Maintaining Arc-consistency over Mutex Relations in Planning Graphs during Search Pavel Surynek Roman Barták Charles University, Prague Czech Republic.
1 Graphplan José Luis Ambite * [* based in part on slides by Jim Blythe and Dan Weld]
Graph-based Planning Brian C. Williams Sept. 25 th & 30 th, J/6.834J.
Abstract Answer Set Solver. Todolist Print the rules of Fig 1.
Planning Graphs * Based on slides by Alan Fern, Berthe Choueiry and Sungwook Yoon.
For Monday Finish chapter 12 Homework: –Chapter 13, exercises 8 and 15.
Dynamic Bayesian Networks (DBNs)
Best-First Search: Agendas
An Improved Algorithm for Maintaining Arc Consistency in Dynamic Constraint Satisfaction Problems Pavel Surynek Czech Technical University Prague
CPSC 322, Lecture 4Slide 1 Search: Intro Computer Science cpsc322, Lecture 4 (Textbook Chpt ) January, 12, 2009.
CPSC 322, Lecture 18Slide 1 Planning: Heuristics and CSP Planning Computer Science cpsc322, Lecture 18 (Textbook Chpt 8) February, 12, 2010.
SOCS 1 GamePlan: AN ADVERSARIAL PLANER IN MULTI-AGENT SYSTEM (A Preliminary Report) Wenjin Lue and Kostas Stathis City University, London Dagstuhl, 26th.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Circuit Retiming with Interconnect Delay CUHK CSE CAD Group Meeting One Evangeline Young Aug 19, 2003.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
Planning: Part 3 Planning Graphs COMP151 April 4, 2007.
Extending Graphplan to handle Resources Presenter: Pham Van Cuong Department of Computer Science New Mexico State University.
Constraint Satisfaction Problems
Constraint Propagation (Where a better exploitation of the constraints further reduces the need to make decisions) R&N: Chap. 5 + Chap. 24, p
Planning II CSE 473. © Daniel S. Weld 2 Logistics Tournament! PS3 – later today Non programming exercises Programming component: (mini project) SPAM detection.
CS121 Heuristic Search Planning CSPs Adversarial Search Probabilistic Reasoning Probabilistic Belief Learning.
1 Planning Chapters 11 and 12 Thanks: Professor Dan Weld, University of Washington.
Planning II CSE 573. © Daniel S. Weld 2 Logistics Reading for Wed Ch 18 thru 18.3 Office Hours No Office Hour Today.
Applying Constraint Satisfaction Techniques to AI Planning Problems Daniel Buettner Constraint Systems Laboratory Department of Computer Science and Engineering.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Planning: Wrap up CSP Planning. Logic: Intro CPSC 322 – Planning 3 Textbook §8.4, §5.1 March 2, 2011.
Compact Representations of Cooperative Path-Finding as SAT Based on Matchings in Bipartite Graphs Pavel Surynek presented by Filip Dvořák Faculty of Mathematics.
Tractable Class of a Problem of Goal Satisfaction in Mutual Exclusion Network Pavel Surynek Faculty of Mathematics and Physics Charles University, Prague.
Logical Agents Logic Propositional Logic Summary
Conformant Probabilistic Planning via CSPs ICAPS-2003 Nathanael Hyafil & Fahiem Bacchus University of Toronto.
AI Lecture 17 Planning Noémie Elhadad (substituting for Prof. McKeown)
Domain-Dependent View of Multiple Robots Path Planning Pavel Surynek Charles University, Prague Czech Republic.
Robust Planning using Constraint Satisfaction Techniques Daniel Buettner and Berthe Y. Choueiry Constraint Systems Laboratory Department of Computer Science.
© Daniel S. Weld 1 Logistics Travel Wed class led by Mausam Week’s reading R&N ch17 Project meetings.
Making Path-Consistency Stronger for SAT Pavel Surynek Faculty of Mathematics and Physics Charles University in Prague Czech Republic.
Automated Planning and Decision Making Prof. Ronen Brafman Automated Planning and Decision Making Graphplan Based on slides by: Ambite, Blyth and.
Graphplan CSE 574 April 4, 2003 Dan Weld. Schedule BASICS Intro Graphplan SATplan State-space Refinement SPEEDUP EBL & DDB Heuristic Gen TEMPORAL Partial-O.
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.
Constraint Satisfaction Problems/Programming ZUI 2012/2013.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Heuristic Search Planners. 2 USC INFORMATION SCIENCES INSTITUTE Planning as heuristic search Use standard search techniques, e.g. A*, best-first, hill-climbing.
Planning as Satisfiability
Planning: Forward Planning and CSP Planning
Temporal Graphplan David E. Smith & Dan Weld.
Review for the Midterm Exam
Planning: Heuristics and CSP Planning
Planning: Heuristics and CSP Planning
Class #17 – Thursday, October 27
Graph-based Planning Slides based on material from: Prof. Maria Fox
Graphplan/ SATPlan Chapter
Planning: Heuristics and CSP Planning
Class #19 – Monday, November 3
Chapter 6 Planning-Graph Techniques
Graphplan/ SATPlan Chapter
Graphplan/ SATPlan Chapter
GraphPlan Jim Blythe.
An Introduction to Planning Graph
Graph-based Planning Slides based on material from: Prof. Maria Fox
[* based in part on slides by Jim Blythe and Dan Weld]
Presentation transcript:

Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic

Outline of the presentation  Brief introduction to AI planning  World states reachability analysis (Planning graphs and Graphplan)  Graphplan and constraints  Singleton arc-consistency in Graphplan  Revised algorithm for state reachability  Conclusions CSCLP 2006Pavel Surynek

AI Planning Problem  a set of actions of the form (name; preconditions; effects) example: action that moves robot from A to B (move-robot-AB; prec={at(robot, A)}; effects={at(robot, B),  at(robot,A})  an initial world state is a set of atoms example: {at(robot_1,A); at(robot_2,C),...}  a goal is a set of literals example: {at(robot_1,B);  at(robot_2,C),...} CSCLP 2006Pavel Surynek

Solving of the planning problem  solution = sequence of actions transforming the initial state into a state satisfying the goal example:  forward/backward search algorithms evolve the initial/goal world state using actions systematically try alternative actions (backtracking)  real life problem  high branching factor  techniques for search space reductions state reachability analysis using planning graphs CSCLP 2006Pavel Surynek Extremely large search space !

State reachability: planning tree CSCLP 2006Pavel Surynek Initial world state Action applicable to initial state Resulting state after application of the action Search tree States reachable by one step States reachable by two steps Unmanageable size  cannot be stored in memory  expand the tree until a goal state satisfying goal is reached... s0 a11 a12 a1i s11s12 s1i a21 a2j s21 s2j...

State reachability: planning graph CSCLP 2006Pavel Surynek  build an approximation of the search tree lot of information is lost (several sets are represented by their union)  ...   s0 a11 a12 a1i s11s12 s1i a21 a2j s21 s2j...   ...  Initial proposition layer = set of atoms in the initial state Action layer = a set of actions applicable to previous proposition layer Proposition layer = set of all the positive effects of actions in the previous action layer

State reachability: planning graph CSCLP 2006Pavel Surynek  this structure fits into memory every proposition knows its origin in the previous action layer every action knows its precondition in the previous proposition layer Action layer = a set of actions applicable to previous proposition layer Proposition layer = set of all the positive effects of actions in the previous action layer... p01 p02... p0l a11 a12... a1i p11 p12... p1i a21 a22... a2j p21 p22... p1j Preconditions of a given action What actions produces a given proposition (atom) Initial proposition layer = set of atoms in the initial state

State reachability: mutex relations  associate a set of mutexes with each layer forbids pairs of actions or atoms to be used at the same time (action is not applicable over mutex) make the planning graph more accurate  two types of mutexes: action and propositional a pair of actions {a1,a2} is mutex (action mutex) iff  a1 and a2 are dependent = a1 destroys preconditions or positive effects of a2 or vice versa or  preconditions of a1 and a2 are mutex in the previous layer a pair of atoms {p1,p2} is mutex (propositional) iff  every pair of actions producing p1 and p2 are mutex in the previous proposition layer CSCLP 2006Pavel Surynek

Graphplan and constraints  Graphplan algorithm works in two alternating phases expands (add layers) the planning graph until the last proposition layer satisfies the goal condition tries to extract a valid plan (backtracking) from the planning graph, if unsuccessful continues with the former phase (planning graph is expanded again)  Planning graph can be modeled using constraints consistency techniques  more accurate approximation of the state reachability CSCLP 2006Pavel Surynek

State variable representation  instead of saying that something is true or false say: a certain property takes a certain value example: location(robot)=A  change actions and goals according to the above scheme: example of an action with state variables: (move-robot-AB; prec={location(robot)=A)}; effects={location(robot)=B}) example of a goal with state variables: {location(robot_1)=B; location(robot_2)≠C} CSCLP 2006Pavel Surynek

Constraint model for plan-graph  construct the model layer by layer  introduce a variable for every property and its value the domain contains all the actions that has assignment property=value as its positive effect example: a(location(robot)=B)  {move-robot-AB, move-robot-CB,...}  forbid every pair of assignments that are mutex mark them as incompatible within a binary constraint between corresponding variables CSCLP 2006Pavel Surynek

Consistency in the model  maintain singleton arc-consistency in the model deduces more information than the standard Graphplan  more accurate reach. approximation CSCLP 2006Pavel Surynek Domain of variable a(Z=z 3 ) a 11 a 21 a(X=x 1 ) a 12 a 22 a(Y=y 2 ) a 13 a 23 a(Z=z 3 ) Variable representing assignment Z=z 3 Assignment a(Y=y 2 )=a 22 & & a(Z=z 3 )=a 13 is not allowed No mutex between any of X=x1; Y=y2 and Z=z3 Consider an action with preconditions X=x1; Y=y2; Z=z3

Revised plan-graph expansion ExpandModel(M,m) {M is the constraint model of size m} 1 let Gm=(Vm,Em) 2 Vm  Ø, Em  Ø 3 for each action b=(precond(b),effect(b)) do 4 let precond(b)=((Fj1=dk1);...;(Fjl=dkl) 5 c=(a(Fj1,dk1)≠  ) &...& a(Fjl,dkl)≠  ) 6 if M  {c} is singleton arc-consistent then 7 add a vertex (b,Fj,dk) to Vm for 8 every (Fj,dk)  effect(b) 9 for each pair of vertexes (ai1,Fj1,dkl);(ai2,Fj2,dk2)  Vm 10 where ai1 and ai2 are dependent do 11 add an edge {(ai1,Fj1,dkl);(ai2,Fj2,dk2)} to Em 12 extend the model M according to the graph Gm=(Vm,Em) 13 perform the mutex propagation in the model CSCLP 2006Pavel Surynek Consistency check is done before an action is included into the planning graph ExpandModel(M,m) {M is the constraint model of size m} 1 let Gm=(Vm,Em) 2 Vm  Ø, Em  Ø 3 for each action b=(precond(b),effect(b)) do 4 let precond(b)=((Fj1=dk1);...;(Fjl=dkl) 5 c=(a(Fj1,dk1)≠  ) &...& a(Fjl,dkl)≠  ) 6 if M  {c} is singleton arc-consistent then 7 add a vertex (b,Fj,dk) to Vm for 8 every (Fj,dk)  effect(b) 9 for each pair of vertexes (ai1,Fj1,dkl);(ai2,Fj2,dk2)  Vm 10 where ai1 and ai2 are dependent do 11 add an edge {(ai1,Fj1,dkl);(ai2,Fj2,dk2)} to Em 12 extend the model M according to the graph Gm=(Vm,Em) 13 perform the mutex propagation in the model

Conclusions and future works  our contribution revised planning graph expansion  planning graph expressed as a CSP singleton arc-consitency is maintained within the planning graph CSP model more accurate reachability approximation  reduces number of plan extraction phases which is the major time consumer  future works implementation, experimental evaluation and improvements CSCLP 2006Pavel Surynek