SPB Git

Repository Public MIT Research preview

MA03-F07-frontiere-pareto.tex 3.7 KB 46 lines latex

1% MA03-F07 — Frontière de Pareto qualité–coût–latence des quatre organisations.2% Idée : aucune organisation ne « gagne ». Dans le plan qualité–coût, trois points ne sont dominés par aucun autre :3% ils forment la frontière, et choisir entre eux est un arbitrage. Le superviseur est dominé dans ce plan (plus cher4% et pas plus exact que l'agent seul) mais il est le plus rapide : avec la latence pour troisième critère, les quatre5% points sont sur la frontière. Données : lignes « ensemble » du banc du moteur (architectures.csv, 800 demandes,6% graines 0 à 199 sur quatre scénarios) ; frontière calculée par atlas_ma03.statistiques.frontiere_de_pareto.7\input{MA03-donnees.tex}%8\begin{tikzpicture}[x=1mm, y=1mm]9  \path (0,0) rectangle (142,51);10  \node[atlas tag=maDecision, anchor=north west] at (0,51.6) {SIMULATION : \MCDemandesEnsemble\ DEMANDES · BARRES = IC À 95 \% · TARIF ILLUSTRATIF 1 / 5 / 50};11  % Repère : x = 16 + (crédits − 2000) × 0,0256 ; y = 9 + (justes − 81) × 4,612  \def\px#1{16+(#1-2000)*.0256}\def\py#1{9+(#1-81)*4.6}13  \foreach \v in {81,82,...,88}{\draw[maNeutre, line width=.3pt] (16,{\py{\v}}) -- (126,{\py{\v}});14    \node[atlas note, anchor=east, inner sep=1.5pt] at (16,{\py{\v}}) {\v};}15  \foreach \v in {2000,3000,4000,5000,6000}{\draw[maNeutre, line width=.6pt] ({\px{\v}},9) -- ++(0,-1.1);16    \pgfmathtruncatemacro{\k}{\v/1000}\node[atlas note, anchor=north, inner sep=1.5pt] at ({\px{\v}},7.8) {\k\,000};}17  \draw[maNeutre, line width=.8pt] (16,9) -- (126,9);18  \node[atlas note, anchor=north] at (71,3.6) {coût simulé d'une demande (crédits)};19  \node[atlas note, anchor=south, rotate=90] at (5.4,25) {éléments justes (\%)};20  \def\marquefront#1#2#3#4{\fill[maValide] ({\px{#1}},{\py{#2}}) circle[radius=1.5mm];21    \pgfmathparse{#1<3000 ? 12.4 : 0}\let\dy\pgfmathresult22    \pgfmathparse{#1>5500 ? 1 : 0}23    \ifnum\pgfmathresult=124      \node[atlas label, anchor=south east, inner sep=1pt] at ({\px{#1}-2.4},{\py{#2}+4.2}) {\textbf{#3}};25      \node[atlas note, anchor=south east, inner sep=1pt, font=\AtlasSizeTiny] at ({\px{#1}-2.4},{\py{#2}+1}) {latence simulée #4 s};26    \else27      \node[atlas label, anchor=north west, inner sep=1pt] at ({\px{#1}+2.4},{\py{#2}-.6+\dy}) {\textbf{#3}};28      \node[atlas note, anchor=north west, inner sep=1pt, font=\AtlasSizeTiny] at ({\px{#1}+2.4},{\py{#2}-4.4+\dy}) {latence simulée #4 s};29    \fi}30  \def\marquedomine#1#2#3#4{\draw[maRisque, fill=maFond, line width=1.3pt] ({\px{#1}-1.4},{\py{#2}-1.4}) rectangle ++(2.8,2.8);31    \node[atlas label, anchor=north west, inner sep=1pt] at ({\px{#1}+2.4},{\py{#2}-2}) {\textbf{#3}};32    \node[atlas note, anchor=north west, inner sep=1pt, font=\AtlasSizeTiny] at ({\px{#1}+2.4},{\py{#2}-5.8}) {latence simulée #4 s : le plus rapide};}33  % Frontière dans le plan qualité–coût34  \draw[maValide, line width=1.2pt] plot coordinates {\MCParetoFrontiere};35  \foreach \sig/\nom/\cr/\ju/\bas/\haut/\lat/\front in \MCParetoPoints {36    \draw[maTexte, line width=.8pt] ({\px{\cr}},{\py{\bas}}) -- ({\px{\cr}},{\py{\haut}});37    \draw[maTexte, line width=.8pt] ({\px{\cr}-.9},{\py{\bas}}) -- ++(1.8,0) ({\px{\cr}-.9},{\py{\haut}}) -- ++(1.8,0);38    \ifnum\front=1 \let\marque\marquefront \else \let\marque\marquedomine \fi39    \marque{\cr}{\ju}{\nom}{\lat}}40  \node[atlas note, anchor=north west, text=maValide, inner sep=1pt] at (48,{\py{84.25}}) {frontière qualité–coût};41  \fill[maValide] (104,14.6) circle[radius=1.2mm];42  \node[atlas note, anchor=west, text=maTexte] at (106.4,14.6) {non dominé};43  \draw[maRisque, fill=maFond, line width=1.3pt] (102.8,9.9) rectangle ++(2.4,2.4);44  \node[atlas note, anchor=west, text=maTexte] at (106.4,11.1) {dominé (qualité, coût)};45\end{tikzpicture}46
Files main
Menu

Theme