SPB Git

Repository Public MIT Research preview

S05-F03-strategies-meme-budget.tex 4.0 KB 58 lines latex

1% S05-F03 — Troncature, priorisation, compaction : le même historique, le même budget, quatre résultats.2% Idée : chaque stratégie fait tenir l'historique, mais aucune n'est gratuite. Couper perd des faits selon3% leur POSITION ; prioriser les garde si quelqu'un a su les noter ; compacter garde l'essentiel mais peut4% perdre un détail. Scénario FICTIF ; la compaction est simulée par une règle (première phrase).5% DONNÉES : S05-F03-donnees.tex, généré par demos/src/atlas_s05/exporter_donnees_figure.py.6\input{S05-F03-donnees.tex}7\begin{tikzpicture}[x=1mm, y=1mm]8  \tikzset{9    msg/.style={draw=atlasFlow, fill=atlasPanel, text=atlasFg, line width=.9pt, rounded corners=1.2pt,10      minimum width=5.3mm, minimum height=5.3mm, inner sep=0pt, font=\AtlasTabularFont\AtlasSizeTiny},11    msg cle/.style={msg, draw=atlasValid, line width=1.4pt, font=\AtlasTabularFont\AtlasSizeTiny\bfseries},12    msg bruit/.style={msg, draw=atlasRule, text=atlasMuted},13    msg perdu/.style={msg, draw=atlasRule, fill=none, text=atlasRule, dash pattern=on 1.6pt off 1.4pt},14    msg resume/.style={msg, draw=atlasUncertain, dash pattern=on 2.4pt off 1.8pt},15  }16  % ---------- Ligne de référence : l'historique complet ----------17  \node[atlas heading, anchor=west] at (0,41.2) {Historique complet};18  \foreach \nature [count=\i] in \AtlasFigStratNature {19    \pgfmathsetmacro{\x}{37.5+(\i-1)*6.3}20    \if c\nature \node[msg cle] at (\x,41.2) {\i};\fi21    \if n\nature \node[msg] at (\x,41.2) {\i};\fi22    \if h\nature \node[msg bruit] at (\x,41.2) {\i};\fi23  }24  \node[atlas note, anchor=south, text=atlasValid] at (37.5,44.6) {fauteuil};25  \node[atlas note, anchor=south, text=atlasValid] at (50.1,44.6) {dimanche};26  \node[atlas note, anchor=south, text=atlasValid] at (87.9,44.6) {14 mars};27  \node[atlas note, anchor=south, text=atlasValid] at (100.5,44.6) {courriel};28  \draw[atlasMuted, line width=.5pt] (62.7,45.2) -- (62.7,46.4) -- (81.6,46.4) -- (81.6,45.2);29  \node[atlas note, anchor=south] at (72.15,46.6) {hors sujet};30  \node[atlas note, anchor=west, align=left] at (111,41.2) {\AtlasFigStratHistorique\ jetons pour un\\ budget de \AtlasFigStratBudget};31  \draw[atlasRule, line width=.5pt] (0,36.6) -- (142,36.6);32  % ---------- Quatre stratégies ----------33  \foreach \y/\nom/\detail/\etats/\jetons/\faits/\verdict in {34      31/Couper la fin/troncature/\AtlasFigStratCouperEtats/\AtlasFigStratCouperJetons/\AtlasFigStratCouperFaits/atlasHazard,35      22.4/Fenêtre glissante/troncature/\AtlasFigStratGlissanteEtats/\AtlasFigStratGlissanteJetons/\AtlasFigStratGlissanteFaits/atlasHazard,36      13.8/Priorisation/notes fixées d'avance/\AtlasFigStratPrioriteEtats/\AtlasFigStratPrioriteJetons/\AtlasFigStratPrioriteFaits/atlasValid,37      5.2/Compaction/résumé par règle/\AtlasFigStratCompactionEtats/\AtlasFigStratCompactionJetons/\AtlasFigStratCompactionFaits/atlasUncertain}{38    \node[atlas label, anchor=west, font=\AtlasSizeLabel\bfseries] at (0,\y+1.5) {\nom};39    \node[atlas note, anchor=west] at (0,\y-2) {\detail};40    \edef\liste{\etats}41    \foreach \etat [count=\i] in \liste {42      \pgfmathsetmacro{\x}{37.5+(\i-1)*6.3}43      \if g\etat \node[msg] at (\x,\y) {\i};\fi44      \if p\etat \node[msg perdu] at (\x,\y) {\i};\fi45      \if r\etat \node[msg resume] at (\x,\y) {\i};\fi46    }47    \node[atlas label, anchor=west, font=\AtlasTabularFont\AtlasSizeLabel] at (111,\y+1.5) {\jetons\ jetons};48    \node[atlas note, anchor=west, text=\verdict, font=\AtlasSizeTiny\bfseries] at (111,\y-2) {faits clés : \faits\ sur \AtlasFigStratNombreFaits};49  }50  % Légende51  \node[msg, minimum width=3.6mm, minimum height=3.6mm] at (39,-1.6) {};52  \node[atlas note, anchor=west] at (41.6,-1.6) {gardé};53  \node[msg perdu, minimum width=3.6mm, minimum height=3.6mm] at (56,-1.6) {};54  \node[atlas note, anchor=west] at (58.6,-1.6) {abandonné};55  \node[msg resume, minimum width=3.6mm, minimum height=3.6mm] at (78,-1.6) {};56  \node[atlas note, anchor=west] at (80.6,-1.6) {réduit à sa première phrase};57\end{tikzpicture}58
Files main
Menu

Theme