I want to maximize the value of product of $x$ and $y$ where $x$ and $y$ can take only integer values as well as there are some constraints as mentioned below :
$$x+\alpha y \le N \textrm{ and } x>0,\ y>0$$
where $\alpha$ and $N$ are known constants and could be very large. How to solve such a problem ?
The function $$f(y):=y(N-\alpha y)={N^2\over 4\alpha}-\alpha\left(y-{N\over2\alpha}\right)^2$$ is unimodal and takes its maximum at $y_*:={N\over2\alpha}$. The optimal integer value of $y$ therefore is one of $\lfloor y_*\rfloor$ and $\lceil y_*\rceil$.
(Unimodal means: increasing till the max, then decreasing.)