【PID优化】基于蝙蝠 粒子群 花卉授粉算法和布谷鸟搜索算法实现热交换器的PI控制器优化
【PID优化】基于蝙蝠 粒子群 花卉授粉算法和布谷鸟搜索算法实现热交换器的PI控制器优化
TT_Matlab
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,完整matlab代码或者程序定制加qq1575304183。
1 简介
2 部分代码
%%
--------------- All subfunctions are list below ------------------
%%
Get cuckoos by ramdom walk
function
nest=get_cuckoos(nest,best,Lb,Ub)
%
Levy flights
n
=
size(nest,1);
%
Levy exponent and coefficient
%
For details, see equation (2.21), Page 16 (chapter 2) of the book
%
X. S. Yang, Nature-Inspired Metaheuristic Algorithms, 2nd Edition, Luniver Press, (2010).
beta
=
3/2;
sigma
=
(gamma(1+beta)*sin(pi*beta/2)/(gamma((1+beta)/2)*beta*2^((beta-1)/2)))^(1/beta);
for
j=1:n,
s
=
nest(j,:);
%
This is a simple way of implementing Levy flights
%
For standard random walks, use step=1;
%%
Levy flights by Mantegna’s algorithm
u
=
randn(size(s))*sigma;
v
=
randn(size(s));
step
=
u./abs(v).^(1/beta);
%
In the next equation, the difference factor (s-best) means that
%
when the solution is the best solution, it remains unchanged.
stepsize
=
0.01*step.*(s-best);
%
Here the factor 0.01 comes from the fact that L/100 should the typical
%
step size of walks/flights where L is the typical lenghtscale;
%
otherwise, Levy flights may become too aggresive/efficient,
%
which makes new solutions (even) jump out side of the design domain
%
(and thus wasting evaluations).
%
Now the actual random walks or flights
s
=
s+stepsize.*randn(size(s));
%
Apply simple bounds/limits
nest(j,
:
)=simplebounds(s,Lb,Ub);
end
end
3 仿真结果
4 参考文献
[1]王庆喜, 储泽楠. 基于动态布谷鸟搜索算法的PID控制器参数优化[J]. 计算机测量与控制, 2015, 23(4):4.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
-
2023年血糖新标准公布,不是3.9-6.1,快来看看你的血糖正常吗? 2023-02-07
-
2023年各省最新电价一览!8省中午执行谷段电价! 2023-01-03
-
GB 55009-2021《燃气工程项目规范》(含条文说明),2022年1月1日起实施 2021-11-07
-
PPT导出高分辨率图片的四种方法 2022-09-22
-
2023年最新!国家电网27家省级电力公司负责人大盘点 2023-03-14
-
全国消防救援总队主官及简历(2023.2) 2023-02-10
-
盘点 l 中国石油大庆油田现任领导班子 2023-02-28
-
我们的前辈!历届全国工程勘察设计大师完整名单! 2022-11-18
-
关于某送变电公司“4·22”人身死亡事故的快报 2022-04-26
