Classical planning

On this page 7

Classical planning is the branch of automated planning that searches for a sequence of actions leading from a fully known initial state to a state that satisfies a goal condition, under the assumption that the world is deterministic, static and fully observable. Within Symbolic AI & reasoning, it is one of the oldest and best formalized problems of artificial intelligence, and it underlies mission planners, logistics schedulers and the reasoning layer of many robotic systems.

The word classical refers to a fixed set of simplifying assumptions, not to an outdated method. Modern classical planners solve problems with thousands of actions in seconds, and the same formal model serves as the baseline against which probabilistic, temporal and hierarchical planning are defined.

How a classical planning problem is defined

A classical planning problem is a state-transition system described by a set of states, a set of actions, an initial state and a goal. States are usually encoded as sets of ground propositions (facts that are true), and every fact not listed is false under the closed-world assumption.

Each action has preconditions that must hold before it can be applied and effects that add or delete facts. This representation originates in STRIPS and is today written in PDDL, the Planning Domain Definition Language used by the International Planning Competition. A solution, called a plan, is any action sequence whose execution from the initial state ends in a goal state.

The table below lists the components that every classical planning task must specify.

ComponentWhat it describesTypical PDDL element
DomainObject types, predicates and action schemas(define (domain ...))
ProblemConcrete objects for one instance(:objects ...)
Initial stateFacts true at the start(:init ...)
GoalCondition the final state must satisfy(:goal ...)
Action schemaParameters, preconditions and effects(:action ...)
Components of a classical planning task

The assumptions that make planning classical

Classical planning is defined by restrictive assumptions that make the problem tractable enough to solve with search. Relaxing any one of them produces a different planning family with its own algorithms and complexity.

AssumptionMeaningFamily when relaxed
Finite state spaceOnly finitely many states existNumeric planning
Full observabilityThe planner knows the complete stateConformant or contingent planning
DeterminismEach action has one predictable outcomeProbabilistic planning (MDPs)
Static worldOnly the agent changes the stateMulti-agent or reactive planning
Instantaneous actionsActions have no durationTemporal planning
Offline planningThe plan is computed before executionOnline planning and replanning
Classical assumptions and what relaxing them produces

Because of these assumptions, a classical plan can be executed open loop, without sensing. In practice, systems built on classical planning add execution monitoring and replanning to cope with the gap between the model and the real world.

Search algorithms and heuristics

Most classical planners solve the problem by state-space search, either forward from the initial state (progression) or backward from the goal (regression). Uninformed search fails quickly because the state space grows exponentially with the number of facts, so performance depends on domain-independent heuristics computed automatically from the action model.

The most influential heuristics come from delete relaxation, which ignores the delete effects of actions and estimates the cost of reaching the goal in the easier relaxed problem. The FF planner popularized this idea with enforced hill climbing and helpful actions, while Fast Downward combined it with landmark and abstraction heuristics. The following table compares the main approaches.

ApproachCore ideaStrengthWeakness
Heuristic forward searchBest-first search guided by relaxationFast on most benchmarksPlans may be suboptimal
Planning as satisfiabilityEncode bounded plans as SAT formulasStrong on tightly constrained tasksLarge encodings for long plans
Partial-order planningSearch over plan structures, not statesFlexible, least-commitment plansWeak heuristics, slower in practice
Planning graph (Graphplan)Layered reachability analysisBasis for many heuristicsMemory-intensive
Optimal A* planningA* with admissible heuristicsGuaranteed cost-optimal plansScales to smaller problems
Main solution approaches in classical planning

Planners distinguish satisficing planning, which returns any valid plan quickly, from optimal planning, which guarantees minimal total cost. The choice is a direct trade-off between plan quality and computation time.

Complexity and practical limits

Deciding whether a propositional STRIPS problem has any plan is PSPACE-complete, so no algorithm is known to solve every instance efficiently. Plans can also be exponentially long in the size of the problem description, which rules out simple enumeration.

The most frequent difficulties in real projects arise from modeling errors rather than from the search itself. The table below summarizes typical symptoms, their causes and the usual remedies.

SymptomLikely causeTypical remedy
Planner reports no planMissing effect or overly strict preconditionValidate the domain on small instances
Search runs out of memoryGrounding explodes with many objectsReduce object counts or add types
Plan fails during executionWorld violates determinismAdd monitoring and replanning
Plan is valid but absurdModel omits real costsAdd action costs and use cost-aware search
Common problems when applying classical planning

A further limit is the knowledge engineering effort: writing a correct domain model requires expertise, and errors in it are silent. This modeling bottleneck is closely related to the knowledge acquisition bottleneck of expert systems.

Classical planning differs from neighboring methods mainly in what is given and what is searched. A hierarchical task network planner receives decomposition methods written by an expert and refines abstract tasks, while a classical planner builds plans from primitive actions alone. Situation calculus expresses the same kind of change in first-order logic, which is more expressive but much harder to automate.

Reinforcement learning addresses similar sequential decisions but learns from experience instead of reasoning over an explicit model. Recent work also uses large language models to draft PDDL domains or candidate plans, with a classical planner or validator checking correctness, because language models alone do not guarantee sound plans.

The short version

Classical planning is how a computer works out a step-by-step recipe to reach a goal. It gets a description of the starting situation. It gets a list of possible actions. Each action says what must be true first and what changes afterward.

The planner then tries combinations until it finds a sequence that ends at the goal. It assumes nothing unexpected happens along the way. That assumption makes the problem easier to solve. It also means the plan may need to be recalculated when reality differs from the model.

Where it makes a difference

A regional warehouse operates twelve mobile robots that move shelves between storage zones and packing stations. Engineers model the floor as a grid of locations in PDDL, with actions for moving, lifting, carrying and dropping shelves, plus a precondition that no two robots occupy the same cell.

Each morning the order system generates a goal listing about forty shelves that must reach specific stations. A satisficing planner with a delete-relaxation heuristic returns a coordinated plan in under ten seconds. When a robot stops for maintenance, a monitor detects the deviation and triggers replanning from the current state, so packing continues without manual rescheduling and the team can inspect every plan step before it runs.