Semianalytical minimum-time solution for the optimal control of a vehicle subject to limited acceleration