An efficient method for calculating optimal free-space n-impulse trajectories.