How to edit a linear programming as the following:
Max z = x1 + 12x2
s.t. 3x1 + x2 + 12x3 ≤ 5
x1 + x3 ≤ 16
15x1 + x2 = 14
xj ≥ 0, j=1,2,3.
I want the format to be strictly like the example.
Thanks for all the answers below. What I need is just like the picture as following
Best Answer
A regular
array
would suffice here, since the alignment is pretty rigid horizontally:The use of
\phantom
is to allow for proper spacing and alignment.Here might be another alignment option, mainly for the first column: