Well trajectory optimization constrained to structural uncertainties