A Lyapunov-based version of the value iteration algorithm formulated as a discrete-time switched affine system. Issue 3 (4th March 2023)