答案1
以下是在特定环境下如何操作aligned
。我添加了另一个带有专用包的解决方案optidef
:
\documentclass{article}
\usepackage{mathtools, optidef}
\usepackage{array}
\begin{document}
\begin{equation}\label{eq:optim}
\begin{aligned}
\min_{T \geq 0}\enspace &\smashoperator{ \sum_{i,j=1}^n }T_{ij}c(i,j) \\
\text{subject to: } & \sum_{j=1}^n T_{ij = d_{i}} \ \forall \ i\in \{1,...,n\} \\
& \sum_{i=1}^n T_{ij} = d_{j}^{'} \ \forall \ j\in \{1,...,n\}
\end{aligned}
\end{equation}
\vskip 1cm
\begin{mini}|s|[2]
{\scriptstyle T \geq 0} {\smashoperator{ \sum_{i,j=1}^n} T_{ij}c(i,j)}%
{}{}
\addConstraint{\sum_{j=1}^n T_{ij}= d_{i}}{\quad\forall \ i\in \{1,...,n\} }
\addConstraint{\sum_{i=1}^n T_{ij}= d’_{j}}{\quad\forall \ j\in \{1,...,n\} }
\end{mini}
\end{document}