如何在對齊最佳化問題中創建垂直支撐?

如何在對齊最佳化問題中創建垂直支撐?

我正在嘗試圍繞優化問題中的特定約束創建垂直支撐。我的一段程式碼如下所示

\begin{equation*}
\begin{aligned}
\underset{x_{ij}}{\text{minimise}} \quad & 5x_{11}+3x_{12}\\&+7x_{21}+11x_{22}\\&+15x_{31}+29x_{32}\\
\textrm{such that} \quad & x_{22}+x_{12}+x_{22}\leq 9,\\
&x_{21}+x_{42}+x_{23}\leq 5,\\
&x_{33}+x_{43}+x_{34}\leq 11,\\
\end{aligned}
\end{equation*}

大括號用來傳達三個約束所代表的意義。下面顯示了一個範例

在此輸入影像描述

答案1

像這樣的東西嗎?

在此輸入影像描述

\documentclass{article} 
\usepackage{mathtools} % for 'rcases' env.
\begin{document}

\begin{equation*}
\begin{aligned}
\smash[b]{\underset{x_{ij}}{\textnormal{minimise}}} \quad 
 &5x_{11}+3x_{12}   \\
 &+7x_{21}+11x_{22} \\
 &+15x_{31}+29x_{32}\\
\textnormal{such that}\quad
 &\begin{rcases}
    x_{22}+x_{12}+x_{22}\leq 9\,,\\
    x_{21}+x_{42}+x_{23}\leq 5\,,\\    
    x_{33}+x_{43}+x_{34}\leq 11\,.
  \end{rcases}
  \cdots
\end{aligned}
\end{equation*}

\end{document}

相關內容