Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

LRTDP

Also known as Labeled RTDP, Labeled Real-Time Dynamic Programming

search stochastic-search

LRTDP (labeled RTDP) finds a policy that reaches a goal at the lowest expected cost when actions have random outcomes. Like RTDP, it runs greedy trials from the start state and does a Bellman backup at each step. After a trial, it marks a state solved when each state that the greedy policy reaches from it has a residual (the change that one more backup would make) of at most ε. Trials stop at solved states, and the run ends when the start state is solved. It visits only the states that a good policy uses, so it is a strong default for large problems with an admissible heuristic.

Pseudocode

algorithm LRTDP(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 envelopeV[s] ← h(s) for each state s when it is first reachedwhile not solved(s₀) dos ← s₀TRIAL ← ⟨⟩while not solved(s) do                       ▷ goal states count as solvedappend(TRIAL, s)back-up(s)                                 ▷ V[s] ← min over a of Q(s, a)if π[s] = nil then                         ▷ a dead end ends the trialbreaks ← sample(successors(s, π[s]))while TRIAL ≠ ⟨⟩ dos ← pop(TRIAL)if not check-solved(s, ε) thenbreakreturn V, πfunction check-solved(s, ε)consistent ← trueOPEN ← ⟨s⟩ if s is unsolved, else ⟨⟩CLOSED ← ⟨⟩while OPEN ≠ ⟨⟩ dot ← pop(OPEN)append(CLOSED, t)if residual(t) > ε then                      ▷ |V[t] − min over a of Q(t, a)|consistent ← falsecontinuepush-unvisited-successors(t, OPEN)           ▷ unsolved successors under π[t] not seen yetif consistent thenlabel-solved(CLOSED)                         ▷ freezes their greedy actionselseback-up-reversed(CLOSED)                     ▷ last visited firstreturn consistent

In the crates

  • stochastic-search

    Labeled real-time dynamic programming: explores only the states a good policy visits, epsilon-consistent on them when it converges.

    lrtdp

Lineage

Comes from

builds on RTDP

Led to

MOLRTDP builds on it

Papers

  1. Labeled RTDP: Improving the Convergence of Real-Time Dynamic Programming Blai Bonet, Héctor Geffner · 2003· International Conference on Automated Planning and Scheduling (ICAPS) introduces