Find the minimum of the function
$$ f(x,y)=|ax-by+c|$$
where $a,b,c \in \mathbb N$ and $x,y \in \mathbb Z$.
The questions here and here are similar but they are in cases where $x, y$ are bounded.Taking the partial derivatives,etc. doesn't help. Is there a way to do this efficiently(for a computer program)?