我正在使用 IEEE tran 会议库为科学论文编写优化问题。我将长方程分成两行,但 latex 会在两行上都放置方程编号。以下是与我的问题相关的 MWE。方程 1b 和 1c 只是一个方程;同样,1d 和 1e 只是一个方程。我想将它们写成两行,但希望方程编号只出现在第二行。
\documentclass[conference]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
& (P1) \hspace{0.5em}\!\min_{\vartheta} &\qquad& f(\vartheta) \label{eq:OF}\\
&\text{subject to} & & V_i^\varphi I_i^{*\varphi} = (P_{g_i}^\varphi-P_{l_i}^\varphi)+j(Q_{g_i}^\varphi-Q_{l_i}^\varphi),\label{eq:PBG}\\
& & & \forall \varphi \in \phi_{i}, i \in G\\
& & & V_k^\varphi I_k^{*\varphi} = (-P_{l_k}^\varphi -jQ_{l_k}^\varphi)+jy_{c_k}^\varphi|V_k|^2,\label{eq:PBL}\\
& & & \forall \varphi \in \phi_{k}, k \in N\backslash \{G\}\\
& & & (\underline{V}_k)^2 \leq |V_k^\varphi|^2 \leq (\overline{V_k})^2, \forall \varphi \in \phi_{k}, k \in N,\label{eq:Vol}\\
& & & \underline{P}_{g_i} \leq P_{g_i}^\varphi \leq \overline{P}_{g_i}, \forall \varphi \in \phi_{i}, i \in G,\label{eq:GenP}\\
& & & \underline{Q}_{g_i} \leq Q_{g_i}^\varphi \leq \overline{Q}_{g_i}, \forall \varphi \in \phi_{i}, i \in G,\label{eq:GenQ}
\end{alignat}
\end{subequations}
\end{document}
答案1
在这种环境下,这能解决您的问题吗?我对s 和saligned
进行了一些改进,并且必须在两列之间使用较小的空间来适应线宽:overline
underline
\documentclass[conference]{IEEEtran}
\usepackage{mathtools}
\usepackage{amssymb}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
& (P1) \;\min_{\vartheta} &\quad& f(\vartheta) \label{eq:OF}\\
&\label{eq:PBG}\mathrlap{\begin{aligned}[b]\text{subject to} \quad\, V_i^\varphi I_i^{*\varphi} & = (P_{g_i}^\varphi-P_{l_i}^\varphi)+j(Q_{g_i}^\varphi-Q_{l_i}^\varphi),\\
&\phantom{{}=(} \forall \varphi \in \phi_{i}, i \in G
\end{aligned}}\\[0.5ex]
& & & \label{eq:PBL}\begin{aligned}[b] V_k^\varphi I_k^{*\varphi} & = (-P_{l_k}^\varphi -jQ_{l_k}^\varphi)+jy_{c_k}^\varphi|V_k|^2,\\
& \phantom{{}=(}\forall \varphi \in \phi_{k}, k \in N\setminus \{G\}
\end{aligned}\\[0.5ex]
& & & \label{eq:Vol} (\underline{V\!}_{\mkern2mu k})^2 \leq |V_k^\varphi|^2 \leq (\overline{V}_{\mkern-5mu k})^2, \: \forall \varphi \in \phi_{k}, k \in N,\\[0.5ex]
& & & \underline{P\!}_{\mkern2mu g_i} \leq P_{g_i}^\varphi \leq \,\overline{\! P\mkern1mu}_{\!g_i}, \:\forall \varphi \in \phi_{i}, i \in G,\label{eq:GenP}\\[0.5ex]
& & & \underline{Q\mkern-2mu}_{\mkern1mu g_i} \leq Q_{g_i}^\varphi \leq\mkern2mu \overline{\mkern-2mu Q}_{g_i}, \:\forall \varphi \in \phi_{i}, i \in G,\label{eq:GenQ}
\end{alignat}
\end{subequations}
\end{document}