Maximization of a Convex Quadratic Function Under Linear Constraints