Quadratic optimization in the problems of active control of sound