推 sheesun:BINGO!這就是我要的,謝謝你^^ 09/24 16:26
※ 引述《sheesun》之銘言:
: s.t. x_1-10x_2 =5
: 2x_2-x_3=7
: x_1, x_2,x_3>0
: 要把min和s.t.對齊,
: 但是三個聯立方程式也必須對齊(要考慮缺項),
: 目前是把s.t.當作一個3*1矩陣(第2,3列空白),
: 整個和min對齊,
: 至於三個聯立方程式是另一個矩陣,
: 想請問有無正統的解決辦法?謝謝!
\begin{align*}
& \text{min} \log(5x_1+4x_2-x_3) \\
&
\begin{array}{@{}rr@{}r@{}r@{}r@{}r@{\hskip3pt}r}
\text{s.t.} & x_1 & & -10x_2 & & = & 5 \\
& & & 2x_2 & & -x_3 = & 7 \\
& x_1 & ,& x_2 & , & x_3 > & 0 \\
\end{array}
\end{align*}
我的方法就是用 array 搭配 @{} 來把中間的空格去掉,不然會分很開很難看。
希望這是你要的 :)
--
Just because you deserve this
doesn't mean they're gonna give it to you.
Sometimes you gotta take what's yours.
── Kenny Ray Carter
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 71.93.190.46