For the minimization problem with inaccurately specified objective function and feasible set, a regularization method is proposed that combines the continuous projection-gradient method and the penalty-function method. Sufficient conditions for convergence are given and the regularizing operator is constructed.