# equation error - help please

$$\begin{split} &\max_{x_{i, j}, \hat{x}_{i,j}, x_i^k} \left\{\pi_{Slave, i, t}(x_{i, j}, \hat{x}_{i,j}, x_i^k, p_k) =\\ &\sum_{j \in \Psi_{\varrho}} W_{j}(\hat{x}_{i, j}(t))\sum_{j \in \Psi_{\varepsilon}} U_{j}(x_{i,j}(t)) - \sum_{k=1}^N p_k(t) x_i^k(t)\right\} \\ &\text{subject to}\\ &0 \leq x_{i, j} (t)\leq \delta_{i,j}(t)\\ &\beta_{i,j} C_n(t) \leq \hat{x}_{i,j}(t) \leq \hat{\delta}_{i,j}(t)\\ &0 \leq x_i^k\leq q_k^i\\ &\sum_{j \in \Psi_{\varepsilon}} x_{i, j} (t) + \sum_{j \in \Psi_{\varrho}}\hat{x}_{i,j}(t) \leq \sum_{k\in N}x_i^k \end{split}$$

• Please also state your question: "what happens?", "what you expect?", "where you need help?". This is not just for you but for anyone else who might wander onto this question one day, looking for a solution to a similar problem. – Duck Dodgers Aug 7 '19 at 8:50
• Thanks . I've got "Extra }, or forgotten \right. \end{split}" this error message. i don't know what's the problem of \left and \right. – Mohammed AL-Mehdhar Aug 7 '19 at 15:00
• I'm using TexStudio . – Mohammed AL-Mehdhar Aug 7 '19 at 15:00

Like this?

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$\begin{split} &\max_{x_{i, j}, \hat{x}_{i,j}, x_i^k} \left\{\pi_{Slave, i, t}(x_{i, j}, \hat{x}_{i,j}, x_i^k, p_k)\right\} =\\ &\sum_{j \in \Psi_{\varrho}} W_{j}(\hat{x}_{i, j}(t))\sum_{j \in \Psi_{\varepsilon}} U_{j}(x_{i,j}(t)) - \sum_{k=1}^N p_k(t) x_i^k(t) \\ &\text{subject to}\\ &0 \leq x_{i, j} (t)\leq \delta_{i,j}(t)\\ &\beta_{i,j} C_n(t) \leq \hat{x}_{i,j}(t) \leq \hat{\delta}_{i,j}(t)\\ &0 \leq x_i^k\leq q_k^i\\ &\sum_{j \in \Psi_{\varepsilon}} x_{i, j} (t) + \sum_{j \in \Psi_{\varrho}}\hat{x}_{i,j}(t) \leq \sum_{k\in N}x_i^k \end{split}$$
\end{document}

• thanks for you reply. I've got this error "Extra }, or forgotten \right. \end{split}" , I'm using TexStudio – Mohammed AL-Mehdhar Aug 7 '19 at 14:58
• With MikTeX, I have no compilation errors regardless of the compilation engine. Do you have MikTeX or TeXlive? – AndréC Aug 7 '19 at 15:06
• yes I have MikeTex but i used to use TexStudio. there is any different in the compilation ? – Mohammed AL-Mehdhar Aug 7 '19 at 15:08
• Normally the editor does not have any importance on the compilation. Which version of MikTeX do you have? Is it up to date? – AndréC Aug 7 '19 at 15:10
• I'm using MikeTex 2.9. – Mohammed AL-Mehdhar Aug 7 '19 at 15:12