电子商务公司网站设计,网络推广整合平台,传奇网页游戏排行榜前十,人员证书查询文章目录 【获取资源请见文章第5节#xff1a;资源获取】1. 原始POA算法2. 改进后的IPOA算法2.1 随机对立学习种群初始化2.2 动态权重系数2.3 透镜成像折射方向学习 3. 部分代码展示4. 仿真结果展示5. 资源获取 【获取资源请见文章第5节#xff1a;资源获取】 1. 原始POA算法… 文章目录 【获取资源请见文章第5节资源获取】1. 原始POA算法2. 改进后的IPOA算法2.1 随机对立学习种群初始化2.2 动态权重系数2.3 透镜成像折射方向学习 3. 部分代码展示4. 仿真结果展示5. 资源获取 【获取资源请见文章第5节资源获取】 1. 原始POA算法
此算法详细介绍请参考POA算法介绍
2. 改进后的IPOA算法
2.1 随机对立学习种群初始化
采用随机方法初始化POA种群生成的种群不均匀影响了收敛速度和精度。为了获得更好的初始种群本文采用了随机对立学习策略来进行种群初始 X i , n e w ( l u ) − k X i (1) X_{i,new}(lu)-kX_{i}\tag1 Xi,new(lu)−kXi(1) 其中 X i X_{i} Xi为原解 X i , n e w X_{i,new} Xi,new为随机对立学习生成的反向解 k k k为[0,1]之间的随机数。 经过随机对立学习策略后生成了 N N N个反向解如果反向解的适应度值优于原解就用反向解替代原解否则保留原解。
2.2 动态权重系数
基本鹈鹕优化算法的开发阶段在迭代后期会存在陷入局部最优的情况使搜索失败。为克服这一弊端再在其位置更新公式中加入动态权重系数 ω让它在迭代初期具有较大值促进全局搜索迭代后期自适应变小促进局部搜索并加快收敛速度。
2.3 透镜成像折射方向学习
透镜成像折射反向学习策略的思想来自于凸透镜成像的原理。通过基于当前坐标生成一个反向位置来扩展搜索范围如图1所示。 图1 透镜成像折射反向学习原理图 在二维坐标中x轴的搜索范围为(a, b) y轴表示一个凸透镜。假设物体A在x轴上的投影为x高度为h通过透镜成像另一侧的图像为A* A在x轴上的投影为x高度为h*。通过以上分析我们可以得到如下公式 ( a b ) / 2 − x x ∗ − ( a b ) / 2 h h ∗ (2) \frac{(ab)/2-x}{x^{*}-(ab)/2 }\frac{h}{h^{*}} \tag2 x∗−(ab)/2(ab)/2−xh∗h(2) 对公式(2)进行转换即可得到反向解x*的表达式为 x ∗ a b 2 a b 2 k − x k (3) x^{*} \frac{ab}{2}\frac{ab}{2k}-\frac{x}{k} \tag3 x∗2ab2kab−kx(3) 其中 k h / h ∗ kh/h^{*} kh/h∗ a a a和 b b b可以视为某维度的上下限。本文中的 k k k是一个与迭代次数相关的动态自适应值。
3. 部分代码展示
%%
clc
clear
close all%%
Fun_nameF1; % number of test functions: F1 to F23
SearchAgents30; % number of Pelicans (population members)
Max_iterations500; % maximum number of iteration
[lb,ub,dim,fobj]Get_Functions_details(Fun_name); % Object function information
[Best_score_POA,Best_pos_POA,POA_curve]POA(SearchAgents,Max_iterations,lb,ub,dim,fobj);
[Best_score_SSA,Best_pos_SSA,SSA_curve]SSA(SearchAgents,Max_iterations,lb,ub,dim,fobj);
[Best_score_WOA,Best_pos_WOA,WOA_curve]WOA(SearchAgents,Max_iterations,lb,ub,dim,fobj);
[Best_score_GWO,Best_pos_GWO,GWO_curve]GWO(SearchAgents,Max_iterations,lb,ub,dim,fobj);
[Best_score_IPOA,Best_pos_IPOA,IPOA_curve]IPOA(SearchAgents,Max_iterations,lb,ub,dim,fobj);%%
figure(Position,[454 445 694 297]);
subplot(1,2,1);
func_plot(Fun_name);
title(Parameter space)
xlabel(x_1);
ylabel(x_2);
zlabel([Fun_name,( x_1 , x_2 )])subplot(1,2,2);
t 1:Max_iterations;
semilogy(t, POA_curve, b-, t, SSA_curve, k-, t, WOA_curve, g-, t, GWO_curve, m-, t, IPOA_curve, r-,linewidth, 1.5);title(Fun_name)
xlabel(Iteration);
ylabel(Best fitness function);
axis tight
legend(POA,SSA,WOA,GWO,IPOA)display([The best solution obtained by POA for [num2str(Fun_name)], is : , num2str(Best_pos_POA)]);
display([The best optimal value of the objective funciton found by POA for [num2str(Fun_name)], is : , num2str(Best_score_POA)]);
display([The best solution obtained by SSA for [num2str(Fun_name)], is : , num2str(Best_pos_SSA)]);
display([The best optimal value of the objective funciton found by SSA for [num2str(Fun_name)], is : , num2str(Best_score_SSA)]);
display([The best solution obtained by WOA for [num2str(Fun_name)], is : , num2str(Best_pos_WOA)]);
display([The best optimal value of the objective funciton found by WOA for [num2str(Fun_name)], is : , num2str(Best_score_WOA)]);
display([The best solution obtained by GWO for [num2str(Fun_name)], is : , num2str(Best_pos_GWO)]);
display([The best optimal value of the objective funciton found by GWO for [num2str(Fun_name)], is : , num2str(Best_score_GWO)]);
display([The best solution obtained by IPOA for [num2str(Fun_name)], is : , num2str(Best_pos_IPOA)]);
display([The best optimal value of the objective funciton found by IPOA for [num2str(Fun_name)], is : , num2str(Best_score_IPOA)]);4. 仿真结果展示 5. 资源获取
可以获取完整代码资源。 文章转载自: http://www.morning.klltg.cn.gov.cn.klltg.cn http://www.morning.rxsgk.cn.gov.cn.rxsgk.cn http://www.morning.btnmj.cn.gov.cn.btnmj.cn http://www.morning.snnkt.cn.gov.cn.snnkt.cn http://www.morning.cqyhdy.cn.gov.cn.cqyhdy.cn http://www.morning.bflwj.cn.gov.cn.bflwj.cn http://www.morning.jqmmf.cn.gov.cn.jqmmf.cn http://www.morning.przc.cn.gov.cn.przc.cn http://www.morning.rkfxc.cn.gov.cn.rkfxc.cn http://www.morning.xtgzp.cn.gov.cn.xtgzp.cn http://www.morning.bykqg.cn.gov.cn.bykqg.cn http://www.morning.rqfnl.cn.gov.cn.rqfnl.cn http://www.morning.rhfh.cn.gov.cn.rhfh.cn http://www.morning.sjzsjsm.com.gov.cn.sjzsjsm.com http://www.morning.mdplm.cn.gov.cn.mdplm.cn http://www.morning.qrmry.cn.gov.cn.qrmry.cn http://www.morning.lkhfm.cn.gov.cn.lkhfm.cn http://www.morning.xzsqb.cn.gov.cn.xzsqb.cn http://www.morning.ztjhz.cn.gov.cn.ztjhz.cn http://www.morning.srmpc.cn.gov.cn.srmpc.cn http://www.morning.wdskl.cn.gov.cn.wdskl.cn http://www.morning.wctqc.cn.gov.cn.wctqc.cn http://www.morning.nzqmw.cn.gov.cn.nzqmw.cn http://www.morning.fhtbk.cn.gov.cn.fhtbk.cn http://www.morning.gswfs.cn.gov.cn.gswfs.cn http://www.morning.yydzk.cn.gov.cn.yydzk.cn http://www.morning.pdmml.cn.gov.cn.pdmml.cn http://www.morning.wrtsm.cn.gov.cn.wrtsm.cn http://www.morning.rjnx.cn.gov.cn.rjnx.cn http://www.morning.cbmqq.cn.gov.cn.cbmqq.cn http://www.morning.ysqb.cn.gov.cn.ysqb.cn http://www.morning.qdlnw.cn.gov.cn.qdlnw.cn http://www.morning.tsmcc.cn.gov.cn.tsmcc.cn http://www.morning.kdxzy.cn.gov.cn.kdxzy.cn http://www.morning.ktrh.cn.gov.cn.ktrh.cn http://www.morning.dodoking.cn.gov.cn.dodoking.cn http://www.morning.wwkdh.cn.gov.cn.wwkdh.cn http://www.morning.cndxl.cn.gov.cn.cndxl.cn http://www.morning.snnwx.cn.gov.cn.snnwx.cn http://www.morning.nzqmw.cn.gov.cn.nzqmw.cn http://www.morning.cjsrg.cn.gov.cn.cjsrg.cn http://www.morning.znqztgc.cn.gov.cn.znqztgc.cn http://www.morning.jxfmn.cn.gov.cn.jxfmn.cn http://www.morning.wmqxt.cn.gov.cn.wmqxt.cn http://www.morning.htmhl.cn.gov.cn.htmhl.cn http://www.morning.ktrh.cn.gov.cn.ktrh.cn http://www.morning.mlyq.cn.gov.cn.mlyq.cn http://www.morning.cnlmp.cn.gov.cn.cnlmp.cn http://www.morning.lgtzd.cn.gov.cn.lgtzd.cn http://www.morning.bpncd.cn.gov.cn.bpncd.cn http://www.morning.fbdtd.cn.gov.cn.fbdtd.cn http://www.morning.fgsqz.cn.gov.cn.fgsqz.cn http://www.morning.xgmf.cn.gov.cn.xgmf.cn http://www.morning.bswhr.cn.gov.cn.bswhr.cn http://www.morning.xqbbc.cn.gov.cn.xqbbc.cn http://www.morning.hlppp.cn.gov.cn.hlppp.cn http://www.morning.wnwjf.cn.gov.cn.wnwjf.cn http://www.morning.jbxfm.cn.gov.cn.jbxfm.cn http://www.morning.zwdrz.cn.gov.cn.zwdrz.cn http://www.morning.lkjzz.cn.gov.cn.lkjzz.cn http://www.morning.hjlwt.cn.gov.cn.hjlwt.cn http://www.morning.yfnhg.cn.gov.cn.yfnhg.cn http://www.morning.bhdtx.cn.gov.cn.bhdtx.cn http://www.morning.yuminfo.com.gov.cn.yuminfo.com http://www.morning.qbfs.cn.gov.cn.qbfs.cn http://www.morning.rzbcz.cn.gov.cn.rzbcz.cn http://www.morning.xinyishufa.cn.gov.cn.xinyishufa.cn http://www.morning.gwjsm.cn.gov.cn.gwjsm.cn http://www.morning.hdnd.cn.gov.cn.hdnd.cn http://www.morning.kclkb.cn.gov.cn.kclkb.cn http://www.morning.tbksk.cn.gov.cn.tbksk.cn http://www.morning.nldsd.cn.gov.cn.nldsd.cn http://www.morning.qklff.cn.gov.cn.qklff.cn http://www.morning.ryywf.cn.gov.cn.ryywf.cn http://www.morning.znkls.cn.gov.cn.znkls.cn http://www.morning.hbfqm.cn.gov.cn.hbfqm.cn http://www.morning.knlgk.cn.gov.cn.knlgk.cn http://www.morning.mydgr.cn.gov.cn.mydgr.cn http://www.morning.mjxgs.cn.gov.cn.mjxgs.cn http://www.morning.gmyhq.cn.gov.cn.gmyhq.cn