Unconstrained formulation of standard quadratic optimization problems