I have the following code in an attempt to align things in latex using the amsmath package:
\begin{alignat}{3}
\text{max} && c^Tx &=\\
\text{s.t.} && Ax &\leq b \\
&& x &\geq 0
\end{alignat}
Basically, I would like max and st to be in the same column, c ^ Tx, Ax, x in the second column, and finally b and 0 should be in the last column. I'm not sure why this is not working (for some reason, it compresses max and c ^ Tx.
If anyone can help me with this, it will be very appreciated!
source
share