I have tried to see if my error is the same as any of the numerous other threads on this forum with the same content, however I cannot seem to find any that match my problem.
When trying to typeset the following code, I am faced with a ! Misplaced \omit.
\multispan ->\omit error.
$$
\begin{array} {l r@{}l@{} r@{}l@{}}
\text{Max} \quad & R &{}\multicolumn{3}{l}{=\log\left(...............\right)} \\
\text{s.t.} \quad & A &{}= B.C.D & E &{}= F.G.H \\
& I &{}= J.K.L & M &{}= N.O.P \\
\end{array}
$$
My aim is to have it look like the following:
Max R=log(......)
s.t. A=B.C.D E=F.G.H
I=J.K.L M=N.O.P
where R, A and I are vertically aligned, as are E and M but they are aligned under the contents of the log to save space.
I am presuming the error is due to the alignment tabs and the multicolumn.



{}is that the equals sign between R and log is no longer aligned with the equals signs between A & B and I & J. P.S. that extra\leftwas accidentally left from what was the contents. I will remove it now. – wilsnunn Jan 10 '16 at 13:13\multicolumn{3}{@{}l@{}}{{}=\log\left(.....– Jan 10 '16 at 13:18