time stepping traj opt