Download presentation

Presentation is loading. Please wait.

Published byCarmen Eatherton Modified over 3 years ago

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

2
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

3
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

4
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 !

5
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...

6
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

7
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

8
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

9
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

10
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

11
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

12
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

13
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

14
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

Similar presentations

OK

Planning: Wrap up CSP Planning. Logic: Intro CPSC 322 – Planning 3 Textbook §8.4, §5.1 March 2, 2011.

Planning: Wrap up CSP Planning. Logic: Intro CPSC 322 – Planning 3 Textbook §8.4, §5.1 March 2, 2011.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To make this website work, we log user data and share it with processors. To use this website, you must agree to our Privacy Policy, including cookie policy.

Ads by Google