Tikz:多目标优化
Tikz: Multiobjective optimization
我正在尝试创建以下图表:
我正在尝试使用此代码,但无法创建这些区域。
\begin{tikzpicture}
\draw [fill=black!15] plot %
coordinates {(3.7,0.35) (3.7,3.25) (0.75,0.35)};
\draw [fill=black!30] plot %
coordinates {(2.75,0.9) (2.75,3.5) (0.75,0.9)};
\draw[->] (0,0) -- (5,0) node[anchor=north] {$C$};
\draw (1,0.9) node[anchor=north] {$(C_o,R_r)$}
(2.75,2.75) node[anchor=west] {$(C_r,R_o)$}
(3.7,0.35) node[anchor=west] {$(C_i,R_i)$};
\draw[->] (0,0) -- (0,4) node[anchor=east] {$R$};
\draw[thick,->] (3.7,0.35) -- (1,0.9);
\draw[thick,->] (3.7,0.35) -- (2.75,2.75);
\draw [gray] (2.75,2.75) arc [radius=1.52, start angle=111.6, end angle=
168.49];
\end{tikzpicture}
谁能帮帮我?
非常感谢您,
胡里奥
只是草图:
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[->] (-1,0) -- (5,0) node[anchor=north] {$C$};
\draw[->] (0,-1) -- (0,4) node[anchor=east] {$R$};
\fill [gray!15] plot coordinates {(3.7,0.35) (3.2,3.2) (0.5,0.8)};
\fill [gray!15] plot [smooth cycle] coordinates {(2.7,1.35) (3.2,3.2) (1.5,2.6) (0.5,0.8)};
\fill [gray!30] plot [smooth cycle] coordinates {(3.4,0.65) (2.7,2.9) (2,2.6) (1.2,1.75) (1,0.9)};
\filldraw (3.7,0.35) circle (1.5pt);
\filldraw (2.75,2.75) circle (1.5pt);
\filldraw (1,0.9) circle (1.5pt);
\draw (1,0.9) node[anchor=north] {$(C_o,R_r)$}
(2.75,2.75) node[anchor=west] {$(C_r,R_o)$}
(3.7,0.35) node[anchor=west] {$(C_i,R_i)$};
\draw[thick,->] (3.7,0.35) -- (1,0.9);
\draw[thick,->] (3.7,0.35) -- (2.75,2.75);
\draw[dashed] (1,0.9) arc [radius=2.2, start angle=171.6, end angle=101];
\end{tikzpicture}
\end{document}
我用 \fill [gray!30]
表示较暗的区域,两个 \fill [gray!15]
表示较亮的区域(两个,以便更好地绘制直线和曲线边缘)。
(1,0.9)
、(3.7,0.35)
和 (2.75,2.75)
这三点来自您的代码,其他的应该在输入代码之前在纸上仔细勾画。
我正在尝试创建以下图表:
我正在尝试使用此代码,但无法创建这些区域。
\begin{tikzpicture}
\draw [fill=black!15] plot %
coordinates {(3.7,0.35) (3.7,3.25) (0.75,0.35)};
\draw [fill=black!30] plot %
coordinates {(2.75,0.9) (2.75,3.5) (0.75,0.9)};
\draw[->] (0,0) -- (5,0) node[anchor=north] {$C$};
\draw (1,0.9) node[anchor=north] {$(C_o,R_r)$}
(2.75,2.75) node[anchor=west] {$(C_r,R_o)$}
(3.7,0.35) node[anchor=west] {$(C_i,R_i)$};
\draw[->] (0,0) -- (0,4) node[anchor=east] {$R$};
\draw[thick,->] (3.7,0.35) -- (1,0.9);
\draw[thick,->] (3.7,0.35) -- (2.75,2.75);
\draw [gray] (2.75,2.75) arc [radius=1.52, start angle=111.6, end angle=
168.49];
\end{tikzpicture}
谁能帮帮我?
非常感谢您,
胡里奥
只是草图:
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[->] (-1,0) -- (5,0) node[anchor=north] {$C$};
\draw[->] (0,-1) -- (0,4) node[anchor=east] {$R$};
\fill [gray!15] plot coordinates {(3.7,0.35) (3.2,3.2) (0.5,0.8)};
\fill [gray!15] plot [smooth cycle] coordinates {(2.7,1.35) (3.2,3.2) (1.5,2.6) (0.5,0.8)};
\fill [gray!30] plot [smooth cycle] coordinates {(3.4,0.65) (2.7,2.9) (2,2.6) (1.2,1.75) (1,0.9)};
\filldraw (3.7,0.35) circle (1.5pt);
\filldraw (2.75,2.75) circle (1.5pt);
\filldraw (1,0.9) circle (1.5pt);
\draw (1,0.9) node[anchor=north] {$(C_o,R_r)$}
(2.75,2.75) node[anchor=west] {$(C_r,R_o)$}
(3.7,0.35) node[anchor=west] {$(C_i,R_i)$};
\draw[thick,->] (3.7,0.35) -- (1,0.9);
\draw[thick,->] (3.7,0.35) -- (2.75,2.75);
\draw[dashed] (1,0.9) arc [radius=2.2, start angle=171.6, end angle=101];
\end{tikzpicture}
\end{document}
我用 \fill [gray!30]
表示较暗的区域,两个 \fill [gray!15]
表示较亮的区域(两个,以便更好地绘制直线和曲线边缘)。
(1,0.9)
、(3.7,0.35)
和 (2.75,2.75)
这三点来自您的代码,其他的应该在输入代码之前在纸上仔细勾画。