Latex:绘图tikz

流程图

遗传算法流程图

\begin{
   figure}[htbp]
	\tikzstyle{
   startstop} = [rectangle, rounded corners,thick, minimum width=1cm, minimum height=0.5cm,text centered, draw=black, fill=white,text width=1cm]	% 定义开始结束
	\tikzstyle{
   process} = [rectangle,thick, minimum width=3cm, minimum height=0.5cm, text centered, draw=black, fill=white,text width=3cm]	% 定义步骤
	\tikzstyle{
   decision} = [diamond,aspect = 4, thick, minimum width=3cm, minimum height=0.5cm, text centered, draw=black, fill=white]	% 定义判断框
	\tikzstyle{
   arrow} = [thick,->,>=Latex]	% 定义箭头
	\centering
	\begin{
   tikzpicture}[node distance=1cm]
	% 定义流程图具体形状
	\node (start) [startstop] {
   开始};
	\node (pro1) [process, below of=start] {
   创建初始群};
	\node (pro2) [process, below of=pro1] {
   适应度计算};
	\node (dec1) [decision, below of=pro2,yshift=-0.38cm] {
   满足终止准则?};
	\node (pro3) [process, below of=dec1,yshift=-0.38cm] {
   选择操作};
	\node (pro4) [process, below of=pro3] {
   交叉操作};
	\node (pro5) [process, below of=pro4] {
   变异操作};
	\node (pro6) [process, right of=pro3,xshift=3cm] {
   变异操作};
	\node (stop) [startstop, below of=pro6] {
   结束};
	
	% 连接具体形状
	\draw [arrow](start) -- (pro1);
	\draw [arrow](pro1) -- (pro2);
	\draw [arrow](pro2) -- (dec1);
	\draw [arrow](dec1) -- (pro3);
	\draw [arrow](pro3) -- (pro4);
	\draw [arrow](pro4) -- (pro5
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

亦贤同学

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值