If linear programming is to be used to solve an objective function which contains absolutes then the absolute terms have to be rewritten using extra values, for example, the trivial objective "minimise $\left| x_1 + x_2 \right|$" becomes:
$$\begin{align} \mathrm{minimise}\ \ & t_1 \\ \mathrm{constraints}\ \ & x_1 + x_2 \le t_1 \\ & x_1 + x_2 \ge -t_1 \\ \end{align}$$
I'm currently rewriting this sort of thing as below in order to use the standard lp_solve solver (the objective and constraints must be expressed as a matrix of constants, and the constraint RHS must be a constant):
$$\begin{align} \mathrm{minimise}\ \ & 0x_1 + 0x_2 + 1x_3 \\ \mathrm{constraints}\ \ & 1x_1 + 1x_2 - 1x_3 \le 0 \\ & 1x_1 + 1x_2 + 1x_3 \ge 0 \\ \end{align}$$
Is this approach, with an extra decision variable plus two extra constraints for every absolute term in the objective, the best way to use lp_solve or is there a better way to rearrange things? The real problems I'm trying to solve have four to seven absolute parts and so the number of extra variables and constraints does start to mount up.