0

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?

  • I assume you meant \left\{ before your array environment? – Au101 Apr 24 '17 at 20:18
  • 1
    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 Apr 24 '17 at 20:27
  • 2
    Please also state what you believe the "right place" for the indexes of summation should be. – Mico Apr 24 '17 at 20:33
1

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.