I need to make the output of a variable positive, for both negative and positive inputs.
Since I am using it in the linear optimization problem, no squares, self-division or self-multiplication is allowed.
Need a mathematical solution, No prebuilt functions of programming languages are allowed
$$|5 x_1-7x_2| \leq 10$$ is equivalent to the two linear constraints $$5 x_1-7x_2 \leq 10 \text{ and } -(5 x_1-7x_2) \leq 10$$