SPB Git

Repository Public MIT Research preview

S09-F02-boucle-agent.tex 3.4 KB 50 lines latex

1% S09-F02 — La boucle d'agent : décider, faire approuver, agir, observer, mettre à jour, s'arrêter2% (figure phare 13). Idée : un agent est une boucle autour d'un modèle. Tout ce qui le borne est3% dessiné : la liste fermée d'outils (frontière), le point d'approbation avant une action risquée,4% et quatre arrêts explicites, dont trois sont des échecs à traiter.5\begin{tikzpicture}[x=1mm, y=1mm]6  % ---------- Rangée du haut : décider, risque, agir ----------7  \node[atlas block, text width=17mm, minimum height=11mm] (obj) at (10.5,38) {\textbf{Objectif}\\ fixé par une personne};8  \node[atlas block strong, text width=19mm, minimum height=11mm] (dec) at (38,38) {\textbf{Décider}\\ plan, puis une action};9  \node[atlas gate, text width=13mm] (ris) at (70,38) {Action\\ risquée ?};10  \node[atlas block flow, text width=18mm, minimum height=11mm] (agi) at (102,38) {\textbf{Agir}\\ un outil de la liste};11  \node[atlas block, text width=13mm, minimum height=11mm] (mon) at (132,38) {\textbf{Monde}\\ simulé};12  \draw[atlas arrow] (obj) -- (dec);13  \draw[atlas arrow] (dec) -- (ris);14  \draw[atlas arrow] (ris.east) -- node[atlas note, above] {non} (agi.west);15  \draw[atlas arrow] (agi) -- (mon);16  % ---------- Point d'approbation ----------17  \node[atlas block uncertain, text width=20mm, minimum height=9mm] (app) at (72,20.6) {\textbf{Approbation}\\ humaine};18  \draw[atlas arrow, draw=atlasUncertain] (ris.south) -- node[atlas note, left, pos=.45] {oui} (70,25.3);19  \draw[atlas arrow valid] (app.east) -| node[atlas note, pos=.26, above] {accordée} (97,32.5);20  \draw[atlas arrow hazard] (78,15.9) |- (100,14) -- (100,11.4);21  \node[atlas note, anchor=west, text=atlasHazard] at (85,15.8) {refusée};22  % ---------- Rangée du bas : observer, mettre à jour, arrêt ----------23  \node[atlas block flow, text width=23mm, minimum height=11mm] (obs) at (100,6) {\textbf{Observer}\\ résultat, erreur ou refus};24  \node[atlas block flow, text width=17mm, minimum height=11mm] (maj) at (64,6) {\textbf{Mettre à jour}\\ état et trace};25  \node[atlas gate, text width=9mm] (arr) at (36,6) {Arrêt ?};26  \draw[atlas arrow] (mon.south) |- (obs.east);27  \draw[atlas arrow] (obs) -- (maj);28  \draw[atlas arrow] (maj) -- (arr);29  \draw[atlas arrow] (arr.north) -- (36,32.5);30  \node[atlas note, anchor=west, align=left] at (37.4,25.6) {non : tour suivant,\\ avec l'état à jour};31  % ---------- Frontière : la liste fermée ----------32  \draw[atlas boundary] (120.4,1) -- (120.4,45.5);33  \node[atlas tag=atlasHazard] at (120.4,48) {FRONTIÈRE : LISTE FERMÉE D'OUTILS};34  % ---------- Les quatre arrêts ----------35  \draw[atlas arrow, draw=atlasUncertain] (arr.west) -- node[atlas note, above, pos=.45] {oui} (23.4,6);36  \draw[atlas link] (22.6,.6) -- (22.6,23.6);37  \node[atlas note, anchor=south west] at (0,24.4) {Quatre arrêts explicites};38  \node[atlas tag=atlasValid, anchor=east] at (21.4,21) {objectif atteint};39  \node[atlas tag=atlasUncertain, anchor=east] at (21.4,15.1) {budget épuisé};40  \node[atlas tag=atlasUncertain, anchor=east] at (21.4,9.2) {sans progrès};41  \node[atlas tag=atlasHazard, anchor=east] at (21.4,3.3) {erreur};42  % ---------- Numéros ----------43  \node[atlas step] at (dec.north west) {1};44  \node[atlas step=atlasUncertain] at (61.5,44.6) {2};45  \node[atlas step] at (agi.north west) {3};46  \node[atlas step] at (obs.north east) {4};47  \node[atlas step] at (maj.north west) {5};48  \node[atlas step=atlasUncertain] at (28.6,12) {6};49\end{tikzpicture}50
Files main
Menu

Theme