Minimization of the root of a quadratic functional under an affine equality constraint