Adaptive dynamic programming with applications in optimal control. (2017)