Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Uniform landmark cost partitioning

Also known as uniform cost partitioning

heuristic planning-heuristics

Uniform landmark cost partitioning turns landmarks into an admissible heuristic: it never overestimates the cost to the goal. A landmark is a fact that is true at some point of every plan. Each operator shares its cost equally among the landmarks it can achieve that are still false; each landmark is worth its cheapest share; the estimate is the sum. Every plan must achieve each landmark, and no operator pays more than its cost in total, so A* with this heuristic finds optimal plans. It is cheap to compute, but often weaker than the optimal partitioning.

Pseudocode

algorithm UniformLandmarkCost(s)input: state soutput: an admissible estimate, or ∞ for a dead endLM ← landmarks(s)                           ▷ h¹ fact landmarksif LM = failure thenreturn ∞PEND ← {l ∈ LM : l ∉ s}for each operator o dok[o] ← |{l ∈ PEND : o adds l}|h ← 0for each l in PEND doif some operator adds l then              ▷ landmarks only axioms add are worth 0h ← h + min over operators o adding l of cost(o) / k[o]return ⌈h⌉                                  ▷ after a small relative tolerance

In the crates

Lineage

Comes from

builds on h1 landmarks

builds on Landmark count heuristic

Papers

  1. Cost-Optimal Planning with Landmarks Erez Karpas, Carmel Domshlak · 2009· International Joint Conference on Artificial Intelligence (IJCAI) introduces