I want to align the lines inside an aligned that is nested inside a split with the rest of the equation.
This is an example:
\usepackage{amsmath}
\begin{equation}
\begin{split}
\text{max:}
\quad & A,\\
\text{s.t.:}
\quad & B,\\
& \left.
\begin{aligned}
& C,\\
& D,\\
\end{aligned}
\right\} \quad(\text{stuff}),\\
& E.
\end{split}
\end{equation}

I would like C and D in the rendering above to be aligned with A, B, and E.
I understand that \left. is what creates that space, but I don't know what to replace it with (Whatever I replace it with, I get a Missing delimiter error).



aligned, sometimes it becomes necessary to use\!. For details on\!, read What commands are there for horizontal spacing? – Apr 29 '15 at 15:36