1 简介
随着我国社会经济的发展和人民的生活质量日益提高,用户对电能质量的要求也在不断的提高。作为配电系统,其直接面向用户,所以配电系统的安全可靠性问题已经影响到用户的需求,越来越受到电力部门的关注和重视。而其中的配电网供电恢复是系统恢复中的重要问题。因此,配电网故障恢复策略的制定尤为重要,像过去一样单凭个人的经验已经不能很好地管理和重构现代化的配电系统,于是配电网的自动化被提到一个很重要的位置。近年来,随着通信手段和计算机技术的发展,使得配电网故障恢复策略研究有了长足的发展,也使得各种算法在配电网中得以应用和研究。 本课题研究的目的是在原有的配电网故障恢复策略算法上进行改进,提出最大化搜寻可行性解的策略,提高算法效率,更有利于为操作员或者系统给出具有参考价值的算法结果进行开关操作,提高操作的效率,切除故障和恢复供电的时间比以前缩短了,供电可靠性也得到提高。
2 部分代码
function show_tuopu(a)
S=transform(a);
zhilu=ones(1,37);
for k=1:37 %zhilu中存放闭合的32条支路
if k==S(1)
zhilu(k)=0;
end
if k==S(2)
zhilu(k)=0;
end
if k==S(3)
zhilu(k)=0;
end
if k==S(4)
zhilu(k)=0;
end
if k==S(5)
zhilu(k)=0;
end
end
Branch_data = [
1 0 1 0.0922 0.0470;
2 1 2 0.4930 0.2511;
3 2 3 0.3660 0.1864;
4 3 4 0.3811 0.1941;
5 4 5 0.8190 0.7070;
6 5 6 0.1872 0.6188;
7 6 7 0.7114 0.2351;
8 7 8 1.0300 0.7400;
9 8 9 1.0440 0.7400;
10 9 10 0.1966 0.0650;
11 10 11 0.3744 0.1238;
12 11 12 1.4680 1.1550;
13 12 13 0.5416 0.7129;
14 13 14 0.5910 0.5260;
15 14 15 0.7463 0.5450;
16 15 16 1.2890 1.7210;
17 16 17 0.7320 0.5740;
18 1 18 0.1640 0.1565;
19 18 19 1.5042 1.3554;
20 19 20 0.4095 0.4784;
21 20 21 0.7089 0.9373;
22 2 22 0.4512 0.3083;
23 22 23 0.8980 0.7091;
24 23 24 0.8960 0.7011;
25 5 25 0.2030 0.1034;
26 25 26 0.2842 0.1447;
27 26 27 1.0590 0.9337;
28 27 28 0.8042 0.7006;
29 28 29 0.5075 0.2585;
30 29 30 0.9744 0.9630;
31 30 31 0.3105 0.3619;
32 31 32 0.3410 0.5302;
33 7 20 2 2;
34 8 14 2 2;
35 11 21 2 2;
36 17 32 0.5 0.5;
37 24 28 0.5 0.5;
];
Bitlength=size(zhilu,2);
%绘制闭合回路
A=zeros(33,33);%非对角元素为1表明两节点相连
for k=1:Bitlength
if zhilu(1,k)==1
A(Branch_data(k,2)+1,Branch_data(k,3)+1)=1;
A(Branch_data(k,3)+1,Branch_data(k,2)+1)=1;
end
end
B=[1,3;2,3;3,3;4,3;5,3;6,3;7,3;8,3;9,3;10,3.3;11,3.3;12,3.3;13,3.3;14,3.3;15,3;16,3;17,3;18.2,3;2,3.9;3,3.9;4,3.9;5,3.9;3,1.1;4,1.1;5,1.1;6,2;7,2;8,2;9,2;10,2;11,2;12,2;13,2;]; %存放各节点位置
%subplot(2,2,ii);
gplot(A,B,'-*');
hold on
%在此基础上绘制关断支路
A1=zeros(33,33);
for k=1:Bitlength
if zhilu(1,k)==0
A1(Branch_data(k,2)+1,Branch_data(k,3)+1)=1;
A1(Branch_data(k,3)+1,Branch_data(k,2)+1)=1;
end
end
B=[1,3;2,3;3,3;4,3;5,3;6,3;7,3;8,3;9,3;10,3.3;11,3.3;12,3.3;13,3.3;14,3.3;15,3;16,3;17,3;18.2,3;2,3.9;3,3.9;4,3.9;5,3.9;3,1.1;4,1.1;5,1.1;6,2;7,2;8,2;9,2;10,2;11,2;12,2;13,2;]; %存放各节点位置
%subplot(2,2,ii);
gplot(A1,B,'--*');
hold off
%title('配电网拓扑结构图');
%显示节点编号
text(1,3.1,'0');
text(2,3.1,'1');
text(3,3.1,'2');
text(4,3.1,'3');
text(5,3.1,'4');
text(6,3.1,'5');
text(7,3.1,'6');
text(8,3.1,'7');
text(9,3.1,'8');
text(10,3.1,'9');
text(11,3.1,'10');
text(12,3.1,'11');
text(13,3.1,'12');
text(14,3.1,'13');
text(15,3.1,'14');
text(16,3.1,'15');
text(17,3.1,'16');
text(17.8,3.1,'17');
text(2,3.8,'18');
text(3,3.8,'19');
text(4,3.8,'20');
text(5,3.8,'21');
text(3,1.2,'22');
text(4,1.2,'23');
text(5,1.2,'24');
text(6,2.1,'25');
text(7,2.1,'26');
text(8,2.1,'27');
text(9,2.1,'28');
text(10,2.1,'29');
text(11,2.1,'30');
text(12,2.1,'31');
text(13,2.1,'32');
%显示支路
text(1.5,2.9,'1','color','r');
text(2.5,2.9,'2','color','r');
text(3.5,2.9,'3','color','r');
text(4.5,2.9,'4','color','r');
text(5.5,2.9,'5','color','r');
text(6.5,2.9,'6','color','r');
text(7.5,2.9,'7','color','r');
text(8.5,2.9,'8','color','r');
text(9.5,3.2,'9','color','r');
text(10.5,3.2,'10','color','r');
text(11.5,3.2,'11','color','r');
text(12.5,3.2,'12','color','r');
text(13.5,3.2,'13','color','r');
text(14.5,3.2,'14','color','r');
text(15.5,2.9,'15','color','r');
text(16.5,2.9,'16','color','r');
text(17.5,2.9,'17','color','r');
text(1.8,3.5,'18','color','r');
text(2.5,3.7,'19','color','r');
text(3.5,3.7,'20','color','r');
text(4.5,3.7,'21','color','r');
text(2.8,1.5,'22','color','r');
text(3.5,1.3,'23','color','r');
text(4.5,1.3,'24','color','r');
text(5.8,2.5,'25','color','r');
text(6.5,1.9,'26','color','r');
text(7.5,1.9,'27','color','r');
text(8.5,1.9,'28','color','r');
text(9.5,1.9,'29','color','r');
text(10.5,1.9,'30','color','r');
text(11.5,1.9,'31','color','r');
text(12.5,1.9,'32','color','r');
text(4.5,3.5,'33','color','r');
text(12,2.8,'34','color','r');
text(9,3.5,'35','color','r');
text(16,2.1,'36','color','r');
text(6.5,1.5,'37','color','r');
%去除xy轴刻度
set(gca,'xtick',[],'xticklabel',[]);
set(gca,'ytick',[],'yticklabel',[]);
title('case 2');
legend('Closed switch','Open switch');
end
3 仿真结果
4 参考文献
[1]李旭前, 李明莉. 基于遗传算法的配电网故障恢复[J]. 云南电力技术, 2011, 39(5):3.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。