1 简介 正在上传…重新上传取消 正在上传…重新上传取消 2 部分代码 function RWs=RWalks(dim,max_iter,lb,ub,antlion,current_iter) I=1; rt=current_iter/max_iter; if current_itermax_iter*0.20 I=1+1*rt; end if cu
1 简介
正在上传…重新上传取消
正在上传…重新上传取消
2 部分代码
function RWs=RWalks(dim,max_iter,lb,ub,antlion,current_iter)I=1;
rt=current_iter/max_iter;
if current_iter>max_iter*0.20
I=1+1*rt;
end
if current_iter>max_iter*0.50
I=1+5*rt;
end
if current_iter>max_iter*0.75
I=1+10*rt;
end
if current_iter>max_iter*0.90
I=1+20*rt;
end
lb=lb'/I;
ub=ub'/I;
if rand<0.5
lb=lb+antlion;
else
lb=-lb+antlion;
end
if rand>=0.5
ub=ub+antlion;
else
ub=-ub+antlion;
end
RWs=zeros(max_iter+1,dim);
for i=1:dim
X = [0 cumsum(2*(rand(max_iter,1)>0.5)-1)'];
a=min(X);
b=max(X);
c=lb(i);
d=ub(i);
RWs(:,i)=((X-a).*(d-c))./(b-a)+c;
end
3 仿真结果
4 参考文献
[1] Singh, D. , and B. Singh . "Effective and efficient classification of gastrointestinal lesions: combining data preprocessing, feature weighting, and improved ant lion optimization." Journal of Ambient Intelligence and Humanized Computing 6(2020).
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。