Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Temporal Plan Validation

Also known as PDDL 2.1 temporal plan validation

validation pddl-validate

Temporal plan validation checks a plan in which every action has a start time and, for a durative action, a duration. Each durative action splits into a start event and an end event. Events at the same time form a happening: its conditions are checked in the state before it, and then all its effects apply at once. Between happenings, fluents change linearly, and every over all condition of a running action must hold on the whole open interval; for linear change it is enough to check each condition at the roots of its comparisons and between them, so the check is exact. Two events that interfere (one changes what the other reads or changes) must be at least a small time ε apart, as PDDL 2.1 and the VAL validator require.

Pseudocode

algorithm ValidateTemporalPlan(problem, plan, ε)input: a temporal PDDL problem, a timestamped plan, the separation εoutput: valid with the makespan, or the first violationE ← ∅for each (t, a, d) in plan doif a is durative thenE ← E ∪ {start-event(a, t), finish-event(a, t + d)}elseE ← E ∪ {instant-event(a, t)}E ← E ∪ timed-initial-literals(problem)s ← initial-state(problem)t_prev ← 0for each (t, H) in happenings(E) do          ▷ events within one instant, in time orderR ← running(t_prev, t)                     ▷ durative actions started and not yet endedfor each c in over-all-conditions(R) do    ▷ s is the state at t_prevfor each r in roots(c, s, t_prev, t) ∪ midpoints(c, s, t_prev, t) doif not holds-at(c, s, r) thenreturn violation(r, c)s ← advance-linear(s, R, t − t_prev)       ▷ continuous effects of Rfor each c in over-all-conditions(R ∖ ending-in(H)) doif not holds(c, s) then                  ▷ t lies inside their open intervalreturn violation(t, c)for each e in H doif interferes(e, H ∪ recent(E, t, ε)) then    ▷ events less than ε apartreturn violation(t, "interference", e)if not holds(conditions(e), s) or not duration-ok(e) thenreturn violation(t, e)s ← apply-all(collect-effects(H, s), s)    ▷ effects read the state before Ht_prev ← tif not holds(goal(problem), s) thenreturn violation(nil, goal(problem))return valid(makespan(E))

In the crates

  • pddl-validate

    Validates timestamped plans with durative actions, duration constraints, linear continuous effects, timed initial literals and epsilon separation of interfering events, following PDDL 2.1 and VAL.

    Validator

Lineage

Comes from

builds on PDDL Plan Validation

Led to

PDDL+ Plan Validation generalizes it

Papers

  1. PDDL2.1: An Extension to PDDL for Expressing Temporal Planning Domains Maria Fox, Derek Long · 2003· Journal of Artificial Intelligence Research introduces doi 10.1613/jair.1129
  2. VAL: automatic plan validation, continuous effects and mixed initiative planning using PDDL Richard Howey, Derek Long, Maria Fox · 2004· 16th IEEE International Conference on Tools with Artificial Intelligence (ICTAI) extends doi 10.1109/ICTAI.2004.120
  3. Formal Semantics and Formally Verified Validation for Temporal Planning Mohammad Abdulaziz, Lukas Koller · 2022· Proceedings of the AAAI Conference on Artificial Intelligence analyses doi 10.1609/aaai.v36i9.21197 arXiv 2203.13604