Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Additive hmax

Also known as additive hmax, hmax over an operator partition

heuristic planning-heuristics

Additive hmax splits the operators into disjoint groups (a partition). For each group it computes h_max with only that group's operators at their real cost; all other operators cost 0. The sum over the groups is the estimate. Each operator's cost is counted in one group only, so the sum never overestimates the cost of a plan (it is admissible), and you can use it with A* for optimal plans. The crate's default puts each operator in the group of the lowest variable it changes; with_partition takes your own groups.

Pseudocode

algorithm AdditiveHMax(s, PARTS)input: state s, a partition PARTS of the operatorsoutput: an admissible estimate, or ∞ for a dead endh ← 0for each P in PARTS dofor each operator o doif o ∈ P thenc_P[o] ← cost(o)elsec_P[o] ← 0                          ▷ paid by another partv ← h-max(s, c_P)if v = ∞ thenreturn ∞h ← h + vreturn hfunction h-max(s, c)cost ← generalized-dijkstra(s, c)          ▷ a fact costs c[o] + max over pre(o)return max over goal facts g of cost[g]

In the crates

Lineage

Comes from

builds on hmax

Led to

Nothing on this site.

Papers

  1. New Admissible Heuristics for Domain-Independent Planning Patrik Haslum, Blai Bonet, Héctor Geffner · 2005· AAAI Conference on Artificial Intelligence introduces