Optimal multiple vehicle trajectories