For typesetting a mathematical program I use the subequations environment to number the equations. The restrictions are aligned using the alignat environment (see MWE1).
What I would like to achieve is that the objective equation should be centred just the way it is centred in the equation environment, but without effecting the alignment of the restriction equations (desired alignment see MWE2).
The problem with MWE2 is the wrong vertical spacing between the objective equation and the s.t.
line and the wrong numbering of the objective equation which should be the same as in MWE1.
Nonsense math. program as MWE1:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\begin{subequations}
\begin{alignat}{3}
\shortintertext{Objective Function:}
\min x \\
\shortintertext{s.t.:}
& \sum_{p \in P} (x_p + x_p) x_{a, m, l} && \leq M & \qquad & , \forall p \in P \\
& \sum_{q \in Q} x_q x_{a, m, l} && \leq M & \qquad & , \forall q \in Q
\end{alignat}
\end{subequations}
\end{document}
Nonsense math. program as MWE2:
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\noindent Objective Function:
\begin{equation}
\min x
\end{equation}
\begin{subequations}
\begin{alignat}{3}
\shortintertext{s.t.:}
& \sum_{p \in P} (x_p + x_p) x_{a, m, l} && \leq M & \qquad & , \forall p \in P \\
& \sum_{q \in Q} x_q x_{a, m, l} && \leq M & \qquad & , \forall q \in Q
\end{alignat}
\end{subequations}
\end{document}