我尝试使用以下对齐方程,但它不起作用并给出一堆错误。这是我第一次尝试使用此命令,所以有点费劲才能正确使用。我找不到它的问题所在。
\eqalignno{\min_{V} \quad & V^{H}C_{0}V & \hbox{(6a)} \cr
{\rm s.t}.\quad &\underline{p}_{j}\leq V^{H}\Phi_{j}^{\phi}V\leq\bar{p}_{j},\quad j\in N, \phi \in\Phi&\hbox{(6b)}\cr
& \underline{q}_{j}\leq V^{H}\Psi_{j}^{\phi}V\leq\bar{q}_{j},\quad j\in N,\phi\in\Phi&\hbox{(6c)}\cr
& \underline{v}_{j}\leq V^{H}E_{j}^{\phi}V\leq\bar{v}_{j},\quad j\in N, \phi\in\Phi&\hbox{(6d)}}
答案1
看来这个命令的效果可以通过align
嵌套在subequations
环境中来实现。也许你会对将这三个约束分组为一个子方程感兴趣:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\setcounter{equation}{5}
\begin{subequations}
\begin{align}
\min_{V} \quad & V^{H}C_{0}V \\
\textrm{s.t. } \quad &\underline{p}_{j}\leq V^{H}\Phi_{j}^{\phi}V\leq\bar{p}_{j},\quad j\in N, \phi \in\Phi \\
& \underline{q}_{j}\leq V^{H}\Psi_{j}^{\phi}V\leq\bar{q}_{j},\quad j\in N,\phi\in\Phi \\
& \underline{v}_{j}\leq V^{H}E_{j}^{\phi}V\leq\bar{v}_{j},\quad j\in N, \phi\in\Phi
\end{align}
\end{subequations}
\begin{subequations}
\begin{alignat}{2}
& \min_{V } \quad V^{H}C_{0}V \\
& \begin{rcases}
\textrm{s.t. } &\underline{p}_{j}\leq V^{H}\Phi_{j}^{\phi}V\leq\bar{p}_{j},\quad j\in N, \phi \in\Phi \\
& \underline{q}_{j}\leq V^{H}\Psi_{j}^{\phi}V\leq\bar{q}_{j},\quad j\in N,\phi\in\Phi \\
& \underline{v}_{j}\leq V^{H}E_{j}^{\phi}V\leq\bar{v}_{j},\quad j\in N, \phi\in\Phi
\end{rcases}
\end{alignat}
\end{subequations}
\end{document}