\begin{tikzpicture} \begin{scope}[scale=0.8] \draw [-,very thick] (0,0) sin (1,1) cos (2,0) sin (3,-1) cos (4,0) sin (7,-1); \draw [-latex,thick] (-0.5,-1.2) -- (8,-1.2); \draw [-latex,thick] (-0.5,-1.2) -- (-0.5,1.3); \draw [-,dashed] (1,1) -- (1,-1.2); \node [anchor=north] at (1,-1.2) {\scriptsize{参数$x$的最优解}}; \node [anchor=center] at (1,-1.2) {$\bullet$}; \node [anchor=center] at (1,1) {$\bullet$}; \node [anchor=west] at (1.3,1) {\scriptsize{目标函数$f(x)$的最大值}}; \draw [<-] (6.5,-0.8) -- (7.0,-0.3); \node [anchor=south west,inner sep=1pt] at (7.0,-0.3) {\scriptsize{$f(x)$}}; \end{scope} \end{tikzpicture}