Let $a_{i,j}$ and $b_{i,j}$ be real numbers for $i,j\in\{1,\ldots,m\}$. Let $z_k\in\{0,1\}$ for $k=1,\ldots,m$. Is there a common method of maximizing,
$f(z_1,\ldots,z_m)=\displaystyle\frac{\sum_{(i,j)} a_{i,j}z_iz_j}{\sum_{(i,j)} b_{i,j}z_iz_j}$
A resource directly related to this problem would be extremely helpful.