Summation indices

1,362

Based on guessing:

enter image description here

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
    \begin{Bmatrix}
\sum\limits_{s\in S} \sum\limits_{e\in E} \sum\limits_{p\in P}
      & X(i,e,p,d,s)      \ge 1       \\[2.5ex]
\sum\limits_{s\in S} \sum\limits_{e\in E} \sum\limits_{p\in P}
      & X(i,e,p,d+1,s)    \ge 1
    \end{Bmatrix}
\Rightarrow W_{i,d} = 1
\end{equation}


\begin{equation}
    \begin{Bmatrix}
\sum\limits_{s\in S} \sum\limits_{e\in E} \sum\limits_{p\in P}
      & X_{i,e,p,d,s}      \ge 1       \\[2.5ex]
\sum\limits_{s\in S} \sum\limits_{e\in E} \sum\limits_{p\in P}
      & X_{i,e,p,d+1,s}    \ge 1
    \end{Bmatrix}
\Rightarrow W_{i,d} = 1
\end{equation}

\end{document}
Share:
1,362
new123
Author by

new123

Updated on August 01, 2022

Comments

  • new123
    new123 over 1 year

    I'm trying to put 2 equations in 1 and get the summation indices in the right place. My code is:

    \begin{equation}
      \left
        \begin{array}{c}
          \sum_{s \in S} \sum_{e \in E} \sum_{p \in P}
          X_{i}_{e}_{p}_{d}_{s} \ge 1 \\ \\
          \sum_{s \in S} \sum_{e \in E} \sum_{p \in P}
          X_{i}_{e}_{p}_{d+1}_{s} \ge 1
        \end{array}
      \right \} \Rightarrow W_{i}_{d} = 1
    \end{equation}
    

    How can I fix this?

    • Au101
      Au101 over 6 years
      I assume you meant \left\{ before your array environment?
    • Mico
      Mico over 6 years
      Welcome to TeX.SE. Is X_{i}_{e}_{p}_{d+1}_{s} correct, i.e., are you trying to typeset a term with a quintuple [!!] subscript? Or should it be X_{i,e,p,d,s}?
    • Mico
      Mico over 6 years
      Please also state what you believe the "right place" for the indexes of summation should be.