Dynamic programming and optimal control. - Bertsekas, Dimitri P. (Athena Scientific, 2017)