Learning objectives
- Apply the Bellman optimality backup.
- Know the stopping rule.
The idea
When the model P and R is known the problem can be solved without experience: start from zero values and apply the optimality equation to all states repeatedly until the largest change falls below a threshold θ, then extract the greedy policy.
Explanation
A sweep costs O(|S|²|A|) in the worst case.
Equations
V_{k+1}(s)=\max_a\sum_{s'}P(s'|s,a)\,[R(s,a,s')+\gamma V_k(s')]Convergence is guaranteed for γ<1 because the operator is a contraction.
Worked example
On GridWorld with a known model it converges in tens of sweeps.
Common mistakes
Using an inaccurate model.
Forgetting terminal states.
Summary
Value iteration solves the optimality equation by iteration when the model is known.
Related experiments
Assessment questions
References
- Sutton, R. S.; Barto, A. G. (1998). Reinforcement learning: an introduction (first-edition record; the second edition is free at the author's page). IEEE Transactions on Neural Networks 9(5):1054. doi:10.1109/tnn.1998.712192
