Classical Planning

GATE Relevance: Medium

🎯 Learning Objectives

  • Distinguish planning from general search
  • Describe the state-space representation used in classical planning
  • Understand PDDL as a standard planning language
  • Explain the closed-world assumption and the frame problem
  • Compare forward and backward state-space search
  • Apply planning heuristics such as the ignore-delete-list and relaxed plan graph
  • Evaluate plan quality using standard metrics

2. State-Space Representation

📚 Classical Planning State

A state is a set of ground atomic propositions (called fluents) that are true. Everything not in the set is assumed false (closed-world assumption).

Example fluents: On(A,B), Clear(A), OnTable(C), Holding(Nothing)

A classical planning problem is specified by three components:

  1. Initial state s0: a complete set of fluents describing the world at the start.
  2. Goal g: a partial set of fluents that must all be true in the final state.
  3. Actions A: a set of action schemas, each with preconditions and effects.

🔬 Example — Simple Logistics

Initial state: {At(Package1, CityA), At(Truck1, CityA), Road(CityA, CityB)}

Goal: {At(Package1, CityB)}

Actions:

  • Load(pkg, truck, city) — Pre: At(pkg, city) ∧ At(truck, city); Effect: In(pkg, truck) ∧ ¬At(pkg, city)
  • Drive(truck, from, to) — Pre: At(truck, from) ∧ Road(from, to); Effect: At(truck, to) ∧ ¬At(truck, from)
  • Unload(pkg, truck, city) — Pre: In(pkg, truck) ∧ At(truck, city); Effect: At(pkg, city) ∧ ¬In(pkg, truck)

Plan: Load(Package1, Truck1, CityA) → Drive(Truck1, CityA, CityB) → Unload(Package1, Truck1, CityB)

3. PDDL — Planning Domain Definition Language

📚 PDDL

PDDL (Planning Domain Definition Language) is the standard input language for automated planners. It separates a planning problem into two files:

  • Domain file: defines predicates, action schemas (with parameters, preconditions, effects)
  • Problem file: defines the objects, initial state, and goal condition

PDDL Action Schema Template

(:action <action-name>
  :parameters (?x - type1 ?y - type2 ...)
  :precondition (and (pred1 ?x) (pred2 ?x ?y) ...)
  :effect (and (pred3 ?x)
               (not (pred1 ?x))
               ...)
)

PDDL fluents follow the STRIPS convention: effects are split into an add list (positive literals) and a delete list (negated literals). Any fluent not mentioned in the effect is unchanged — this is the STRIPS assumption, which solves the frame problem within this restricted language.

4. Closed-World Assumption & Frame Problem

📚 Closed-World Assumption (CWA)

Any fluent not explicitly stated in a state description is assumed to be false. This eliminates the need to list all negative facts.

📚 Frame Problem

The frame problem asks: how do we represent the fact that most things in the world do not change when an action is performed? Without a solution, every action would need explicit “frame axioms” for every unchanged fluent, leading to a combinatorial explosion.

Solutions to the frame problem:

  • STRIPS assumption: only fluents in the add/delete list change; everything else persists. Simple and effective for classical planning.
  • Successor-state axioms (situation calculus): a fluent is true in the next situation iff an action made it true, or it was already true and no action made it false.
  • Effect axioms only: in PDDL, only effects are specified; the planner infers persistence automatically.

⚠ GATE Tip

Questions about the frame problem often appear in the context of knowledge representation. Remember: the frame problem is about representing non-change efficiently, not about reasoning speed.

7. Heuristics for Planning

A major advantage of the factored representation is that we can derive domain-independent heuristics automatically.

📚 Ignore-Delete-List Heuristic (h+)

Remove all delete effects from every action. In the resulting relaxed problem, fluents once achieved are never lost. Solving this relaxed problem gives an admissible heuristic (never over-estimates) because the relaxed problem is strictly easier.

Computing h+ exactly is still NP-hard, but practical approximations exist:

HeuristicIdeaAdmissible?Informative?
hmaxCost of the single hardest goal fluent to achieveYesLow
haddSum of individual costs to achieve each goal fluentNo (over-estimates due to positive interactions)High
hFFLength of a relaxed plan extracted from a relaxed planning graphNot guaranteedVery high
hLM-cutLandmark-based lower bound using cost-partitioningYesHigh

📚 Relaxed Planning Graph (RPG)

Build a planning graph (see GraphPlan chapter) without mutex propagation. The level at which all goal propositions first appear gives an admissible heuristic. The FF heuristic extracts an actual relaxed plan and counts its actions — more informative but not necessarily admissible.

🔬 Example — Ignore-Delete-List

Consider two actions:

  • Move(A, Table, B): Pre={Clear(A), On(A,Table), Clear(B)}; Add={On(A,B)}; Del={On(A,Table), Clear(B)}
  • Move(C, D, Table): Pre={Clear(C), On(C,D)}; Add={On(C,Table), Clear(D)}; Del={On(C,D)}

Relaxed versions (delete lists removed): after Move(A, Table, B), both On(A,Table) and On(A,B) are true simultaneously. This makes the problem easier — the cost of the relaxed solution lower-bounds the true cost.

8. Plan Quality Metrics

Not all valid plans are equally good. Common metrics include:

  • Plan length: total number of actions (minimised in optimal planning)
  • Plan cost: ∑ cost(ai) where each action has a numeric cost
  • Makespan: number of time steps when actions can execute in parallel

💡 Optimal vs. Satisficing Planning

Optimal planners (e.g., A* with admissible heuristic) guarantee minimal cost but are slower. Satisficing planners (e.g., FF, LAMA) find good plans quickly without optimality guarantees. GATE questions usually focus on understanding the algorithms rather than implementation-level optimisation.

Summary

  • Classical planning uses a factored state representation (set of fluents) rather than atomic states.
  • The closed-world assumption treats unlisted fluents as false; the frame problem is solved by only specifying effects.
  • PDDL is the standard language for expressing planning domains and problems.
  • Forward search (progression) starts from s0; backward search (regression) starts from the goal — each has trade-offs in branching factor and heuristic availability.
  • Planning heuristics like hadd, hmax, hFF, and hLM-cut are derived by relaxing the problem (e.g., ignoring delete lists).
  • Plan quality is measured by length, cost, or makespan.