👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆下载资源链接👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆
《《《《《《《《更多资源还请持续关注本专栏》》》》》》》
论文与完整源程序_电网论文源程序的博客-CSDN博客https://blog.csdn.net/liang674027206/category_12531414.html
提出一种计及光伏电站快速无功响应特性的分布式电源优化配置方法。考虑越来越多的敏感负荷接入配电系统,以及PV-STATCOM 这一将光伏逆变器用作 STATCOM 以提供快速无功响应功能的新技术,本文提出一类基于灵敏度分析理论的加权电压支撑能力指标以量化光伏电站在紧急状态下对敏感负荷节点电压恢复效率的影响。基于这一指标,以及用于处理分布式电源出力不确定性的多状态理论,构建一种计及光伏电站快速无功响应特性的分布式电源优化配置模型,并应用精确的二阶锥松弛技术对这一模型进行凸化处理,从而能够快速准确地得到最优的分布式电源配置方案。
部分代码展示:
%光伏处理
unitpv=10*1e-5;%单位光伏容量
pv_h=repmat(Npv,1,4*T*N).*repmat(dw_pv,8,4*T).*unitpv/10;
pv=[zeros(4,4*T*N);pv_h(1,:);zeros(5,4*T*N);pv_h(2,:);zeros(2,4*T*N);pv_h(3,:);zeros(1,4*T*N);pv_h(4,:);zeros(3,4*T*N);pv_h(5,:);zeros(2,4*T*N);pv_h(6,:);zeros(5,4*T*N);pv_h(7,:);zeros(1,4*T*N);pv_h(8,:);zeros(2,4*T*N)];
sv_h=unitpv.*repmat(Npv,1,4*T*N);
sv=[zeros(4,4*T*N);sv_h(1,:);zeros(5,4*T*N);sv_h(2,:);zeros(2,4*T*N);sv_h(3,:);zeros(1,4*T*N);sv_h(4,:);zeros(3,4*T*N);sv_h(5,:);zeros(2,4*T*N);sv_h(6,:);zeros(5,4*T*N);sv_h(7,:);zeros(1,4*T*N);sv_h(8,:);zeros(2,4*T*N)];
% Constraints = [Constraints,pv>=0,pv<=repmat(unitpv.*Npv,1,4*T*N)];
% Constraints = [Constraints,pv>=0,pv<=repmat(unitpv.*Npv,1,4*T*N)];
for i=1:33
for t=1:T
Constraints = [Constraints,cone([pv(i,t);qv(i,t)],sv(i,t))];
end
end
qv=[zeros(4,4*T*N);qv_h(1,:);zeros(5,4*T*N);qv_h(2,:);zeros(2,4*T*N);qv_h(3,:);zeros(1,4*T*N);qv_h(4,:);zeros(3,4*T*N);qv_h(5,:);zeros(2,4*T*N);qv_h(6,:);zeros(5,4*T*N);qv_h(7,:);zeros(1,4*T*N);qv_h(8,:);zeros(2,4*T*N)];
Constraints = [Constraints,Npv>=0,Ng>=0,Npv<=100];
%微燃机处理
unitg=10*1e-5;
pg_h=repmat(Ng.*unitg,1,4*T*N);
pg_x=[zeros(14,4*T*N);pg_h(1,:);zeros(1,4*T*N);pg_h(2,:);zeros(3,4*T*N);pg_h(3,:);zeros(2,4*T*N);pg_h(4,:);zeros(3,4*T*N);pg_h(5,:);zeros(1,4*T*N);pg_h(6,:);zeros(3,4*T*N)];
Constraints = [Constraints,pg<=pg_x,pg>=rmt.*pg_x];
%节点功率约束
Pin = -upstream*P + upstream*(I.*(r*ones(1,4*T*N))) + dnstream*P;%节点注入有功
Qin = -upstream*Q + upstream*(I.*(x*ones(1,4*T*N))) + dnstream*Q;%节点注入无功
Constraints = [Constraints, Pin+P2-Pg-pv-pg==0];
Constraints = [Constraints, Qin+Q2-Qg-qv==0];
% %欧姆定律约束
Constraints = [Constraints, V(branch(:,1),:) - V(branch(:,2),:) == 2*repmat(r,1,4*T*N).*P + 2*repmat(x,1,4*T*N).*Q - (repmat((r.^2 + x.^2),1,4*T*N)).*I];
% %Constraints = [Constraints, V(branch(:,1),:) - V(branch(:,2),:) >= 2*(r).*P + 2*(x).*Q - ((r.^2 + x.^2)).*I];
%二阶锥约束
rd=5;
% Constraints = [Constraints,cone([2*P;2*Q;I-V(branch(:,1),:)],I+V(branch(:,1),:))];
%Constraints = [Constraints, V(branch(:,1),:).*I >= P.^2+Q.^2];
%au=sdpvar(1);
for t=1:T
for ii = 1:32
Constraints = [Constraints, cone([2*P(ii,t);2*Q(ii,t);I(ii,t)-V(branch(ii, 1),t)],I(ii,t)+V(branch(ii, 1),t))];
%Constraints = [Constraints, cone([2*P(ii,t)/V(branch(ii, 1),t);2*Q(ii,t)/V(branch(ii, 1),t);I(ii,t)-au],I(ii,t)+au)];
end
end
%Constraints = [Constraints,au==1];
%% 通用约束
%节点电压约束
Constraints = [Constraints, repmat(Vmin,1,4*T*N) <= V,V <= repmat(Vmax,1,4*T*N)];
%发电机功率约束
Constraints = [Constraints, -repmat(Pgmax,1,4*T*N) <= Pg,Pg <= repmat(Pgmax,1,4*T*N),-repmat(Qgmax,1,4*T*N) <= Qg,Qg <= repmat(Qgmax,1,4*T*N)];
%支路电流约束
Constraints = [Constraints, 0 <= I,I <=100 ];%plmax^2
%电压支撑能力约束
%for i=1:33%计算每个节点电压支撑指标
i=13;
WV(i)=B4(i,5)*Npv(1)*unitpv+B4(i,11)*Npv(2)*unitpv+B4(i,14)*Npv(3)*unitpv+B4(i,16)*Npv(4)*unitpv+B4(i,20)*Npv(5)*unitpv+B4(i,23)*Npv(6)*unitpv+B4(i,29)*Npv(7)*unitpv+B4(i,31)*Npv(1)*unitpv;
%end
Constraints = [Constraints, WV>=Wref*sum(Npv)*unitpv];
%光伏渗透率约束
for i=1:4*T*N
Constraints = [Constraints, sum(Npv)*unitpv>=sum(P2(:,i))];
end
%% 目标函数
d=0.03;%折现率
whpv=2;whwt=10;%维护费用
效果展示:
105号资源-源程序:论文可在知网下载《互动环境下分布式电源与电动汽车充电站的优化配置方法研究-第二章》本人博客有解读资源-CSDN文库https://download.csdn.net/download/LIANG674027206/89309352 👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆下载资源链接👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆
《《《《《《《《更多资源还请持续关注本专栏》》》》》》》
论文与完整源程序_电网论文源程序的博客-CSDN博客https://blog.csdn.net/liang674027206/category_12531414.html