Conjugate gradient minimization of nonlinear functions with box