I want to format my optimization problem like this (see picture for results):
\documentclass{article}\usepackage{amsmath}\usepackage{amssymb}\usepackage{mathtools}\DeclareMathOperator*{\minimize}{minimize}\begin{document}\begin{alignat}{-1}&\mathrlap{\minimize_{x \in \mathbb{R}^n} \quad \sum_{t=1}^T f_t(x) + \sum_{t=1}^T g_t(x) + \sum_{t=1}^T h_t(x) + \sum_{i=1}^n \sum_{j=1}^n \sum_{k=1}^n F_{ijk}(x) } \\&\text{subject to} & \quad && \sum_{i=1}^n a_{ij} x_i &\leq b_j, \quad && j = 1, \dots, m \\& & \quad && \sum_{i=1}^n c_{ij} x_i &\leq d_j, \quad && j = 1, \dots, m\end{alignat}\end{document}
The problem is that the first row clashes with the equation numbering. One solution is to add \hspace{...}
to one of the constraint rows to make sure that there is enough space for the numbering, but is there a cleaner way that does not need manual tuning?