Professional Documents
Culture Documents
Sussman Anamoly &conditional Plan
Sussman Anamoly &conditional Plan
Sussman Anamoly &conditional Plan
Lecture 17
Planning
Milos Hauskrecht
milos@cs.pitt.edu
5329 Sennott Square
Planning
Planning problem:
• find a sequence of actions that achieves some goal
• an instance of a search problem
• the state description is typically very complex and relies on a
logic-based representation
1
State-space search
• Forward and backward state-space planning approaches:
– Work with strictly linear sequences of actions
• Disadvantages:
– They cannot take advantage of the problem
decompositions in which the goal we want to reach
consists of a set of independent or nearly independent sub-
goals
– Action sequences cannot be built from the middle
– No mechanism to represent least commitment in terms of
the action ordering
2
Sussman’s anomaly.
• An example from the blocks world in which the divide and
conquer fails due to interacting goals
A
C B
A B C
On ( A, B )
On ( B , C )
Sussman’s anomaly
1. Assume we want to satisfy On ( A, B ) first
C A
A B B C
Initial state
3
Sussman’s anomaly
1. Assume we want to satisfy On ( A, B ) first
C A
A B B C
Initial state
4
State-space vs. plan-space search
State-space search
STRIPS
operator
s1
s0
State s2
(set of formulas)
Plan-space search
Finish Plan transformation
operators
Start
Incomplete
(partial) plan
CS 1571 Intro to AI M. Hauskrecht
5
Partial-order planners (POP)
• also called Non-linear planners
• Use STRIPS operators
Goal
Start
C
Start A B
CS 1571 Intro to AI M. Hauskrecht
6
Partial order planning. Start and finish.
Finish A
B
On(A,B) On(B,C)
C
Goal
Start
C
Start A B
CS 1571 Intro to AI M. Hauskrecht
Goal
Clear(y) On(A,B)
We want to satisfy an open
Move(A,y,B) condition
Clear(A) On(A,y) Clear(B)
Always select an operator
that helps to satisfy one of the
open conditions
Start
C
Start A B
CS 1571 Intro to AI M. Hauskrecht
7
Partial order planning. Add link.
A
Finish
B
On(A,B) On(B,C) C
Goal
Clear(y) On(A,B)
Move(A,y,B)
Start C
Start A B
CS 1571 Intro to AI M. Hauskrecht
Goal
Clear(y) On(A,B)
Move(A,y,B)
Start C
Start A B
CS 1571 Intro to AI M. Hauskrecht
8
Partial order planning. Add link.
A
Finish B
On(A,B) On(B,C) C
Goal
Clear(Fl) On(A,B)
Move(A,Fl,B)
Move(A,Fl,B) Move(B,y,C)
9
Partial order planning. Add links. A
B
Finish
C
On(A,B) On(B,C)
Goal
Move(A,Fl,B) Move(B,Fl,C)
Move(A,Fl,B) Move(B,Fl,C)
Deletes Clear(B)
Deletes Clear(B)
Aisis stacked
A now stacked
on B on B
10
Partial order planning. Order operators. A
B
Finish
C
On(A,B) On(B,C)
Goal
Move(A,Fl,B) Move(B,Fl,C)
Move(B,Fl,C) comes
before Move(A,Fl,B)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(u,v)
Move(u,A,v)
11
Partial order planning. Add links. A
Finish B
C
On(A,B) On(B,C)
Goal
Clear(Fl) On(A,B) Clear(Fl) On(B,C)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(C,Fl)
Move(C,A,Fl)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(C,Fl)
12
Partial order planning. Order operators. A
Finish B
C
On(A,B) On(B,C)
Goal
Clear(Fl) On(A,B) Clear(Fl) On(B,C)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(C,Fl)
Move(C,A,Fl)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(C,Fl)
Move(C,A,Fl)
13
Consistent POP plan. A
Finish B
C
On(A,B) On(B,C)
Goal
Clear(Fl) On(A,B) Clear(Fl) On(B,C)
Move(A,Fl,B) Move(B,Fl,C)
Clear(A) On(C,Fl)
Move(C,A,Fl)
Finish Finish
Move(A,Fl,B)
Move(A,Fl,B) Move(B,Fl,C)
Move(B,Fl,C)
Move(C,A,Fl)
Move(C,A,Fl)
Start
Start
14
Partial order planning.
• Remember we search the space of partial plans
Finish
Start
Incomplete
(partial) plan
Hierarchical planners
Extension of STRIPS planners.
• Example planner: ABSTRIPS.
Idea:
• Assign a criticality level to each conjunct in preconditions list
of the operator
• Planning process refines the plan gradually based on criticality
threshold, starting from the highest criticality value:
– Develop the plan ignoring preconditions of criticality less
than the criticality threshold value (assume that
preconditions for lower criticality levels are true)
– Lower the threshold value by one and repeat previous step
15
Towers of Hanoi
Hierarchical planning
Assume:
the largest disk – criticality level 2
the medium disk – criticality level 1
the smallest disk – criticality level 0
Level 1
Level 2
16
Planning with incomplete information
Some conditions relevant for planning can be:
– true, false or unknown
Example:
• Robot and the block is in Room 1
• Goal: get the block to Room 4
• Problem: The door between Room1 and 4 can be closed
Room4 Room3 Room4 Room3
17
Conditional planners
• Are capable to create conditional plans that cover all possible
situations (contingencies) – also called contingency planners
• Plan choices are applied when the missing information
becomes available
• Missing information can be sought actively through actions
– Sensing actions
Sensing actions
Example:
CheckDoor(d): checks the door d
Preconditions: Door(d,x,y) – one way door between x and y
& At(Robot,x)
Effect: (Closed(d) v Closed(d)) - one will become true
18
Conditional plans
Sensing actions and conditions incorporated within the plan:
Go (R1,R4) Drop(B)
F
19