Text this: Bellman's principle of optimality and deep reinforcement learning for time-varying tasks.