PDDL Plan Validation
Also known as Classical plan validation, Numeric plan validation
validation pddl-validate
PDDL plan validation checks that a sequence of actions solves a planning problem written in PDDL. It starts in the initial state and runs the plan one step at a time. For each step it grounds the action with its objects, checks the precondition in the current state, and then applies all effects at once: deleted atoms go out, added atoms come in, and numeric fluents change. After the last step, the goal must hold. The check is exact and stops at the first failing step, so it also tells you why a plan fails; use it to test the output of any classical or numeric planner.
Pseudocode
algorithm ValidatePlan(domain, problem, plan)input: a PDDL domain and problem, a plan as a list of ground stepsoutput: valid with the metric value, or the first violationcheck-model(domain, problem) ▷ names, arities, typess ← initial-state(problem)s ← close-derived(s) ▷ least fixpoint, stratum by stratumfor each (i, step) in plan doa ← ground(step) ▷ action, arity, objects, typesif a = failure thenreturn violation(i, "unknown action or bad argument")if not holds(pre(a), s) then ▷ unknown counts as falsereturn violation(i, unmet(pre(a), s))DEL, ADD, UPD ← collect-effects(a, s) ▷ when conditions read sif conflicting(UPD) thenreturn violation(i, "conflicting updates")s ← (s ∖ DEL) ∪ ADDs ← apply-numeric(s, UPD)s ← close-derived(s)if not holds(goal(problem), s) thenreturn violation(nil, unmet(goal(problem), s))return valid(metric(problem, s))In the crates
pddl-validateIndependent plan validator for classical and numeric PDDL plans (STRIPS, typing, ADL conditions, conditional effects, derived predicates, numeric fluents, action costs, metrics) that explains the first failing step in the style of VAL's plan repair advice.
Lineage
Comes from
Nothing on this site.
Led to
Temporal Plan Validation builds on it
Papers
- 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)
- PDDL2.1: An Extension to PDDL for Expressing Temporal Planning Domains Maria Fox, Derek Long · 2003· Journal of Artificial Intelligence Research