Operator counting
Also known as state equation heuristic, operator-counting heuristic
heuristic planning-heuristics
An operator-counting heuristic gives each operator a count Y_o ≥ 0 and minimizes the total cost Σ cost(o) · Y_o with a linear program (LP). Each constraint is true for the operator counts of every plan, so the minimum never overestimates (it is admissible). The crate uses two kinds of constraints: the state equation, which balances how often a plan can make each fact true and false, and the LM-cut landmarks, where each cut must be used at least once. An infeasible LP proves a dead end. It is a strong heuristic for optimal search, but each state needs one LP solve (feature lp).
Pseudocode
algorithm OperatorCounting(s, G)input: state s, goal facts Goutput: an admissible estimate, or ∞ for a dead endCUTS ← lm-cut-landmarks(s)if CUTS = failure thenreturn ∞LP ← minimize ∑ cost(o) · Y_o over operators o, with Y_o ≥ 0for each fact f of a state variable doPROD ← operators with an effect that sets f and no precondition on fCONS ← operators that require f and always change its variablelow ← [f ∈ G] − [f ∈ s] ▷ [x] is 1 if x holds, else 0add-constraint(LP, ∑ Y_o over PROD − ∑ Y_o over CONS ≥ low)for each cut C in CUTS doadd-constraint(LP, ∑ Y_o over o ∈ C ≥ 1) ▷ an action landmarkv ← solve(LP)if the LP is infeasible thenreturn ∞ ▷ no plan fits: a dead endif v = failure thenreturn lm-cut(s) ▷ the solver gave upreturn max(⌈v⌉, lm-cut(s)) ▷ after a small relative toleranceIn the crates
planning-heuristicsfeaturelpOperator-counting LP from the state equation with LM-cut constraints, solved with microlp.
Lineage
Led to
Nothing on this site.
Papers
- LP-Based Heuristics for Cost-Optimal Planning Florian Pommerening, Gabriele Röger, Malte Helmert, Blai Bonet · 2014· International Conference on Automated Planning and Scheduling (ICAPS)