Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

CG-iLAO*

Also known as Constraint-Generation iLAO*

search stochastic-search

CG-iLAO* (constraint-generation iLAO*) is iLAO* that does not compute every action at every state. Each state starts with only its cheapest actions active, and backups use only those. A change of value marks other actions as candidates. A candidate becomes active when it is cheaper than the current value (a violated constraint). A final check over all actions makes the policy ε-consistent like that of iLAO*; use it when states have many actions and most of them are clearly bad.

Pseudocode

algorithm CG-iLAO*(s₀, goal, h, ε)input: initial state s₀, goal test goal, heuristic h, tolerance εoutput: values V and a greedy policy π that is ε-consistent on its envelopeactive[s, a] ← false for every action a of every state sCANDIDATES ← ∅while not solved(s₀) doORDER ← postorder of a depth-first pass from s₀ over greedy arcs πfor each fringe state s in ORDER do          ▷ partial expansionexpand(s)active[s, a] ← true for each action a of s with the smallest Q(s, a)repeatr ← 0for each expanded state s in ORDER dov ← min over active a of Q(s, a)if v > V[s] + ε thenactive[s, a] ← true for each inactive a with Q(s, a) + ε < v   ▷ the crate's guardv ← min over active a of Q(s, a)CANDIDATES ← CANDIDATES ∪ inactive actions of sif v < V[s] − ε thenqueue-predecessors(s)                  ▷ every action that leads into sr ← max(r, |v − V[s]|)V[s], π[s] ← v and its actionuntil r ≤ ε or π changed or there is a fringe or CANDIDATES ≠ ∅FIX, CANDIDATES ← CANDIDATES, ∅for each (s, a) in FIX do                    ▷ fix the violated constraintsif V[s] > Q(s, a) + ε thenactive[s, a] ← truer ← max(r, V[s] − Q(s, a))V[s], π[s] ← Q(s, a), aqueue-predecessors(s)                    ▷ checked in the next roundif no fringe, π unchanged and r ≤ ε thenif not check-solved(s₀, ε) over all actions then   ▷ labels s₀ solved when it passesqueue-inactive-actions()return V, π

In the crates

Lineage

Comes from

builds on iLAO*

Led to

Nothing on this site.

Papers

  1. Efficient Constraint Generation for Stochastic Shortest Path Problems Johannes Schmalz, Felipe Trevizan · 2024· AAAI Conference on Artificial Intelligence introduces doi 10.1609/aaai.v38i18.30005