\While{t $<$ maximum number of iterations}
\For {each search agent}
\State Update the position of current search agent by equation
\EndFor
\State Update a,A and C
\State Calculate fitness of all search agents
\State Update \textit{W$_{\alpha}$}, \textit{W$_{\beta}$} and \textit{W$_{\gamma}$}
\State t=t+1
当我写 while 时,它也会给出 'do',我怎样才能写 while 和 for 方程而不得到 do
•
luatex