Académique Documents
Professionnel Documents
Culture Documents
Planning graph
Alban Grastien
alban.grastien@rsise.anu.edu.au
Principle of the planning graph
Level A
0
contains all the actions that could occur in state
S
0
.
Level S
1
contains all the literals that could result from
picking any subset of actions in A
0
.
Actions
Literals
h =
Possible heuristics
admissible
admissible
Example planning graph
Eaten(Cake) Eaten(Cake) Eaten(Cake)
Eaten(Cake) Eaten(Cake)
Have(Cake) Have(Cake) Have(Cake)
Have(Cake) Have(Cake)
S
0
A
0
S
1
A
1
S
2
Eat(Cake) Eat(Cake)
Bake(Cake)
GRAPHPLAN
function GRAPHPLAN(Problem)
graph INITIAL-PLANNING-GRAPH(Problem)
goals GOALS(Problem)
loop
if goals all non-mutex in last level of graph then
solution
EXTRACT-SOLUTION(graph, goals, LENGTH(graph))
if solution = failure then
return solution
else if NO-SOLUTION-POSSIBLE(graph) then
return failure
end if
end if
graph EXPAND-GRAPH(graph, problem)
end loop