hadd
Also known as hadd, Additive heuristic, additive heuristic
heuristic width-searchminiplanplanning-heuristics
The additive heuristic hadd estimates the cost from a state to the goal of a planning task. It uses the delete relaxation: actions only add facts and never remove them. A fact true in the state costs 0. Any other fact costs the minimum, over the rules that add it, of the rule's cost plus the sum of its conditions' costs. hadd is the sum of these costs over all goal facts. It is not admissible (it can overestimate the true cost), because it counts a shared subgoal once for each goal that needs it, so use it to guide greedy search or, as BFWS-f5 does, take its best supporters to build a relaxed plan.
Pseudocode
algorithm h^add(s)input: state s; delete-free rules r with conditions pre(r), added fact head(r) and cost c(r)output: the additive estimate of the cost from s to the goal facts G, or ∞for each fact p docost[p] ← 0 if p holds in s, otherwise ∞repeat ▷ one rule per operator effect, axioms cost 0changed ← falsefor each rule r dov ← c(r) + ∑ q ∈ pre(r) cost[q]if v < cost[head(r)] thencost[head(r)] ← vsupporter[head(r)] ← r ▷ best supporter, used to extract relaxed planschanged ← trueuntil not changedreturn ∑ p ∈ G cost[p] ▷ ∞ if some goal fact cannot be reachedIn the crates
width-searchfeaturesas-plusThe additive heuristic on SAS+ tasks, whose best supporters give the relaxed plans for BFWS.
miniplanAdditive delete-relaxation heuristic on the grounded task.
planning-heuristicsDelete-relaxation heuristic summing the goal fact costs.
Lineage
Papers
- Planning as heuristic search Blai Bonet, Hector Geffner · 2001· Artificial Intelligence