Skip to main content
Back

ENHSP Beats Native Temporal Planners by Compiling a 20-Year-Old Gap

A twenty-year gap in the planning literature finally closes: durative actions can be compiled into PDDL+ practically, and the result beats specialized temporal planners.

Pro

  • First practical compilation from PDDL 2.1 temporal planning into PDDL+, closing a 20 year theoretical gap.
  • Each durative action becomes an (action, process, event) triplet with lock predicates to enforce non-interference.
  • Compilation is polynomial, sound, complete, and at most doubles plan length.
  • Compiled problems solved via ENHSP beat native temporal planners like ARIES, OPTIC, and TAMER on numeric domains.
  • ENHSP-WA hit 67/80 coverage versus ARIES at 59/80 across MatchCellar, MaJSP, T-Sailing, T-Plant-Watering.
  • Code and benchmarks available at github.com/hstairs/time2processes, integrated in unified_planning.

Automated planning has long been split between two dialects for describing actions that happen over time. On one side, PDDL 2.1 uses durative actions that start, run for an interval, and end, with conditions checked at the start, over-all, and at the end. On the other side, PDDL+ models the world through processes (continuous change described by differential equations), events (instantaneous triggers when conditions become true), and plain instantaneous actions. A new paper from researchers at Fondazione Bruno Kessler and the University of Brescia finally bridges the two in a way that actually runs on modern solvers.

The gap that sat open for twenty years

The paper tackles a claim that has been folklore since PDDL+ was introduced: durative actions could, in theory, be re-expressed as combinations of processes and events. Since the introduction of the PDDL+ modeling language, it was known that temporal planning with durative actions (as in PDDL 2.1) could be compiled into PDDL+. However, no practical compilation was presented in the literature ever since.

Why does that matter? Compilation-based techniques are particularly appealing, as they allow temporal reasoning to be delegated to more expressive or better-supported target languages. If you can rewrite a temporal problem in PDDL+, you inherit whatever heuristics, search strategies, and engineering work exist in the PDDL+ ecosystem for free. You also get features that native temporal planners often struggle with, like delayed effects, timed initial literals, and rich numeric state.

How the translation works

Every durative action becomes a small machine built from three parts. For fixed-duration actions the triple is (action, process, event); for variable-duration actions it is (action, process, action). The process ticks a per-action clock c_a upward while a running flag r_a is true, and the closing action or event fires when c_a falls inside the allowed duration bounds.

The subtler problem is making sure two actions scheduled at the same instant do not step on each other. The authors introduce a lock mechanism: for every fluent they add three predicates tracking whether it was read, assigned, or incremented in the current time step. Actions get extra preconditions and effects on these locks so that, for example, you cannot read a variable that was just assigned in the same superdense instant. A single event resets all the locks whenever a positive amount of time has elapsed, driven by a global counter gc that a background process pushes upward.

A global ok predicate acts as a plan-wide abort switch: if an over-all invariant is ever violated, ok flips to false and cannot be restored, killing the plan. Another counter oc tracks how many durative actions have started but not yet finished, and the goal requires oc = 0, forcing every opened action to close.

The authors prove the compilation is sound and complete, polynomial, retains the plan length up to a constant factor (at most doubled), and requires only that actions do not self-overlap. One important design choice: the encoding assumes a discrete time semantics for PDDL+, because in continuous time the lock-reset event would trigger infinitely often (Zeno behavior).

Beating native temporal planners at their own game

The experimental campaign is where things get interesting. The team compiled four temporal-numeric domains, including the classic MatchCellar benchmark, a job-shop variant called MaJSP, and two new domains they built (T-Sailing, which adds rescue deadlines, and T-Plant-Watering, which forces two agents to coordinate opening a tap and pouring). Each domain has 20 instances, giving 80 total.

Running the compiled problems through ENHSP (a PDDL+ planner) and comparing against native temporal planners including ARIES, OPTIC, TAMER, TFLAP, NextFLAP, and Patty, the compiled route was competitive or better:

PlannerTypeCoverage (out of 80)
ENHSP-WA (compiled)PDDL+67
ARIESNative temporal59
ENHSP-LG (compiled)PDDL+58
TAMERNative temporal42
OPTICNative temporal36
TFLAPNative temporal22

ARIES held an edge on purely temporal MatchCellar, but ENHSP with the weighted A* engine dominated the numeric-heavy domains. That result flips a common assumption in the field: specialized temporal planners are not automatically the right tool once numeric reasoning enters the picture.

What you can do with it today

The compiler is implemented inside the unified_planning library, a Python framework for modeling and solving AI planning problems. The benchmark domains and instances are open at github.com/hstairs/time2processes. Beyond straight PDDL 2.1 level 3, the implementation also handles delayed effects and timed initial literals by emitting events triggered at the right moments.

Practical situations where this matters:

  • Scheduling problems with heavy numeric constraints (resources, capacities, thresholds) where native temporal planners plateau.
  • Domains that need required concurrency, such as multi-agent tasks where two actions must overlap in time to succeed.
  • Problems mixing deadlines with continuous or step-wise numeric change, where PDDL+ processes fit more naturally than durative actions alone.
  • Research prototypes that want to reuse PDDL+ heuristics without rewriting temporal domains by hand.

The main limitations are honest ones: the encoding is discrete-time only, it assumes non-self-overlapping actions, and it does not yet cover PDDL 2.1 level 4 (true continuous change), which the authors flag as future work. But for anyone who has been maintaining two parallel toolchains for temporal and hybrid planning, the message is that one of them may now be redundant.