High Order Optimal Control of Space Trajectories with Uncertain Boundary Conditions