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

18 lines
435 B
TeX

\begin{algorithmic}
\Function{ILS}{$P, S, N$}
\State $S \gets \Call{rechercheLocaleInitiale}{P, S}$
\State $S^{*} \gets S$
\For{$i = 1..N$}
\State $S' \gets \Call{mutation}{S}$
\State $S' \gets \Call{rechercheLocale}{P, S'}$
\State $S^{*} \gets \Call{sélection}{S^{*}, S'}$
\If{\Call{critèreAcceptation}{$S'$}}
\State $S \gets S'$
\EndIf
\EndFor
\State \Return $S^{*}$
\EndFunction
\end{algorithmic}