Constrained optimization and protein structure determination.