planning-heuristics
Heuristics for classical planning: delete relaxation (hmax, hadd, hFF), red-black, landmarks, LM-cut, operator counting and abstraction adapters
cargo add planning-heuristics Who it is for
- Planning researchers who want to compare heuristics on the same task representation without porting Fast Downward's C++, or who need a reference implementation of red-black planning or RHW landmarks to check their own against.
- Anyone building a classical planner in Rust: pick
h_FFor red-black for satisficing greedy search, LM-cut or landmark cost partitioning for optimal A*, and LAMA-style landmark tracking for path-dependent search. - Embedded and robotics teams that plan onboard: the crate runs on
no_stdtargets with an allocator. - If the problem is a plain graph rather than a factored planning task, an explicit-state search with a domain-specific heuristic in heuristic-search is the better fit.
- For merge-and-shrink abstractions or saturated cost partitioning themselves, use merge-and-shrink and cost-partition; this crate only adapts them to the
Heuristictrait.
Algorithms 17
- Additive hmax additive h_max · h^max over an operator partition
Admissible sum of h_max values over an operator partition.
- Goal-intention ranking ol_rp · op_rp · goal intention
Goal-intention ranking keys from sampled relaxed plans, with a path tracker.
- h1 landmarks delete-relaxation fact landmarks · h^m landmarks
Fact landmarks of the delete relaxation with natural orderings.
- h2 h² · h^m with m = 2
The h^m heuristic with m = 2: cheapest regression over fact pairs.
- hadd h_add · Additive heuristic · additive heuristic
Delete-relaxation heuristic summing the goal fact costs.
- hFF FF heuristic · h_FF · relaxed plan heuristic
Cost of a relaxed plan extracted from h_add best supporters, with preferred operators.
- hmax max heuristic · h_max
Admissible delete-relaxation heuristic: the cost of the most expensive goal fact.
- hsa set-additive heuristic · h_sa
Set-additive heuristic: like h_add, but each fact carries a set of operators.
- Landmark count heuristic LAMA landmark heuristic · landmark tracking
Inadmissible landmark count, per state or with LAMA-style tracking along the search path.
- LM-cut landmark-cut · h^LM-cut · h_LM-cut
Admissible landmark-cut heuristic with axioms and conditional effects by context splitting.
-
Operator-counting LP from the state equation with LM-cut constraints, solved with microlp.
-
Optimal landmark cost partitioning solved as a linear program, per state or along the search path.
- Pattern database PDB · Projection · Pattern databases · projection heuristic
Pattern database heuristics over sas_plus projections, and any sas_plus abstraction as a heuristic.
- Red-black planning red-black heuristic · h_RB
Red-black heuristic with relaxed plan repair or red facts following, every painting strategy of the papers, and an h_FF fallback outside the fragments.
- Relevance score hΞ relevance score · h_Xi
Landmark-like, inadmissible relevance score over a partially explored backtracking tree.
- RHW landmarks back-chained landmarks · Richter-Helmert-Westphal landmarks
Back-chained landmarks with disjunctive and DTG landmarks, greedy-necessary and reasonable orderings.
- Uniform landmark cost partitioning uniform cost partitioning
Admissible landmark heuristic that shares each operator's cost uniformly among the landmarks it achieves.