Nonlinear optimization simplified by hypersurface deformation