Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• Given:
– A characterization of an Initial State
– A characterization of a (set of) Goal State(s)
– A characterization of p
possible actions
• Synthesize:
– A sequence of actions that when executed in the Initial State transitions the
world
ld to a G
Goall S
State
A1 Aj Ak Am
Initial Goal
State State
Applications
Military Logistics Robots
Games
Autonomous
Manufacturing Spacecraft
Iceblox Sokoban
Problem reduction
Tasks (activities) rather than goals
Methods to decompose tasks into subtasks
Enforce constraints
» E.g., taxi not good for long distances
Backtrack if necessary
travel(UMD, LAAS)
HTN Planning
g g
get-ticket(BWI,
( , TLS)) gget-ticket(IAD,
( , TLS))
go-to-travel-web-site go-to-travel-web-site
find-flights(BWI,TLS) find-flights(IAD,TLS)
buy-ticket(IAD,TLS)
Problem reduction BACKTRACK
travel(UMD, IAD)
Tasks (activities) rather than goals get-taxi
ride(UMD, IAD)
Methods to decompose tasks into subtasks
pay-driver
pay driver
Enforce constraints
travel(TLS, LAAS)
» E.g., taxi not good for long distances
gget-taxi
Backtrack if necessary ride(TLS,Toulouse)
pay-driver
Dana Nau: Lecture slides for Automated Planning
25
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: http://creativecommons.org/licenses/by-nc-sa/2.0/
HTN Planning
HTN planners may be domain-specific
Or they may be domain-configurable
Domain-independent planning engine
Domain description that defines not only the operators, but
also the methods
Problem description
» domain description,
p , initial state,, initial task network
Task: travel(x,y)
buy-ticket (a(x), a(y)) travel (x, a(x)) fly (a(x), a(y)) travel (a(y), y)
air-travel(x,y)
task: travel(x y)
travel(x,y)
precond: long-distance(x,y)
subtasks: buy-ticket(a(x), a(y)), travel(x,a(x)), fly(a(x), a(y)),
travel(a(y),y)
Dana Nau: Lecture slides for Automated Planning
28
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: http://creativecommons.org/licenses/by-nc-sa/2.0/
Methods (Continued)
Partiallyy ordered method: a 4-tuple
p
m = (name(m), task(m), precond(m), subtasks(m))
name(m): an expression of the form n(x1,…,xn)
» x1,…,xxn are parameters - variable symbols
travel(x,y)
task(m): a nonprimitive task
pprecond(m):
( ) preconditions
p (literals)
( ) air-travel(x,y)
( ,y)
subtasks(m): a partially ordered
set of tasks {t1, …, tk} long-distance(x,y)
buy-ticket (a(x), a(y)) travel (x, a(x)) fly (a(x), a(y)) travel (a(y), y)
air-travel(x,y)
task: travel(x y)
travel(x,y)
precond: long-distance(x,y)
network: u1=buy-ticket(a(x),a(y)), u2= travel(x,a(x)), u3= fly(a(x), a(y))
u4= travel(a(y),y), {(u1,u3), (u2,u3), (u3 ,u4)}
Dana Nau: Lecture slides for Automated Planning
29
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License: http://creativecommons.org/licenses/by-nc-sa/2.0/
Domains, Problems, Solutions
STN planning domain: methods, operators
STN planning problem: methods, operators, initial state, task list
Total-order STN planning domain and planning problem:
Same as above except that
all methods are totally ordered nonprimitive
p task
method instance
Solution: anyy executable pplan
that can be generated by precond
recursively applying
primitive task primitive task
methods
th d to
t
non-primitive tasks operator instance operator instance
operators
p to
primitive tasks s0 precond effects s1 precond effects s2
then move
them from
r to q
state (
(s,a)) ; task list T=(t
( 2, …))
TFD ggoes
down and task tm … task tn
forward
to tasks
s0 op1 s1 op2 s2 … Si–1 opi …
get-both(p,q)
get(p) get(q)
w={ t1 ,t2,…}
method instance m
w={ t1 ,t2,…}
method instance m
w={ t1 ,t2,…}
method instance m
w={ t1 ,t2,…}
method instance m
• Required
– Chapter 15 in B&L Textbook
– Chapter 11 of Automated Planning by Ghallab, Nau and Traverso
• Optional
p
– Jeff Orkin: Three States and a Plan: The AI of F.E.A.R. Proceedings
of the Game Developer's Conference (GDC). [paper | slides]
– Olivier Bartheye and Eric Jacopin: A PDDL-Based Planning Architecture
to Support Arcade Game Playing