资源简介
基本鸽群优化算法,由北京航空航天大学段海滨教授等人提出,可用于解决优化问题,收敛速度较快
代码片段和文件信息
%***************initialization*******************
global bound;
T1=90; %Global search algebra 地磁导航次数
T2=15; %Local search algebra 地标导航次数
pigeonnum=30; %number 种群数
D=1; % dimensionality 解维数(平面为二维)
R=0.3; %parameters of magnetic field 地磁因数
bound=[020]; %hunting zone 解空间
%**************initialization of the individual pigeon************ 生成初始解
for i=1:pigeonnum
for j=1:D
x(ij)=bound(1)+rand*(bound(2)-bound(1));
v(ij)=rand;
end
end
%**************calculate the fitness of pigeon*********** 计算适应度值
for i=1:pigeonnum
p(i)=f1(x(i:)D);
end
%**************find the optimal pigeons 求最优解
g_best=x(1:);
for i=2:pigeonnum
if f1(g_bestD) g_best=x(i:);
end
end
%************ magnetic compass and solar operator******************** 地磁导航
for t=1:T1
for i=1:pigeonnum
v(i:)=v(i:)*exp(-R*t)+rand*(g_best-x(i:));
x(i:)=x(i:)+v(i:);%更新位置速度
for j=1:D
if x(ij)bound(2) %检查解是否超出范围,超出则重新初始化
x(ij)=bound(1)+rand*(bound(2)-bound(1));
v(ij)=rand;
end
end
if f1(g_bestD) < f1(x(i:)D) %更新全局最优解
g_best=x(i:);
end
end
result(t)=f1(g_bestD); %记录本次迭代最优解
end
%*************地标算子导航**********************
for t=1:T2
for i=1:pigeonnum-1
for j=i+1:pigeonnum
相关资源
- 多种群遗传算法的函数优化算法(源
- 灰狼优化算法求解柔性作业车间问题
- 最优化算法规划-单纯形法MATLAB程序
- 蝴蝶优化算法
- 灰狼优化算法的仿真
- matlab开发-果蝇优化算法第二版
- 《MATLAB优化算法案例分析与应用》随
- bbocomplex 生物地理学算法
- matlab智能优化算法30个案例代码
- 鲸鱼优化算法(WOAMatlab).zip
- MATLAB实现群体多目标优化算法MOALO蚁狮
- DIRECT 全局优化算法 matlab程序 附带
- 差分蜂群优化算法MATLAB实现.rar
- MATLAB优化算法测试函数
- MATLAB多种优化算法介绍
- 多目标优化算法
- 超完整规范的多目标遗传优化算法M
- Matlab优化算法.pdf
- Matlab优化算法PDF
- 最优化方法及其Matlab程序设计 马昌凤
- MATLAB优化算法案例分析与应用-配书代
- Matlab编写多目标优化算法NSGA-Ⅱ的详解
- Matlab智能算法285081
- 智能优化算法及其MATLAB-(第2版)
- 两个经典的多目标优化算法代码:N
- MATLAB优化算法案例分析与应用 源代码
- 智能优化算法及其MATLAB[包子阳余继周
- [高清文字版]MATLAB优化算法案例分析与
- MATLAB优化算法案例分析与应用第1版电
- MATLAB优化算法案例分析与应用案例及
评论
共有 条评论