Repository Public MIT Research preview
1% MA01-F13 — L'exemple guidé exécuté par un seul exécutant, puis par deux, avec le coût de coordination.2% Idée : deux exécutants suffisent à atteindre le chemin critique ; un troisième n'achèterait rien, et la3% coordination s'ajoute au total. Le gain réel (1,38) est loin du « deux fois plus vite ».4% Données : ordonnancement de liste calculé par atlas_ma01/graphe.py (MA01-donnees.tex). Minutes simulées.5\input{MA01-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \path (0,0) rectangle (142,54);8 \def\ech{2.36}% mm par minute9 \def\xo{20}%10 % Un seul exécutant11 \node[atlas note, anchor=east, text=maTexte] at (\xo-1.5,45) {1 exécutant};12 \foreach \t/\deb/\fin/\crit in \MAExPlanUn {13 \ifnum\crit=1 \def\st{ma tache critique}\else\def\st{ma tache}\fi14 \node[\st, anchor=west, minimum width=(\fin-\deb)*\ech mm-.5mm, minimum height=6.4mm, inner xsep=0pt, font=\AtlasSizeTiny\bfseries] at (\xo+\deb*\ech+.25,45) {\t};}15 \draw[maValide, line width=1.2pt] (\xo+\MAExTseq*\ech,40.6) -- ++(0,8.8);16 \node[atlas note, anchor=west, text=maValide, font=\AtlasSizeTiny\bfseries] at (\xo+\MAExTseq*\ech-21,38) {$\Tseq$ = \MAExTseq\ min};17 % Deux exécutants + coordination18 \node[atlas note, anchor=east, text=maTexte] at (\xo-1.5,26.4) {exécutant 1};19 \node[atlas note, anchor=east, text=maTexte] at (\xo-1.5,18.4) {exécutant 2};20 \node[atlas note, anchor=east, text=maTexte] at (\xo-1.5,10.4) {superviseur};21 \foreach \t/\deb/\fin/\k/\crit in \MAExPlanDeux {22 \ifnum\crit=1 \def\st{ma tache critique}\else\def\st{ma tache}\fi23 \pgfmathsetmacro{\y}{26.4-8*\k}24 \node[\st, anchor=west, minimum width=(\fin-\deb)*\ech mm-.5mm, minimum height=6.4mm, inner xsep=0pt, font=\AtlasSizeTiny\bfseries] at (\xo+2*\ech+\deb*\ech+.25,\y) {\t};}25 \draw[maDecision, fill=maPanneau, line width=.9pt] (\xo,7.2) rectangle ++(2*\ech,6.4);26 \draw[maDecision, fill=maPanneau, line width=.9pt] (\xo+2*\ech+\MAExTcrit*\ech,7.2) rectangle ++(2*\ech,6.4);27 \node[atlas note, anchor=west, text=maDecision] at (\xo+2*\ech+1,10.4) {planifier (2 min)};28 \node[atlas note, anchor=east, text=maDecision] at (\xo+2*\ech+\MAExTcrit*\ech-1,10.4) {lire les retours, assembler (2 min)};29 \draw[maValide, line width=1.2pt] (\xo+\MAExTpar*\ech,5.6) -- ++(0,25.4);30 \node[atlas note, anchor=west, text=maValide, font=\AtlasSizeTiny\bfseries, align=left] at (\xo+\MAExTpar*\ech+1.4,22.4) {$\Tpar$ = \MAExTcrit\ + \MAExTcoord\\ = \MAExTpar\ min\\[.8mm] $S$ = \MAExGain};31 % Axe32 \draw[maNeutre, line width=.8pt, -{Stealth[length=4pt,width=3.6pt]}] (\xo,3.6) -- ++(121,0);33 \foreach \t in {0,10,20,30,40,50}{\draw[maNeutre, line width=.6pt] (\xo+\t*\ech,3.6) -- ++(0,-1.1) node[atlas note, anchor=north, inner sep=1pt] {\t};}34 \node[atlas note, anchor=south east] at (142,4.2) {min};35 \node[atlas tag=maRisque, anchor=north west] at (0,54.6) {CONTOUR CORAIL = CHEMIN CRITIQUE};36\end{tikzpicture}37