我正在写我的论文(一个report
类型文件),其中有几个与某个数学模型相关的连续方程。问题是它们彼此之间太过分离,看起来不太好,所以我想知道如何自定义它。我正在使用一个report
类型文件,我浏览了很多页,却找不到一个好的答案。
代码如下:
\begin{equation}
\sum_{k \in K} \sum_{i \in V_{1}}v_{ijkg} \leq d_{jg} \hspace*{0.3 cm} \forall j \in V_{2}, \hspace{0.1 cm} \forall g \in G
\end{equation}
\begin{equation}
\sum_{i \in V_{1}}\sum_{j \in V_{2}} \sum_{g \in G} v_{ijkg} \leq Q_{k} \hspace*{0.3 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{j \in V_{2}} \sum_{k \in K} v_{ijkg} \leq W_{ig}, \hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall g \in G
\end{equation}
\begin{equation}
d_{jg}y_{jk} \geq v_{ijkg}, \hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall k \in K, \hspace*{0.1 cm} \forall g \in G
\end{equation}
\begin{equation}
v_{ijkg} \leq Q_{k} \ast z_{i}, \hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall k \in K, \hspace*{0.1 cm} \forall g \in G
\end{equation}
\begin{equation}
v_{ijkg} \leq Q_{k} \ast F_{ik}, \hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall k \in K, \hspace*{0.1 cm} \forall g \in G
\end{equation}
\begin{equation}
\sum_{g \in G}v_{ijkg} \leq M \ast \sum_{s \in V} x_{sjk}, \hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall j \in V_{2}, \hspace*{0.1 cm} k \in K
\end{equation}
\begin{equation}
\sum_{s \in V,s \neq h} x_{shk} - \sum_{s \in V,s \neq h} x_{hsk}=0,\hspace*{0.3 cm} \forall h \in V, \hspace{0.1 cm} \forall k \in K
\end{equation}
\begin{equation}
u_{jkg}-u_{lkg}+Q_{k}x_{jlk} \leq Q_{k}-\sum_{i \in V_{1}}v_{ijkg}, \hspace*{0.3 cm} \forall j,l \in V_{2},j \neq l, \hspace*{0.1 cm} \forall g \in G, \hspace*{0.1 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{j \in V_{2}}x_{ijk} + \sum_{j \in V_{2}} x_{jik} \leq 2,\hspace*{0.3 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{i \in V_{1}} \sum_{j \in V_{2}} x_{ijk} \leq 1, \hspace*{0.3 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{s \in V,s \neq j}x_{sjk}=y_{jk}, \hspace*{0.3 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{k \in K}F_{ik} \leq I \ast z_{i}, \hspace*{0.3 cm} \forall i \in V_{1}
\end{equation}
\begin{equation}
\sum_{j \in V_{2}} x_{ijk} = F_{ik}, \hspace*{0.3 cm} \forall i \in V_{1} \hspace*{0.1 cm} \forall k \in K
\end{equation}
\begin{equation}
\sum_{s \in V} \sum_{p \in V} T^{c}_{sp} x_{spk} \leq SRT, \hspace*{0.3 cm} \forall k \in K_{1}
\end{equation}
\begin{equation}
\sum_{s \in V} \sum_{p \in V} T^{h}_{sp} x_{spk} \leq SRT, \hspace*{0.3 cm} \forall k \in K_{2}
\end{equation}
\begin{equation}
\begin{split}
x_{spk} \in \{0,1\} \hspace*{0.1 cm} \forall s,p \in V,s \neq p, & \hspace*{0.1 cm} \forall k \in K \hspace*{0.2 cm} \\ y_{ik} \in \{0,1\}, \hspace*{0.1 cm} i \in V_{1} \hspace*{0.1 cm} \forall k \in K & \\ v_{ijkg} \in \mathbb{Z}^{+0}, \hspace*{0.1 cm} \forall i \in V_{1}, \hspace*{0.1 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall & k \in K, \hspace*{0.1 cm} \forall g \in G \\ z_{i} \in \{0,1\}, \hspace*{0.1 cm} \forall i \in V_{1}& \\ F_{ik} \in \{0,1\}, \hspace*{0.1 cm} i \in V_{1} \hspace*{0.1 cm} \forall & ,k \in K \\ u_{jkg} \in \mathbb{Z}^{+}, \hspace*{0.1 cm} j \in V_{2} \hspace*{0.1 cm} \forall k \in & K, \hspace*{0.1 cm} \forall g \in G
\end{split}
\end{equation}
有任何想法吗?
答案1
您是否考虑过使用align
环境而不是多个equation
环境?
您可以将多个等号与其对齐。以下是 MWE:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
asdasd asdasd
\begin{align}
\sum_{k \in K} \sum_{i \in V_{1}}v_{ijkg} &\leq d_{jg} \hspace*{0.3 cm} \forall j \in V_{2}, \hspace{0.1 cm} \forall g \in G \\
\sum_{i \in V_{1}} \sum_{j \in V_{2}} x_{ijk} &\leq 1, \hspace*{0.3 cm} \forall k \in K
\sum_{s \in V,s \neq j}x_{sjk}=y_{jk}, \hspace*{0.3 cm} \forall j \in V_{2}, \hspace*{0.1 cm} \forall k \in K \\
\sum_{k \in K}F_{ik} &\leq I \ast z_{i}, \hspace*{0.3 cm} \forall i \in V_{1}
\sum_{j \in V_{2}} x_{ijk} = F_{ik}, \hspace*{0.3 cm} \forall i \in V_{1} \hspace*{0.1 cm} \forall k \in K \\
\end{align}
\end{document}
我希望这有帮助。