I have an optimization problem that I'm trying to cast as a linear program. However, I have an objective function of the form
$$\begin{array}{ll} \text{maximize} & a_1 x_1 - a_2 \lvert x_1\rvert\\ \text{subject to} & \color{gray}{\text{(constraints)}}\end{array}$$
I tried doing the classic linear reformulation using a replacement variable $x_1'$ and adding the constraints:
$$x_1 - x'_1 \le 0$$
$$-x_1 - x'_1 \le 0$$
The problem that I ran into is that the solutions seem to be constraining $x_1$ to positive values, even when they obviously should be negative. Looking at the docs I have on this, it seems that this is because the assumption is that all values of it will be maximized or minimized in the same direction and if you break this assumption then you're forced to utilize the M/ILP method with binary determiners in order to solve this.
I haven't found any discussion on the limitation of using the variables $x_1$ and $x'_1$ in the objective function. Is it possible to do what I want without resorting to ILP?