Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Optimal landmark cost partitioning

Also known as optimal cost partitioning

heuristic planning-heuristics

Optimal landmark cost partitioning gives each pending landmark a value c_l and maximizes their sum with a linear program (LP). A landmark is a fact that is true at some point of every plan. The LP has one constraint per operator: the values of the landmarks it achieves add up to at most its cost. So the sum never overestimates the cost of a plan (it is admissible), and it is never below the uniform partitioning. The crate solves one LP per state with the pure-Rust microlp (feature lp); it suits optimal search on small tasks and comparisons, while LM-cut is much cheaper per state.

Pseudocode

algorithm OptimalLandmarkCost(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 and some operator adds l}LP ← maximize ∑ c_l over l ∈ PEND, with c_l ≥ 0for each operator o doadd-constraint(LP, ∑ c_l over l ∈ PEND added by o ≤ cost(o))u ← uniform-landmark-cost(s)c ← solve(LP)if c = failure thenreturn uc ← scale-to-feasible(clamp(c, 0))          ▷ every constraint holds exactlyreturn max(⌈∑ c_l over l ∈ PEND⌉, u)

In the crates

Lineage

Led to

Nothing on this site.

Papers

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