Text this: Optimal control and reinforcement learning for formula one lap simulation