I have a one-line equation that I want to use just like a statement in algorithmic. I tried with flalign and the equation still goes into the center. Could you please tell me how to fix that? Here is my MWE:
\begin{algorithm}
\begin{algorithmic}
\State
\begin{flalign}
E_i &= \arg\!\max_{E\in \mathcal{E}} F(E)
\end{flalign}
\end{algorithmic}
\end{algorithm}
The reason I want to use equation instead of simple math mode is that I want {E\in \mathcal{E} to be properly under argmax, rather than a subscript. So if there is a way to do that, I'm happy with the simple $ instead of equation.
