Model-based reinforcement learning: a survey