\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex,thick,xshift=-50cm] %\begin{scope}[xshift=-5cm] \node[draw](F)at(-1.7,0){Optimization}; \draw[->](-5,0)--node[above]{inputs}node[below]{$x$}(F); \node[draw](I)at(2.5,-2){Global Optimization}; \draw(F)--(F|-I); \draw[->](F|-I)--node[above]{Input sets}(I); %\begin{scope}[xshift=1cm] \node[draw](T)at(5.5,0){Output sets}; \draw(I)--node[above]{Output value}(I-|T); \draw[->](I-|T)--(T); \node[draw](D)at(5.5,1){Optimization}; \draw[->](T)--(D); \draw[->](T)--node[above]{Output optimal set}node[below]{T1 FS}(10.2,0); \draw[->](D)--node[above]{Solution outputs}node[below]{$u$}(10.2,1); \draw[dashed](4.2,-0.6)rectangle(6.8,1.5); \node at(5.5,1.8){Output processing}; %\end{scope} \node[draw](R)at(2.5,1){Rules}; \draw[->](R)--(I); \draw[dashed](-4.8,-2.5)rectangle(9.9,2.3); \node at(2.5,-2.85){$u=f(x)$}; \node at(8.9,2.65){Optimization}; %\end{scope} \end{tikzpicture} \end{document}

2 回答2

1
学不会用代码块的话,很让人困扰啊
0
```tex \documentclass[tikz]{standalone} \usepackage{ctex} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle (1,1); \begin{scope}[xshift=4cm] \draw (0,0) rectangle (1,1) node [below right] {\parbox{2em}{我要换行}}; \end{scope} \end{tikzpicture} \end{document} ```

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。