👨🎓个人主页:研学社的博客
💥💥💞💞欢迎来到本博客❤️❤️💥💥
🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。
⛳️座右铭:行百里者,半于九十。
📋📋📋本文目录如下:🎁🎁🎁
目录
💥1 概述
参考文献:
📚2 运行结果
bestindividual =
0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0
bestfit =
4.5000
bestindividual =
0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0
bestfit =
10
bestindividual =
0 0 1 0 1 1 1 0 0 0 0 1 0 0 0 1 0 1 0 0
bestfit =
8.5000
bestindividual =
0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1
bestfit =
7
bestindividual =
0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0
bestfit =
6.5000
bestindividual =
0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =
5.5000
bestindividual =
0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0
bestfit =
6
bestindividual =
1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =
5.5000
bestindividual =
0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =
5
bestindividual =
0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
bestfit =
7
bestindividual =
0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0
bestfit =
6.5000
bestindividual =
1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =
6
bestindividual =
0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =
5
bestindividual =
1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
bestfit =
8.5000
bestindividual =
1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0
bestfit =
8
bestindividual =
1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =
6
bestindividual =
1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0
bestfit =
5
bestindividual =
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =
4.5000
bestindividual =
0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0
bestfit =
7.5000
bestindividual =
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =
4.5000
bestindividual =
0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
bestfit =
5.5000
bestindividual =
0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =
5
bestindividual =
0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
bestfit =
3.5000
bestindividual =
1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =
7.5000
bestindividual =
0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =
5.5000
bestindividual =
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
bestfit =
5
all_best =
1
all_x =
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
时间已过 1.744887 秒
bestindividual =
0 0 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0
bestfit =4.5000
bestindividual =0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0
bestfit =10
bestindividual =0 0 1 0 1 1 1 0 0 0 0 1 0 0 0 1 0 1 0 0
bestfit =8.5000
bestindividual =0 0 1 0 1 0 0 0 0 0 1 1 0 0 0 1 0 0 0 1
bestfit =7
bestindividual =0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0
bestfit =6.5000
bestindividual =0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =5.5000
bestindividual =0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0
bestfit =6
bestindividual =1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =5.5000
bestindividual =0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =5
bestindividual =0 0 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
bestfit =7
bestindividual =0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0
bestfit =6.5000
bestindividual =1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =6
bestindividual =0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 1 0 0
bestfit =5
bestindividual =1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
bestfit =8.5000
bestindividual =1 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 1 0 0
bestfit =8
bestindividual =1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =6
bestindividual =1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0
bestfit =5
bestindividual =1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
bestfit =4.5000
bestindividual =0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0
bestfit =7.5000
bestindividual =0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =4.5000
bestindividual =0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
bestfit =5.5000
bestindividual =0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =5
bestindividual =0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
bestfit =3.5000
bestindividual =1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =7.5000
bestindividual =0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1
bestfit =5.5000
bestindividual =0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0
bestfit =5
all_best =1
all_x =0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
时间已过 1.744887 秒
部分代码:
function fitness=f1(SB)
% Ij=[1 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0];%位置8故障
% Ij=[1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0];%位置16故障
% Ij=[1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0];%位置8,16故障
Ij=[1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0];%位置5,18故障
IE=zeros(1,length(Ij));
IE(1)=SB(1)|SB(2)|SB(3)|SB(4)|SB(5)|SB(6)|SB(7)|SB(8)|SB(9)|SB(10)|SB(11)|SB(12)|SB(13)|SB(14)|SB(15)|SB(16)|SB(17)|SB(18)|SB(19)|SB(20);
IE(2)=SB(2)|SB(3)|SB(4)|SB(5)|SB(6)|SB(7)|SB(8)|SB(9)|SB(10)|SB(11)|SB(12)|SB(13)|SB(14)|SB(15)|SB(16)|SB(17)|SB(18)|SB(19)|SB(20);
IE(3)=SB(3)|SB(4)|SB(5)|SB(11)|SB(12)|SB(13)|SB(14)|SB(15)|SB(16)|SB(17)|SB(18)|SB(19)|SB(20);
IE(4)=SB(4)|SB(5)|SB(11)|SB(12)|SB(13)|SB(14)|SB(15)|SB(16)|SB(17);
IE(5)=SB(5)|SB(16)|SB(17);
IE(6)=SB(6)|SB(7)|SB(8)|SB(9)|SB(10);
IE(7)=SB(7)|SB(8)|SB(9)|SB(10);
🎉3 参考文献
部分理论来源于网络,如有侵权请联系删除。
[1]严太山,崔杜武,陶永芹.基于改进遗传算法的配电网故障定位[J].高电压技术,2009,35(02):255-259.DOI:10.13336/j.1003-6520.hve.2009.02.032.