thesis/src/alg/alsk/app/els.tex

21 lines
535 B
TeX

\begin{algorithmic}
\Function{ELS}{$P, S, N, M$}
\State $S \gets \Call{rechercheLocaleInitiale}{P, S}$
\State $S^* \gets S$
\For{$i = 1..N$}
\For{$j = 1..M$}
\State $S_j \gets \Call{mutation}{S}$
\State $S_j \gets \Call{rechercheLocale}{P, S_j}$
\EndFor
\State $S' \gets \Call{sélection1}{\{S_1, S_2, \dots, S_{M}\}}$
\State $S^* \gets \Call{sélection2}{S^*, S'}$
\If{\Call{critèreAcceptation}{$S'$}}
\State $S \gets S'$
\EndIf
\EndFor
\State \Return $S^*$
\EndFunction
\end{algorithmic}