Linear diophantine inequality maximum

74 Views Asked by At

For an irrational $\xi$ and given bound $x$, find integer $a, b \ge 0$ maximizing $y = a + b\xi$ subject to $y \le x$.

$\xi$ is a square root of an integer, but I guess it doesn't matter. It's actually an ILP, but I can't see how to use this fact.