Title: An example of hierarchical planning
1An example of hierarchical planning(1)
planning a sequence of actions- N.B. not yet
linguistic!
2A goal to be achieved by planning
- Task
- Ed wants to be in New York
- Formalization as a plan goal
- be-at (Ed, New York)
- The algorithm Top-down hierarchical planning
- Search our library of plan operators for ways of
achieving the goal - For an operator to be usable, the preconditions
much match the state of the world - For an operator to be useful, the effect must
leave us nearer to achieving our goal than we
were before!
3Do we have a plan operator with a useful effect?
be-at (Ed, New York)
4Our PLAN OPERATORS
?
5(No Transcript)
6(No Transcript)
7be-at (Ed, New York)
8be-at (Ed, New York)
9be-at (Ed, New York)
10Do we have a plan operator with a useful effect?
be-at (Ed, New York)
11Our PLAN OPERATORS
cost?time?
12This one looks promising, the planning process
decides to take a closer look
13We have a useful plan operator so we
instantiate the operator
Task goal be-at (Ed, NY)
14(No Transcript)
15(No Transcript)
16ACTOR Ed TRAIN?train DESTINATION NY
17Testing phase
- Do the preconditions hold?
- If not, we have to make them hold by planning
further before we can carry out the action and
get the desired effect - When the preconditions hold, we can achieve the
effect by adding the actions in the body into our
plan. This is the hierarchical expansion of the
plan tree.
18Do the preconditions hold?
ACTOR Ed TRAIN?train DESTINATION NY
19The preconditions do not yet match the world
unfortunately
PRECONDITIONS
WORLD
Destination (?train, NY) On-board (Ed, ?train)
Be-at (Ed, Washington)
20We set up some new goals (called posting) and
see if we can plan for them to be achieved
PRECONDITIONS
GOALS
Destination (?train, NY) On-board (Ed, ?train)
- Lets us assume that there are lots of trains to
NY from Washington, so the first goal can be
filled in directly (be satisfied) by looking in
a database, e.g. - destination (9am-train, NY)
- destination (10am-train ,NY)
- destination (11am-train, NY).
21We set up some new goals (called posting) and
see if we can plan for them to be achieved
PRECONDITIONS
GOALS
Destination (?train, NY) On-board (Ed, ?train)
- The second goal takes more work. We have to look
in our plan library for operators with an effect
that is relevant for - On-board (Ed, 10am-train)
22Do we have a plan operator with a useful effect?
On-board (Ed, 10am-train)
23On-board (Ed, 10am-train)
?
24On-board (Ed, 10am-train)
25On-board (Ed, 10am-train)
26On-board (Ed, 10am-train)
This one looks promising, the planning process
decides to take a closer look
27(No Transcript)
28(No Transcript)
29ACTOR Ed TRAIN 10am-train
30Do the preconditions hold?
ACTOR Ed TRAIN10-am-train
31The preconditions do not yet match the world
unfortunately
PRECONDITIONS
WORLD
Be-at (Ed, 10am-train) Have (Ed, ticket
(10am-train))
Be-at (Ed, Washington)
Further planning as above
32Resulting in a final complete hierarchical plan
33A complete plan
- is a hierarchically organized sequence of actions
- carrying out the actions in sequence will
guarantee that the preconditions for achieving
and subsequent effect are met in time - when all the sub-actions of a more abstract
action have been performed, the abstract action
has also been achieved and the corresponding
effect also
34COMPLETE SUMMARY OF THE PLAN and PLAN LIBRARY
(Bateman Zock, 2003)