diff --git a/trees/math-000E.tree b/trees/math-000E.tree index 32143fd..6e8d67a 100644 --- a/trees/math-000E.tree +++ b/trees/math-000E.tree @@ -267,4 +267,352 @@ cross/.default={1pt}} \end{tikzpicture} } +% \p{The following is from [Svdvoort/PhDThesis](https://github.com/Svdvoort/PhDThesis) but not working: +% } + +% \tikzfig{\verb<<<| + +% % \usetikzlibrary{positioning} +% % \usetikzlibrary{shapes,arrows, spy} +% % \usetikzlibrary{arrows.meta} +% % \usetikzlibrary{fit} +% % \usetikzlibrary{calc} +% % \usetikzlibrary{matrix} +% % \usetikzlibrary{patterns} +% % \usetikzlibrary{backgrounds} +% % \usetikzlibrary{shapes.gates.logic.US,trees,positioning,arrows} +% % \usetikzlibrary{shadows.blur} +% % \usetikzlibrary{3d} +% % \usetikzlibrary{decorations.pathreplacing} + +% % \usetikzlibrary{quotes} + +% % %%%%%%%%%%%%%%%%%%%%%%% +% % % pgf plots settings +% % %%%%%%%%%%%%%%%%%%%%%%% +% % \pgfplotsset{compat=1.15} +% % \usepgfplotslibrary{groupplots} +% % \usepgfplotslibrary{dateplot} + +% \newcommand{\Gls}[1]{#1} +% \newcommand{\Acrlong}[1]{#1} + +% \colorlet{lgray}{gray!20} + + +% \definecolor{input}{RGB}{238, 233, 233} +% \definecolor{input_border}{RGB}{139, 137, 137} +% \definecolor{convolution}{RGB}{253, 170, 170} +% \definecolor{convolution_border}{RGB}{238, 105, 105} +% \definecolor{pooling}{RGB}{210, 231, 213} +% \definecolor{pooling_border}{RGB}{184, 216, 90} +% \definecolor{other}{RGB}{254, 192, 163} +% \definecolor{other_border}{RGB}{254,150,102} +% \definecolor{dense}{RGB}{230, 222, 255} +% \definecolor{dense_border}{RGB}{207, 199, 229} +% \definecolor{activation}{RGB}{255, 210, 125} +% \definecolor{activation_border}{RGB}{255, 184, 76} +% \definecolor{dropout}{RGB}{187, 234, 255} +% \definecolor{dropout_border}{RGB}{114, 211, 254} +% \definecolor{conv_layer}{RGB}{249, 124, 124} +% \definecolor{conv_layer_border}{RGB}{174, 86, 86} +% \definecolor{collection_fill}{RGB}{205, 231, 209} +% \definecolor{collection_border}{RGB}{143, 161, 146} +% \definecolor{action_fill}{RGB}{170, 197, 210} +% \definecolor{action_border}{RGB}{118, 137, 147} +% \definecolor{object_fill}{RGB}{249, 253, 222} +% \definecolor{object_border}{RGB}{174, 177, 155} + +% \definecolor{SectionColor}{RGB}{240, 240, 240} +% \definecolor{SegmentationSectionColor}{RGB}{223,201,242} + + + +% % The following are colors for lines +% % \definecolor{color0}{HTML}{332288} +% % \definecolor{color1}{HTML}{88CCEE} +% % \definecolor{color2}{HTML}{44AA99} +% % \definecolor{color3}{HTML}{117733} +% % \definecolor{color4}{HTML}{999933} +% % \definecolor{color5}{HTML}{DDCC77} +% % \definecolor{color6}{HTML}{CC6677} +% % \definecolor{color7}{HTML}{882255} +% % \definecolor{color8}{HTML}{AA4499} + +% % Pale color scheme +% \definecolor{color0}{HTML}{77AADD} +% \definecolor{color0shade}{HTML}{92BBE3} +% \definecolor{color1}{HTML}{99DDFF} +% \definecolor{color1shade}{HTML}{7AB0CC} +% \definecolor{color2}{HTML}{44BB99} +% \definecolor{color2shade}{HTML}{36957A} +% \definecolor{color3}{HTML}{BBCC33} +% \definecolor{color4}{HTML}{76BB32} +% \definecolor{color4shade}{HTML}{5E9528} +% % \definecolor{color0}{HTML}{FCCFA3} +% % \definecolor{color1}{HTML}{F29F4E} +% % \definecolor{color2}{HTML}{B1B7D9} +% % \definecolor{color3}{HTML}{6174A7} +% % \definecolor{color4}{HTML}{67C9bA} +% \definecolor{color5}{HTML}{EEDD88} +% \definecolor{color5shade}{HTML}{BEB06C} +% \definecolor{color6}{HTML}{EE8866} +% \definecolor{color6shade}{HTML}{BE6C51} +% \definecolor{color7}{HTML}{FFAABB} +% \definecolor{color7shade}{HTML}{CC8895} +% \definecolor{color8}{HTML}{DDDDDD} +% \definecolor{color8shade}{HTML}{B0B0B0} + + + +% \def\edgecolor{rgb:blue,4;red,1;green,4;black,3} + +% \colorlet{ConvColor}{color0} +% \colorlet{PoolColor}{color3} +% \colorlet{OtherColor}{color2} +% \colorlet{GlobPoolColor}{color5shade} +% \colorlet{DropoutColor}{color4} +% \colorlet{ConcatColor}{color5} +% \colorlet{BatchColor}{color6} +% \colorlet{ConvReluColor}{color7} +% \colorlet{InputColor}{color8} + + + +% % \definecolor{ConvColor}{HTML}{77AADD} +% % \definecolor{ConvReluColor}{HTML}{FFAABB} +% % \definecolor{DropoutColor}{HTML}{76BB32} +% \definecolor{UpPoolColor}{RGB}{196,0,0} +% % \definecolor{PoolColor}{HTML}{99DDFF} +% \definecolor{DenseColor}{RGB}{104,166,145} +% % \definecolor{ConcatColor}{HTML}{EEDD88} +% % \definecolor{DenseColor}{HTML}{EE8866} +% \definecolor{DenseSoftMaxColor}{RGB}{222,236,244} +% \definecolor{ConnectColor}{RGB}{20, 33, 61} +% % \definecolor{GlobPoolColor}{RGB}{225,202,150} +% % \definecolor{InputColor}{HTML}{DDDDDD} +% % \definecolor{OtherColor}{RGB}{56,214,250} + +% \tikzstyle{line} = [draw, -latex'] + + +% \tikzset{fit margins/.style={/tikz/afit/.cd,#1, +% /tikz/.cd, +% inner xsep=\pgfkeysvalueof{/tikz/afit/left}+\pgfkeysvalueof{/tikz/afit/right}, +% inner ysep=\pgfkeysvalueof{/tikz/afit/top}+\pgfkeysvalueof{/tikz/afit/bottom}, +% xshift=-\pgfkeysvalueof{/tikz/afit/left}+\pgfkeysvalueof{/tikz/afit/right}, +% yshift=-\pgfkeysvalueof{/tikz/afit/bottom}+\pgfkeysvalueof{/tikz/afit/top}}, +% afit/.cd,left/.initial=2pt,right/.initial=2pt,bottom/.initial=2pt,top/.initial=2pt} + + +% <<<} + +\p{The following is adapted from [20squares/blog](https://github.com/20squares/blog/tree/master/assetsPosts/2023-07-26-lagrangian-intent-search-i/tex) ([rendered](https://blog.20squares.xyz/lagrangian-intent-search-i/)): +} + +\tikzfig{ +\usetikzlibrary{calc} +\usetikzlibrary{automata, positioning, arrows} +\tikzstyle{inarrow}=[->, >=stealth, shorten >=-.03cm,line width=0.5] + +\begin{tikzpicture}[x={({cos(-10)*1cm},{sin(-10)*1cm})},y={({cos(45)*1cm},{sin(45)*1cm})},z={(0,1cm)}] + \draw[dashed, fill=gray!20, opacity=0.5, looseness=.6] + (2.5,-2.5,-1) + to[bend left] coordinate (mk) (2.5,2.5,-1) + to[bend left] coordinate (mp) (-2.5,2.5,-1) + to[bend right] coordinate (mq) (-2.5,-2.5,-1) coordinate (labelM) + to[bend right] coordinate (mm) (2.5,-2.5,-1) + -- cycle; + \node[left] at (labelM) {$M$}; + % \draw[fill=gray!20, opacity=0.2] + % (2.5,-2.5,0) + % -- (2.5,2.5,0) + % -- (-2.5,2.5,0) + % -- (-2.5,-2.5,0) coordinate (labelTM) + % -- cycle; + % \node[above right, label=left:$T_\mathbf{q}M$] at (labelTM) {}; + \draw[inarrow, thick, red,looseness=.6] (mm) to[in=205, out=90] (0,0,0); + \draw[thick, red, looseness=.5] (0,0,0) to[out=30, in=160] (mp); + + \draw[inarrow, blue!30, looseness=.6] (mm) to[in=205, out=90] (-0.35,0,0); + \draw[blue!30, looseness=.5] (-0.35,0,0) to[out=30, in=160] (mp); + + \draw[inarrow, blue!30, looseness=.6] (mm) to[in=205, out=90] (0.35,0,0); + \draw[blue!30, looseness=.5] (0.35,0,0) to[out=30, in=160] (mp); + + \draw[inarrow, blue!30,looseness=.5] (mm) to[in=300, out=90] (0.5,-0.3,0); + \draw[blue!30,looseness=.5] (0.5,-0.3,0) to[out=140, in=160] (mp); + + \draw[inarrow, blue!30,looseness=0.8] (mm) to[in=200, out=30] (1.5,-0.5,0); + \draw[blue!30,looseness=1.4] (1.5,-0.5,0) to[out=20, in=180] (mp); + + \draw[inarrow, blue!30,looseness=1.5] (mm) to[in=200, out=100] (-1.2,0,0); + \draw[blue!30,looseness=.5] (-1.2,0,0) to[out=20, in=160] (mp); + %\node (q) at (0,0,0) {\textbullet}; + \node[below] at (mm) {$t_0$}; + \node[above] at (mp) {$t_1$}; + \draw[inarrow, red] (0,0,0) -- (0.2,0,0); + \node[red] at (0.4,0,0) {$\delta\mathbf{q}$}; + +\end{tikzpicture} +} + +\tikzfig{ +\usetikzlibrary{calc} +\usetikzlibrary{automata, positioning, arrows} +\tikzstyle{inarrow}=[->, >=stealth, shorten >=.03cm,line width=0.5] + +\begin{tikzpicture}[x={({cos(-10)*1cm},{sin(-10)*1cm})},y={({cos(45)*1cm},{sin(45)*1cm})},z={(0,1cm)}] + \draw[dashed, fill=gray!20, opacity=0.5, looseness=.6] + (2.5,-2.5,-1) + to[bend left] coordinate (mk) (2.5,2.5,-1) + to[bend left] coordinate (mp) (-2.5,2.5,-1) + to[bend right] coordinate (mq) (-2.5,-2.5,-1) coordinate (labelM) + to[bend right] coordinate (mm) (2.5,-2.5,-1) + -- cycle; + \node[left] at (labelM) {$M$}; + \draw[fill=gray!20, opacity=0.2] + (2.5,-2.5,0) + -- (2.5,2.5,0) + -- (-2.5,2.5,0) + -- (-2.5,-2.5,0) coordinate (labelTM) + -- cycle; + \node[above right, label=left:$T_\mathbf{q}M$] at (labelTM) {}; + \draw[dashed,looseness=.5] (mm) to[in=200, out=90] (0,0,0) to[out=60, in=160] (mp); + \node (q) at (0,0,0) {\textbullet}; + \node at (-0.3,-0.3,0) {$\mathbf{q}$}; + \draw[inarrow] (0,0,0) -- (0,1,0); + \node at (-0.3,0.7,0) {$\mathbf{\dot{q}}$}; + +\end{tikzpicture} +} + +\tikzfig{ +\usetikzlibrary{calc} +\usetikzlibrary{3d} +\usetikzlibrary{automata, positioning, arrows} +\tikzstyle{inarrow}=[->, >=stealth, shorten >=.03cm,line width=0.5] +\tikzstyle{outarrow}=[<-, >=stealth, shorten <=.03cm,line width=1.5] + + \begin{tikzpicture}[x={({cos(-10)*1cm},{sin(-10)*1cm})},y={({cos(45)*1cm},{sin(45)*1cm})},z={(0,1cm)}] + % \coordinate (O) at (0, 0, 0); + % \draw[-latex] (O) -- +(1, 0, 0) node [right] {$x$}; + % \draw[-latex] (O) -- +(0, 1, 0) node [left] {$y$}; + % \draw[-latex] (O) -- +(0, 0, 1) node [above] {$z$}; + \begin{scope}[canvas is xy plane at z=0] + \draw[fill=gray!20, opacity=0.5] (-1,-1) rectangle (6.2,6); + + \draw[fill=green!30] (0,0) circle (0.3cm); + \node (0) at (0,0) {$s_0$}; + + \draw[fill=red!30, opacity=0.4] (0,2) circle (0.3cm); + \node (1) at (0,2) {$s_1$}; + + \draw (2,2) circle (0.3cm); + \node (2) at (2,2) {$s_2$}; + + \draw[fill=red!30, opacity=0.4] (5,1) circle (0.3cm); + \node (3) at (5,1) {$s_3$}; + + \draw[fill=green!30] (2,0) circle (0.3cm); + \node (4) at (2,0) {$s_4$}; + + \draw[fill=blue!30] (3,4) circle (0.3cm); + \node (5) at (3,4) {$s_5$}; + + \draw (4,3) circle (0.3cm); + \node (6) at (4,3) {$s_6$}; + + \draw[fill=blue!30] (5,5) circle (0.3cm); + \node (7) at (5,5) {$s_7$}; + \draw (-1,-1) rectangle (6.2,6); + \end{scope} + \begin{scope}[canvas is xy plane at z=0.5] + \draw[fill=gray!20, opacity=0.2] (-1,-1) rectangle (6.2,6); + \node (0) at (0,0) {}; + \node (1) at (0,2) {}; + \node (2) at (2,2) {}; + \node (3) at (5,1) {}; + \node (4) at (2,0) {}; + \node (5) at (3,4) {}; + \node (6) at (4,3) {}; + \node (7) at (5,5) {}; + \draw[inarrow] + (5) edge[loop right] node{$a$} (3) + (5) edge[above] node{$b$} (2) + (7) edge[loop right] node{$a$} (3); + + \draw[inarrow, thick, cyan] + (0) edge[below] node{$b$} (2) + (2) edge[above] node{$b$} (6) + (4) edge[below] node{$b$} (0) + (6) edge[below right] node{$a$} (5); + + \draw[inarrow, red!30, opacity=0.4] + (0) edge[left] node{$a$} (1) + (2) edge[above] node{$a$} (3) + (1) edge[loop right] node{$a, b$} (1) + (3) edge[loop right] node{$a, b$} (3) + (4) edge[below] node{$a$} (3) + (6) edge[bend left, right] node{$b$} (3) + (7) edge[bend left, right] node{$b$} (3); + \end{scope} + \node (l) at (-2.25,-1.35,0.25) {$(T^\mathfrak{i,s} S, S^\mathfrak{i,s}_i, S^\mathfrak{i,s}_f) \Bigl\{$}; + + \draw[dashed, very thin] (0,0,0) -- (0,0,1); + \draw[dashed, very thin, opacity=0.2] (0,2,0) -- (0,2,0.5); + \draw[dashed, very thin] (2,2,0) -- (2,2,1); + \draw[dashed, very thin, opacity=0.2] (5,1,0) -- (5,1,0.5); + \draw[dashed, very thin] (2,0,0) -- (2,0,1); + \draw[dashed, very thin] (3,4,0) -- (3,4,1); + \draw[dashed, very thin] (4,3,0) -- (4,3,1); + \draw[dashed, very thin, opacity=0.2] (5,5,0) -- (5,5,1); + + + \begin{scope}[canvas is xy plane at z=1.1] + \draw[fill=violet!20, opacity=0.2] (-1,-1) rectangle (6.2,6); + \node[violet] (0) at (0,0) {$\Xi 1.0$}; + \node[violet] (2) at (2,2) {$\Xi 0.5$}; + \node[violet] (4) at (2,0) {$\Xi 0.8$}; + \node[violet] (5) at (3,4) {$\Xi 4.0$}; + \node[violet] (6) at (4,3) {$\Xi 2.0$}; + \node[violet, opacity=0.2] (7) at (5,5) {$\Xi 0.0$}; + \end{scope} + \node (l) at (-1.25,-1,1) {$\mathcal{U}^\mathfrak{s}$}; + + \begin{scope}[canvas is xy plane at z=3.1] + \draw[fill=purple!20, opacity=0.2] (-1,-1) rectangle (6.2,6); + + \node[purple] (0) at (1,1) {$0.5$}; + \node[purple] (1) at (1,0) {$-0.2$}; + \node[purple] (2) at (3,2.5) {$-1.5$}; + \node[purple, opacity=0.2] (3) at (3.2,4.2) {$0.0$}; + \node[purple, opacity=0.2] (4) at (2.5,3) {$3.5$}; + \node[purple] (5) at (3.5,3.5) {$-2.0$}; + \node[purple, opacity=0.2] (6) at (5.2,5.2) {$0.0$}; + \end{scope} + \node (l) at (-1.25,-1,3) {$\mathcal{L}^\mathfrak{s}_g$}; + + \draw[dashed, very thin] (1,1,0.5) -- (1,1,3); + \draw[dashed, very thin] (1,0,0.5) -- (1,0,3); + \draw[dashed, very thin] (3,2.5,0.5) -- (3,2.5,3); + \draw[dashed, very thin, opacity=0.2] (3.2,4.2,0.5) -- (3.2,4.2,3); + \draw[dashed, very thin, opacity=0.2] (2.5,3,0.5) -- (2.5,3,3); + \draw[dashed, very thin] (3.5,3.5,0.5) -- (3.5,3.5,3); + \draw[dashed, very thin, opacity=0.2] (5.2,5.2,0.5) -- (5.2,5.2,3); + + \begin{scope}[canvas is xy plane at z=5.2] + \draw[fill=orange!20, opacity=0.2] (-1,-1) rectangle (6.2,6); + \node[orange] (0) at (3,2.5) {$\Xi -0.2 + 0.5 - 1.5 -2.0 = -3.2$}; + \end{scope} + \node (l) at (-1.75,-1,5) {$\mathcal{A}^\mathfrak{s}(\mathbf{q},\mathbf{\dot{q}})$}; + + \draw[dashed, very thin] (1,1,3.2) -- (3,2.5,5); + \draw[dashed, very thin] (1,0,3.2) -- (3,2.5,5); + \draw[dashed, very thin] (3,2.5,3.2) -- (3,2.5,5); + \draw[dashed, very thin] (3.5,3.5,3.2) -- (3,2.5,5); + + \end{tikzpicture} +} + }