I have a code with an equation:
\begin{align*}
&min(\norm{[\hat{w}(k)-\hat{y}(k)-&M^P \Delta \hat{u}^P (k)]-M \Delta \hat{u}(k)}_\psi^2 +\norm{\Delta \hat{u}(k)}_\Lambda^2)\\
&\text{\textit{za podmínek}} &-\Delta U_{max} \leq \Delta\hat{u}(k) \leq \Delta U_{max}\\
&&U_{min}\leq U(k-1)+J \Delta \hat{u}(k)\leq U_{max}\\
&&Y_{min} \leq \hat{y}^0 (k)+M\Delta \hat{u}(k) \leq Y_{max}
\end{align*}
The output is
But I need the following output:
First blue line first align, second blue line second align. Both align left.
How can I achieve this?
Thanks for help.
Best Answer
You can do that with the
alignat*
environment. Here are two layouts: