11 Classical Planning
11 Classical Planning
Introduction
Problem-solving agents can find sequences of actions that result in a
goal state
But they deal with atomic states and require heuristics
Hybrid propositional logical agent can find plans without domain
specific heuristics
But it relies on ground (variable-free) propositional inference
Factored representation – State of the world is represented by a
collection of variables using PDDL (Planning Domain Definition
Language)
PDDL
State – Represented as a conjunction of fluents that are ground
functionless atoms
Eg. At(Truck1, Melbourne)  At(Truck2,Sydney)
Database semantics is used – Any fluents not mentioned is false
States may also be represented as a set of fluents which can be manipulated
with set operations
Actions – Set of action schemas that implicitly define the ACTIONS(s)
and RESULT(s,a)
Classical planning focuses on problems where most actions leave most things
unchanged
PDDL
Action Schema – can represent a set of ground (variable-free)
actions.
Eg. Flying a plane from one place to another
Solution:
Example: The Spare Tire Problem
Solution:
The Blocks World
Algorithms for Planning as State-
Space Search
Forward Search
Backward Search
Forward State-Space Search
From the earliest days, forward search was thought to be too
inefficient to be practical
It is prone to exploring irrelevant actions
State Spaces are large (Eg. Air cargo problem with 10 airports, 5
planes and 20 pieces of cargo in each airport)
Domain-independent heuristics can be derived which makes forward
search feasible
Backward relevant-states search
We start at the goal and apply actions backward until we find a
sequence of steps that reached initial state
PDDL representation makes it easy to regress actions
Given a ground goal description g and a ground action a, the
regression from g over a gives us a state description g′ defined by
Partial uninstantiated actions and
states
If the goal is to deliver a piece of cargo to SFO,
Suggested action: