I was trying to write a optimization formula which has two part as objective and 2 constraints. But, the objective function is a little bigger and i want to see it in multiline not in single line. But it's not working the way i want it to work. Can someone provide me some good suggestion about how to make it in multiline while the objective function is one equation and constraints are assigned as separate equation. The LaTeX code is like this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
\label{green}
\text{minimize } & \quad {\sum\nolimits_{\tau=t}^{t+T-1}}s(\tau)[V(\t)-x(\tau)-y(\tau)-Y(\tau)] +{\sum\nolimits_{\tau=t}^{t+T-1}}[(X(\tau)+Y(\tau))(b(\tau)-v(\tau))] \\
\text{subject to } & \quad \quad {something1}\\
& \quad \quad {something 2}
\end{align}
\end{document}



\documentclassand the appropriate packages that sets up the problem.While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.
– Peter Grill Oct 02 '14 at 14:06alignenvironment. I presume that the ones in the example code were due to copy paste. – egreg Oct 02 '14 at 15:18