I have two variables $x$ and $y$ which are bounded, $a<x<b$, $c<y<d$. I want to solve the following optimisation problem:
\begin{align} \text{max} |x-y| \\ \text{s.t. } a<x<b, \\ c < y <d . \end{align}
I want to relax this to a linear program but I'm not sure how to do this. I have seen a method of introducing an additional variable to solve the minimisation version of this problem (see Linear programming: minimizing absolute values and formulate in LP), however I was told this wouldn't work in the maximisation case.
Any suggestions or help would be appreciated.