The Use of Ordinary Differential Equations in Quadratic Maximization with Integer Constraints