Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

hmax

Also known as max heuristic, hmax

heuristic decoupled-searchminiplanplanning-heuristics

hmax estimates the cost from a state to the goal of a planning task. It uses the delete relaxation: a fact that becomes true stays true, so operators never undo each other. The cost of a fact is the cost of the cheapest operator that adds it, plus the cost of that operator's most expensive precondition; the estimate is the cost of the most expensive goal fact. hmax never overestimates (it is admissible), so A* with it finds cheapest plans, but its estimates are often low. Decoupled search keeps a price (cheapest cost) for each reached leaf state; there, each fact starts at the cheapest price of a reached leaf state that contains it.

Pseudocode

algorithm h-max(s, O, G)input: state s, operators O, goal facts Goutput: a lower bound on the cost from s to G, or ∞ if G is unreachablefor each fact p doc[p] ← ∞for each fact p in s doc[p] ← seed(p)                         ▷ 0; on a decoupled state, the fact's leaf priceOPEN ← facts of s                        ▷ ordered by cfor each o in O with pre(o) = ∅ dorelax(o, OPEN)while OPEN ≠ ∅ dop ← extract-min(OPEN)for each o in O with p ∈ pre(o) doif ∀ q ∈ pre(o): c[q] < ∞ thenrelax(o, OPEN)return max { c[g] : g ∈ G }procedure relax(o, OPEN)k ← cost(o) + max { c[q] : q ∈ pre(o) }  ▷ the max of ∅ is 0for each p′ in eff(o) doif k < c[p′] thenc[p′] ← kinsert-or-update(OPEN, p′, k)

In the crates

Lineage

Comes from

Nothing on this site.

Led to

Additive hmax builds on it

h2 generalizes it

LM-cut builds on it

Papers

  1. Planning as heuristic search Blai Bonet, Héctor Geffner · 2001· Artificial Intelligence introduces doi 10.1016/S0004-3702(01)00108-4
  2. Beating LM-Cut with hmax (Sometimes): Fork-Decoupled State Space Search Daniel Gnad, Jörg Hoffmann · 2015· International Conference on Automated Planning and Scheduling (ICAPS) applies doi 10.1609/icaps.v25i1.13705