AI Planning
AI Planning
Planning
• The task of coming up with a sequence of actions
that will achieve a goal is called planning. For
classical planning we will consider only
environments that are fully observable,
deterministic, finite, static and discrete. These are
called classical planning environments.
• Planning problems can be represented as states,
actions and goals.
• Representation of states:- planners decompose
the world into logical conditions and represent a
state as a conjunction of positive literals.
Planning
• Representation of goals:- A goal is a partially
specified state, represented as a conjunction
of positive literals.
• Representation of actions:- An action is
specified in terms of the preconditions that
must hold before it can be executed and the
effects that ensure when it is executed.
• A solution for a planning problem is an action
sequence that when executed in the initial
state, result in a state that satisfies the goal.
Planning
Example: The blocks world
• The blocks world consists of a set of cube shaped
blocks sitting on a table.
• A robot arm can pick up only one block at a time
and move it to another position , either on the
table or on top of another block.
• Suppose the goal is to get block A on B and block
B on C .
A
A B C
B
Initial state C
Final/goal state
Example: The blocks world
Right Right
Right Sock Left Sock
Sock
Left Sock Sock
Right
Left Sock Left Sock
Sock
Left Sock On Right Sock On ……
Right
Left Shoe Right Left Shoe
Shoe Left Shoe
Shoe
Right Right
Left Shoe
Left Shoe On Right Shoe On Shoe Shoe
Finish
Finish Finish Finish
• In this example, the partial order solution
corresponds to six possible total order plans;
each of these is called a linearization of the
partial order plan.