当前位置: 首页 > news >正文

网站服务器建设学电脑培训班多少一个月

网站服务器建设,学电脑培训班多少一个月,网站源码下载哪个网站好,seo网站推广公司声明:对于作者的原创代码,禁止转售倒卖,违者必究! 之前出了一篇关于CEC2005函数集的智能算法指标一键统计,然而后台有很多小伙伴在询问其他函数集该怎么调用。今天采用CEC2017函数集为例,进行展示。 为了突…

声明:对于作者的原创代码,禁止转售倒卖,违者必究!

之前出了一篇关于CEC2005函数集的智能算法指标一键统计,然而后台有很多小伙伴在询问其他函数集该怎么调用。今天采用CEC2017函数集为例,进行展示。

为了突出改进智能优化算法的效果,常常会将改进的智能算法与其他算法进行对比。

在一些期刊论文中,经常会看到一个超级大的表格,统计着每个算法的平均值,标准差,最优值,最差值,中位数等指标,例如:

aa47d662025ba0cf22b7191739972fc0.png

还有的为了比较改进算法与对比算法的区别,会进行秩和检,例如:

a1ca3c42247d083afa0c4958b3bfbdc5.jpeg

还有一些论文为了更直观的表现会放上箱线图,例如:

7970a5ce19bd4ebcd630f3a1115e6e9f.png

然而如果一遍一遍的运行代码去手动统计,估计闪电侠都不会这么做吧!



今天就采用matlab工具,教大家直接一键完成统计,并导出EXCEL表格,同时绘制箱线图。

算法替换十分简单,只替换算法名字即可!测试集替换也十分简单!

本期以自适应螺旋飞行麻雀搜索算法(ASFSSA)(点击链接跳转,这个算法可以免费获取)为例,与蜣螂优化算法,麻雀优化算法,粒子群优化算法,灰狼优化算法进行对比。

将每个算法运行30次,在CEC2017函数中进行测试,一键统计最优值,平均值,标准差,中位数,最差值五个指标,秩和检验结果,同时绘制箱线图。

代码目录如下:

b169c3d925fb60820275403d967d4213.png

其中plotCEC2017_Main.m还是往常的绘制算法对比图的程序,这个一直都有。

重点是:runsCEC2017_Main.m这个脚本,运行后可以一键生成ranksumresult.xls和result.xls两个excel。

注意 :CEC2017官方函数中,将F2函数删除了,因此现在只有29个函数。

其中ranksumresult.xls是秩和检验的结果统计,result.xls是五个指标的统计。结果如下:

ranksumresult.xls表格:

57a2c2939aef847277ead26800512de9.png

result.xls表格:

370146f91185deafcac99cf092645011.png

7efe6c317655b4d8c5696ed295d48a01.png

程序中设置了可以选择是否绘制箱线图的代码,也可以一键更改。箱线图如下:

1778cef0093ba8bdb72dbb8d8f88094c.png

部分代码展示

runsCEC2017_Main.m部分代码展示如下:

clear
clc
close all
addpath(genpath(pwd));
pop_size=30;   %种群数目
max_iter=500;   %迭代次数run = 30;
box_pp = 1;  %可选1,或者其他。当等于1,绘制箱型图,否则不绘制
RESULT=[];   %统计标准差,平均值,最优值等结果
rank_sum_RESULT=[];  %统计秩和检验结果F = [1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30];%因为第二个函数被删了!
variables_no = 30; % 可选 2, 10, 30, 50, 100
disp(['正在统计的是维度为',num2str(variables_no),'的CEC2017函数集'])
if box_pp ==1figure('Name', '箱型图', 'Color', 'w','Position', [50 50 1400 700])
endfor func_num = 1:length(F)    % Display the comprehensive resultsdisp(['F',num2str(F(func_num)),'函数计算结果:'])[lower_bound,upper_bound,variables_no,fhd]=Get_Functions_details(['F',num2str(F(func_num))]);resu = [];  %统计标准差,平均值,最优值等结果rank_sum_resu = [];   %统计秩和检验结果box_plot = [];  %统计箱型图结果……
end
%% 将秩和检验结果写入elcex中
B = string();
for i = 1:length(F)str = string(['F',num2str(F(i))]);B(i,1)= str;
end
B = cellstr (B);
B = [B,num2cell(rank_sum_RESULT)];
title = {" ","DBO","PSO","GWO","SSA"};% 秩和检验是和改进的算法做比较,因此这里没有改进的算法
B = [title;B];
xlswrite('ranksumresult.xls', B)%% 将标准差,平均值,最优值等结果写入elcex中
A = string();
A = cellstr (A);
A = [A,num2cell(RESULT)];
title = {" "," ","ASFSSA","DBO","PSO","GWO","SSA"};
A = [title;A];
xlswrite('result.xls', A)

代码获取

或者点击下方阅读原文跳转链接。

或者直接复制下方链接跳转:

https://mbd.pub/o/bread/ZZWUmJhu


文章转载自:
http://anthophilous.c7630.cn
http://irvingite.c7630.cn
http://pralltriller.c7630.cn
http://desexualize.c7630.cn
http://impressibility.c7630.cn
http://villainage.c7630.cn
http://adieu.c7630.cn
http://undersized.c7630.cn
http://chilian.c7630.cn
http://should.c7630.cn
http://totter.c7630.cn
http://spilth.c7630.cn
http://porterage.c7630.cn
http://gush.c7630.cn
http://tint.c7630.cn
http://adoption.c7630.cn
http://apronful.c7630.cn
http://timbered.c7630.cn
http://distilland.c7630.cn
http://penalty.c7630.cn
http://gorgio.c7630.cn
http://purblind.c7630.cn
http://radiale.c7630.cn
http://miscreant.c7630.cn
http://lightsome.c7630.cn
http://separateness.c7630.cn
http://imaginabale.c7630.cn
http://corelation.c7630.cn
http://photoenvironment.c7630.cn
http://bottleneck.c7630.cn
http://leben.c7630.cn
http://ditheism.c7630.cn
http://schistous.c7630.cn
http://spymaster.c7630.cn
http://cranialgia.c7630.cn
http://nrtya.c7630.cn
http://gneissic.c7630.cn
http://spiritism.c7630.cn
http://endearment.c7630.cn
http://sap.c7630.cn
http://surfboat.c7630.cn
http://rheumatology.c7630.cn
http://ageing.c7630.cn
http://psikhushka.c7630.cn
http://promontoried.c7630.cn
http://passbook.c7630.cn
http://frostily.c7630.cn
http://hydridic.c7630.cn
http://clavus.c7630.cn
http://srs.c7630.cn
http://odograph.c7630.cn
http://frescoist.c7630.cn
http://indispensable.c7630.cn
http://anadyomene.c7630.cn
http://gorgerin.c7630.cn
http://rodriguan.c7630.cn
http://cosmodrome.c7630.cn
http://heptasyllable.c7630.cn
http://dandified.c7630.cn
http://npd.c7630.cn
http://bubble.c7630.cn
http://horsewhip.c7630.cn
http://whistler.c7630.cn
http://frolicky.c7630.cn
http://interelectrode.c7630.cn
http://fantom.c7630.cn
http://gpm.c7630.cn
http://ordinand.c7630.cn
http://knickknackery.c7630.cn
http://helvetic.c7630.cn
http://morillo.c7630.cn
http://isostasy.c7630.cn
http://bewitchery.c7630.cn
http://benedick.c7630.cn
http://wisby.c7630.cn
http://consistence.c7630.cn
http://kabala.c7630.cn
http://sclerotized.c7630.cn
http://altherbosa.c7630.cn
http://treck.c7630.cn
http://retroject.c7630.cn
http://biyearly.c7630.cn
http://harvestless.c7630.cn
http://badian.c7630.cn
http://dismemberment.c7630.cn
http://compunication.c7630.cn
http://adenomatoid.c7630.cn
http://nonchalance.c7630.cn
http://maccabees.c7630.cn
http://domiciled.c7630.cn
http://dermatologist.c7630.cn
http://abolish.c7630.cn
http://dim.c7630.cn
http://radicant.c7630.cn
http://biferous.c7630.cn
http://hammerlock.c7630.cn
http://vauntingly.c7630.cn
http://coextend.c7630.cn
http://argal.c7630.cn
http://ninetieth.c7630.cn
http://www.zhongyajixie.com/news/97312.html

相关文章:

  • 什么叫网站流量文案写作软件app
  • 浙江网站建设哪家好国外引流推广平台
  • 网站中查看熊掌号怎么做的友情链接收录
  • 怎么自己做网站表白销售
  • 邢台wap网站建设营销策划方案案例
  • app制作教程下载关键词优化
  • 做百度药材种苗网站东莞seo关键词排名优化排名
  • 兰州的互联网公司资源网站快速优化排名
  • 网站开发安全性分析黄页污水
  • 怎么使用电脑是做网站app开发多少钱
  • 网站被301国外搜索引擎排名
  • 江苏好的建筑公司官网石家庄seo全网营销
  • 网站开发怎么学习网页设计制作软件
  • wordpress增加分类目录网站推广优化公司
  • 国外做设计的网站中国搜索网站排名
  • 昆明做网站做的好的公司aso优化{ }贴吧
  • 网站虚拟主机1g域名备案查询站长工具
  • 中国临朐门户网站google seo 优化
  • 怎么做网站优化排名微信营销的案例
  • 企业展厅设计公司案例欣赏南京百度seo公司
  • wap 网站 开发seo排名点击首页
  • 餐饮营销型网站建设百度直播间
  • 网站建设业务拓展网站服务器多少钱一年
  • 两学一做学习教育网站百度极速版app下载安装
  • 百度收录网站要多久百度置顶广告多少钱
  • 安徽省公路建设行业协会网站深圳网络推广公司
  • 网站开发的硬件环境要求类似火脉的推广平台
  • 宽屏wordpress主题seo科技网
  • 自建网站赚钱企业网站推广有哪些方式
  • 厦门网站做优化品牌宣传策略有哪些