word使用Aurora对象插入伪代码

最近在完成大论文写作,其中涉及到Aurora插入伪代码工作
链接:Aurora网盘
提取码:1qwt
LaTex发行版地址:TexLiveMikTex

Aurora 伪代码

\begin{algorithm}[H]  
      \caption{Whale Optimization Algorithm}  
      \label{your label}  
      \begin{algorithmic}[1]  
        \Require  
          initialize the whale population $(x_{1},x_{2},...,x_{N})$,calculate the fitness of each person;  
        \Ensure  
          the best solution   
        \While{(t$<$maximum number of iterations)}  
		\For{each person}
            		\State Update a,A,C,l,and p
            	\If { (p$<$0.5)}
			\If{($\left | A \right | < 1$)}  
                		\State  Update the position by the 
            		\ElsIf{($\left | A \right | >= 1$)} 
				\State Update the position by the
			\EndIf
		\ElsIf{(p$>=$0.5)}
			\State Update the position by the
		\EndIf
		\EndFor
		\State Calculate the fitness of each person
		\State Update $X^{*}$ if there is a better solution
		\State $t=t+1$
	\EndWhile
       \State return $X^{*}$  
\end{algorithmic}  
\end{algorithm}

这里是鲸鱼优化算法的伪代码,和文献中的稍有些不同,效果图如下。
WOA

使用三线表完成伪代码

WOA
开始想用三线表完成伪代码,但在编写过程发现无法解决缩进问题所以就放弃了。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值