Repository Public MIT Research preview
1% MA01-F04 — Graphe de précédence de l'exemple guidé, placé sur l'axe du temps, chemin critique surligné.2% Idée : chaque tâche est une barre de sa durée, posée à sa date au plus tôt ; la chaîne sans marge (corail,3% trait fort) fixe la durée minimale : aucun exécutant supplémentaire ne la raccourcit.4% Données : MA01-donnees.tex (atlas_ma01/exemple_guide.py). Durées en minutes simulées, choisies pour le cours.5\input{MA01-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \path (0,0) rectangle (142,54);8 \def\ech{3.75}% mm par minute9 \foreach \t/\y in {A/29,B/29,D/29,E/29,H/29,J/29,G/42,F/42,C/15,I/15}{\expandafter\xdef\csname MAcouloir-\t\endcsname{\y}}10 \foreach \t/\lib/\d/\deb/\fin/\crit in \MAExTaches {11 \edef\y{\csname MAcouloir-\t\endcsname}12 \ifnum\crit=113 \node[ma tache critique, anchor=west, minimum width=\d*\ech mm-.8mm, inner xsep=0pt] (\t) at (8+\deb*\ech+.4,\y) {\textbf{\t}\,·\,\d};14 \else15 \node[ma tache, anchor=west, minimum width=\d*\ech mm-.8mm, inner xsep=0pt] (\t) at (8+\deb*\ech+.4,\y) {\textbf{\t}\,·\,\d};16 \fi}17 % Arêtes hors chemin critique (les arêtes critiques sont les jointures des barres corail)18 \draw[atlas arrow muted] ([xshift=-2.5mm]A.north east) -- ([xshift=2.5mm]G.south west);19 \draw[atlas arrow muted] ([xshift=-2.5mm]A.south east) -- ([xshift=2.5mm]C.north west);20 \draw[atlas arrow muted] (C.east) -| (D.south);21 \draw[atlas arrow muted] ([xshift=-2.5mm]D.north east) -- ([xshift=2.5mm]F.south west);22 \draw[atlas arrow muted] (F.east) -| ([xshift=3mm]H.north west);23 \draw[atlas arrow muted] ([xshift=-2.5mm]E.south east) -- ([xshift=2.5mm]I.north west);24 \draw[atlas arrow muted] (I.east) -| ([xshift=-4mm]J.south);25 \draw[atlas arrow muted] (G.east) -- ++(7,0) |- (120,50.6) -- (120,50.6 |- J.north);26 % Marges (retard possible sans allonger le total)27 \node[atlas note, anchor=south west] at ([yshift=.3mm]G.north west) {marge \MAExMargeG};28 \node[atlas note, anchor=south west] at ([yshift=.3mm]F.north west) {marge \MAExMargeF};29 \node[atlas note, anchor=north west] at ([yshift=-.3mm]C.south west) {marge \MAExMargeC};30 \node[atlas note, anchor=north west] at ([yshift=-.3mm]I.south west) {marge \MAExMargeI};31 % Axe du temps32 \draw[maNeutre, line width=.8pt, -{Stealth[length=4pt,width=3.6pt]}] (8,5.5) -- ++(132,0);33 \foreach \t in {0,4,10,13,20,28,33}{\draw[maNeutre, line width=.6pt] (8+\t*\ech,5.5) -- ++(0,-1.2) node[atlas note, anchor=north, inner sep=1pt] {\t};}34 \node[atlas note, anchor=north east] at (141,4.6) {min};35 \draw[maRisque, line width=.6pt, dash pattern=on 2pt off 1.6pt] (8+33*\ech,5.5) -- (8+33*\ech,25);36 \node[atlas tag=maRisque, anchor=north west] at (0,54.4) {CHEMIN CRITIQUE \MAExChemin\ : \MAExTcrit\ MIN};37\end{tikzpicture}38