Super...what? Actually, I asked my teacher on celestial dynamics how to determine a good trajectory to get "somewhere." The answer? "Clicking." So you just keep trying different solutions until you find it, or something close enough and then numerically optimise the solution.