Professional Documents
Culture Documents
Classical Planning - Final - Notes
Classical Planning - Final - Notes
AI System 1 / 11
State-space Search
2 / 11
Classical Planning
3 / 11
Planning
4 / 11
Planning
4 / 11
Planning
4 / 11
Actions
5 / 11
Actions
Coffee
Shop
(cs) Sam's
Office
(off )
Mail Lab
Room (lab)
(mr )
Actions:
Features:
mc – move clockwise
RLoc – Rob’s location
mcc – move counterclockwise
RHC – Rob has coffee
puc – pickup coffee
SWC – Sam wants coffee
dc – deliver coffee
MW – Mail is waiting
pum – pickup mail
RHM – Rob has mail
dm – deliver mail
6 / 11
Explicit State-space Representation
7 / 11
Explicit State-space Representation
7 / 11
STRIPS Representation
8 / 11
STRIPS Representation
8 / 11
STRIPS Representation
8 / 11
Example STRIPS representation
9 / 11
Example STRIPS representation
9 / 11
Example STRIPS representation
9 / 11
Example STRIPS representation
Given:
A description of the effects and preconditions of the actions
A description of the initial state
A goal to achieve
find a sequence of actions that is possible and will result in a state
satisfying the goal.
10 / 11
Deterministic Planning
Given:
A description of the effects and preconditions of the actions
A description of the initial state
A goal to achieve
find a sequence of actions that is possible and will result in a state
satisfying the goal.
Actions
〈cs, ¬rhc, swc, mw, ¬rhm〉
mc: move clockwise puc mcc
mcc: move counterclockwise mc
nm: no move 〈cs, rhc, swc, mw, ¬rhm〉 〈mr, ¬rhc, swc, mw, ¬rhm〉
puc: pick up coffee
dc: deliver coffee 〈off, ¬rhc, swc, mw, ¬rhm〉
mcc
pum: pick up mail mc mcc mc
dm: deliver mail 〈cs, ¬rhc, swc, mw, ¬rhm〉
Search problem:
Nodes are subgoals
Search problem:
Nodes are subgoals
There is an arc ⟨g,g J⟩ labeled with action A if
► A achieves one of the assignments in g
Search problem:
Nodes are subgoals
There is an arc ⟨g,g J⟩ labeled with action A if
► A achieves one of the assignments in g
► gJ is a proposition that must be true immediately before
action A so that g is true immediately after.
Search problem:
Nodes are subgoals
There is an arc ⟨g,g J⟩ labeled with action A if
► A achieves one of the assignments in g
► gJ is a proposition that must be true immediately before
action A so that g is true immediately after.
The start node is the goal to be achieved.
Search problem:
Nodes are subgoals
There is an arc ⟨g,g J⟩ labeled with action A if
► A achieves one of the assignments in g
► gJ is a proposition that must be true immediately before
action A so that g is true immediately after.
The start node is the goal to be achieved.
goal(g ) is true if g is a proposition that is true of the
initial state.
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
[X 1 = v1 ,...,X n = vn ]
Locations:
Actions [¬ swc] cs: coffee shop Feature values
mc: move clockwise off: office rhc: robot has coffee
mcc: move counterclockwise dc lab: laboratory swc: Sam wants coffee
puc: pick up coffee mr: mail room mw: mail waiting
dc: deliver coffee [off,rhc] rhm: robot has mail
pum: pick up mail
dm: deliver mail mc mcc
[cs,rhc] [lab,rhc]
mc mcc mcc
puc mc
[mr,rhc] [off,rhc] [mr,rhc]
[cs] [off,rhc]
Action0 Action1
SWC0 SWC1 SWC2
MW 0 MW 1 MW 2
/ { pum, dm}
RHMi +1 = RHMi if Acti ∈
violated when
/ { pum, dm}
RHMi +1 = RHMi if Acti ∈
violated when
RHMi +1 /= RHMi ∧Acti /= pum ∧Acti /= dm