The main difficulty posed by the parameter inversion of partial differential equations lies in the presence of numerous local minima in the cost function. Inversion fails to converge to the global minimum point unless the initial estimate is close to the exact solution. Constraints can improve the convergence of the method, but ordinary iterative methods will still become trapped in local minima if the initial guess is far away from the exact solution. In order to overcome this drawback fully, this paper designs a homotopy strategy that makes natural use of constraints. Furthermore, due to the ill-posedness of inverse problem, the standard Tikhonov regularization is incorporated. The efficiency of the method is illustrated by solving the coefficient inversion of the saturation equation in the two-phase porous media.