Edited
I am having trouble using the align
environment, which I've read is a better alternative to eqnarray
to align equations.
Hereafter I display the PDF output of my Latex code:
I would like the max
to be aligned with the \forall
:
The code that I've written is the following:
\begin{align*}
\max_{\lambda,\lambda_0} M
\\
\forall i \in \{1,...,n\}, &\; \frac{y_i f(\mathbf{x}_i)}{\|\vec{\lambda}\|} \geq M
\\
&\; \Leftrightarrow y_i \left(\frac{\vec{\lambda}^{\:T} \mathbf{x}_i+\lambda_0}{\|\vec{\lambda}\|}\right) \geq M
\end{align*}
Would someone kindly point out what am I getting wrong?