Changement apporté à l'annexe 2.
This commit is contained in:
parent
165d59db2e
commit
36bfb2df3f
2 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
\label{sec:AnnexePseudo}
|
||||
\begin{algorithm}
|
||||
\DontPrintSemicolon
|
||||
\KwData{nbEmployees, maxBacktrack, nbRecoveryActions, alreadyPerformedMatrix $\leftarrow$ False, currentRecoveredSchedule, solutionFound $\leftarrow$ 0}
|
||||
\KwData{nbEmployees, maxBacktrack, nbRecoveryActions $\leftarrow$ totalNumberRecoveryActions, alreadyPerformedMatrix $\leftarrow$ False, currentRecoveredSchedule, solutionFound $\leftarrow$ False}
|
||||
\KwResult{currentRecoveredSchedule}
|
||||
\While{$\neg$solutionFound $\wedge$ nbBacktrack $<$ maxBacktrack}{
|
||||
\If{nbAvailRecoveryActions $>$ 0}{
|
||||
|
@ -13,15 +13,17 @@
|
|||
}
|
||||
\Else{
|
||||
Erase changes made on currentRecoveredSchedule\;
|
||||
nbRecoveryActions $\leftarrow$ totalNumberRecoveryActions\;
|
||||
nbBacktrack++\;
|
||||
}
|
||||
\If{nbAvailRecoveryActions = 0}{
|
||||
solutionFound $\leftarrow$ True\;
|
||||
}
|
||||
\ElseIf{nbBacktrack mod nbEmployees = 0}{
|
||||
Erase changes made on currentRecoveredSchedule\;
|
||||
initialize alreadyPerformedMatrix\;
|
||||
}
|
||||
Erase changes made on currentRecoveredSchedule\;
|
||||
initialize alreadyPerformedMatrix\;
|
||||
nbRecoveryActions $\leftarrow$ totalNumberRecoveryActions\;
|
||||
}
|
||||
}
|
||||
\caption{Algorithme de recouvrement}
|
||||
\end{algorithm}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue