基本信息
源码名称:黏菌优化算法
源码大小:2.89KB
文件格式:.m
开发语言:MATLAB
更新时间:2021-12-28
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

黏菌优化算法

该算法主要模拟了黏菌在觅食过程中的行为和形态变化,而未对其完整生命周期进行建模。通过权值指标模拟黏菌静脉状管的形态变化和收缩模式之间的三种相关性。


clear all 

close all

clc

 

N=30; % Number of search agents

 

Function_name='F1'; % Name of the test function, range from F1-F13

 

T=500; % Maximum number of iterations

 

dimSize = 30;   %dimension size

 

% Load details of the selected benchmark function

[lb,ub,dim,fobj]=Get_Functions_SMA(Function_name,dimSize);

 

[Destination_fitness,bestPositions,Convergence_curve]=SMA(N,T,lb,ub,dim,fobj);

 

 

%Draw objective space

figure,

hold on

semilogy(Convergence_curve,'Color','b','LineWidth',4);

title('Convergence curve')

xlabel('Iteration');

ylabel('Best fitness obtained so far');

axis tight

grid off

box on

legend('SMA')

 

display(['The best location of SMA is: ', num2str(bestPositions)]);

display(['The best fitness of SMA is: ', num2str(Destination_fitness)]);