Repository Public MIT Research preview
1% S09-F03 — Deux traces réelles de la démonstration, étape par étape.2% DONNÉES : S09-F03-donnees.tex, généré par demos/src/atlas_s09/exporter_donnees_figure.py.3% Idée : une trace se lit comme une frise. En haut, la boucle avance de demande en demande et4% s'arrête sur son objectif. En bas, la même boucle sans détection d'absence de progrès répète un5% échec jusqu'au budget : le critère d'arrêt manquant se VOIT.6\input{S09-F03-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8 \def\pas{3.4}9 \def\ao{o}\def\aa{a}\def\ar{r}10 % \AtlasNeufFrise{<liste de cases>}{<liste de groupes>}{<y du bas des cases>}{<graduations>}11 \newcommand{\AtlasNeufFrise}[4]{%12 \foreach \n/\g/\ok in #1 {13 \pgfmathsetmacro{\x}{(\n-1)*\pas}14 \ifnum\ok=015 \draw[draw=atlasHazard, fill=atlasPanel, line width=.8pt] (\x+.35,#3) rectangle ++(\pas-.7,4);16 \draw[draw=atlasHazard, line width=.9pt] (\x+1,#3+1.3) -- ++(1.4,1.4) (\x+1,#3+2.7) -- ++(1.4,-1.4);17 \else18 \ifx\g\ar19 \draw[draw=atlasUncertain, fill=atlasUncertain, line width=.8pt]20 (\x+\pas/2,#3-.4) -- ++(1.9,2.4) -- ++(-1.9,2.4) -- ++(-1.9,-2.4) -- cycle;21 \else\ifx\g\aa22 \draw[draw=atlasFlow, fill=atlasFlow, line width=.8pt] (\x+.35,#3) rectangle ++(\pas-.7,4);23 \else24 \draw[draw=atlasFlow, fill=atlasPanel, line width=.8pt] (\x+.35,#3) rectangle ++(\pas-.7,4);25 \fi\fi26 \fi27 }28 \foreach \nom/\debut/\fin in #2 {29 \pgfmathsetmacro{\xa}{(\debut-1)*\pas+.35}30 \pgfmathsetmacro{\xb}{\fin*\pas-.35}31 \draw[atlas link] (\xa,#3+5.2) -- ++(0,1.1) -- (\xb,#3+6.3) -- ++(0,-1.1);32 \node[atlas note, anchor=south, inner sep=1pt, text=atlasFg] at ({min((\xa+\xb)/2,\xa+8.5)},#3+6.5) {\nom};33 }34 \foreach \n in {#4}{35 \pgfmathsetmacro{\x}{(\n-.5)*\pas}36 \node[atlas note, anchor=north, inner sep=1pt] at (\x,#3-.9) {\n};37 }38 }39 % ---------- Essai de référence ----------40 \node[atlas heading, anchor=west] at (0,49.4) {Politique prudente, toutes les bornes};41 \AtlasNeufFrise{\AtlasNeufTraceRef}{\AtlasNeufGroupesRef}{35}{1,10,20,29}42 \node[atlas tag=atlasValid, anchor=west] at (\AtlasNeufRefEtapes*\pas+2.4,39.2) {arrêt : objectif atteint};43 \node[atlas note, anchor=west] at (\AtlasNeufRefEtapes*\pas+2.4,34.6) {\AtlasNeufRefEtapes\ étapes, \AtlasNeufRefMots\ mots lus};44 % ---------- Essai défectueux ----------45 \node[atlas heading, anchor=west] at (0,26) {Politique obstinée, registre en panne, budget pour seule borne};46 \AtlasNeufFrise{\AtlasNeufTraceObs}{\AtlasNeufGroupesObs}{11}{1,10,20,30,40}47 \node[atlas tag=atlasHazard, anchor=east] at (\AtlasNeufObsEtapes*\pas,21) {arrêt : budget épuisé, \AtlasNeufObsEtapes\ étapes, \AtlasNeufObsMots\ mots lus};48 \draw[draw=atlasUncertain, line width=1pt, dash pattern=on 2.4pt off 1.6pt] (\AtlasNeufBorneEtapes*\pas,8.6) -- ++(0,8.6);49 \node[atlas note, anchor=north west, text=atlasFg] at (\AtlasNeufBorneEtapes*\pas+1,7.4)50 {avec la détection « sans progrès » : arrêt ici, à l'étape \AtlasNeufBorneEtapes};51 % ---------- Légende ----------52 \draw[draw=atlasFlow, fill=atlasPanel, line width=.8pt] (0,-1) rectangle ++(2.7,3.2);53 \node[atlas note, anchor=west] at (3.4,.6) {observer};54 \draw[draw=atlasFlow, fill=atlasFlow, line width=.8pt] (19,-1) rectangle ++(2.7,3.2);55 \node[atlas note, anchor=west] at (22.4,.6) {agir};56 \draw[draw=atlasUncertain, fill=atlasUncertain, line width=.8pt] (33.6,-1.6) -- ++(1.9,2.2) -- ++(-1.9,2.2) -- ++(-1.9,-2.2) -- cycle;57 \node[atlas note, anchor=west] at (36.2,.6) {action risquée, approuvée};58 \draw[draw=atlasHazard, fill=atlasPanel, line width=.8pt] (74,-1) rectangle ++(2.7,3.2);59 \draw[draw=atlasHazard, line width=.9pt] (74.65,-.1) -- ++(1.4,1.4) (74.65,1.3) -- ++(1.4,-1.4);60 \node[atlas note, anchor=west] at (77.4,.6) {échec de l'outil};61\end{tikzpicture}62