-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathtikz_prob_algo_simple.tex
51 lines (45 loc) · 1.81 KB
/
tikz_prob_algo_simple.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\documentclass[crop,tikz,convert]{standalone}
\usetikzlibrary{shapes,matrix,positioning,chains,arrows,shadows,decorations.pathmorphing,fit,backgrounds}
\begin{document}
\begin{tikzpicture}[auto]
\tikzstyle{userinput}=[rectangle, drop shadow, draw=black, fill=black!10, thick, minimum width=4cm, align=center]
\tikzstyle{internal}=[rectangle, drop shadow, draw=black, fill=white, thick, minimum width=4cm, rounded corners, align=center]
\tikzstyle{result}=[ellipse, drop shadow, draw=black, fill=white, thick, align=center, minimum width=3cm]
\tikzstyle{line} = [draw, thick, -latex']
\tikzstyle{sline} = [draw, thick, -latex',decorate, decoration={snake, segment length=2mm,post length=2mm}]
\matrix [row sep=10mm, column sep=20mm] {
% first row
\node {}; &
\node {}; &
\node [result] (result) {result}; \\
% second row
\node [userinput] (static_problem_part) {
static problem part\\\texttt{data}
}; &
\node [userinput] (dynamic_problem_part) {
dynamic problem function\\
\texttt{fun(data, ...)}
}; &
\node [userinput] (algorithm) {
algorithm function\\
\texttt{fun(data, instance, ...)}
}; \\
% third row
\node {}; &
\node [userinput] (problem_design) {
problem design\\
(\texttt{addExperiments})
}; &
\node [userinput] (algorithm_design) {
algorithm design\\
(\texttt{addExperiments})
}; \\
};
\draw [sline] (algorithm) to (result) ;
\draw [line] (static_problem_part) to (dynamic_problem_part);
\draw [sline] (dynamic_problem_part) to node {\texttt{instance}} (algorithm) ;
\draw [line] (static_problem_part) to [out=0, in=0, bend left=20] (algorithm);
\draw [line] (problem_design) to node {\texttt{...}} (dynamic_problem_part);
\draw [line] (algorithm_design) to node {\texttt{...}} (algorithm);
\end{tikzpicture}
\end{document}