Maximum-Likelihood Estimation of Parameters Subject to Restraints