👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆下载资源链接👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆
《《《《《《《《更多资源还请持续关注本专栏》》》》》》》
论文与完整源程序_电网论文源程序的博客-CSDN博客https://blog.csdn.net/liang674027206/category_12531414.html
在光伏上网电价低于市电电价的环境下,光伏用户通过集群的方式实现电能共享,可以获得比单独运行更好的效益。为了使光伏用户群内各经济主体能实现有序的电能交易,提出了一种基于光伏电能供需比(SDR)的内部价格模型。在考虑经济性和舒适度的基础上,提出了用户参与需求响应(DR)的效用成本模型。由于内部电价是以各时段光伏用户群内的供需比为基础,用户之间针对电价的需求响应行为可构成非合作博弈,在证明该博弈问题存在纳什均衡解的基础上,提出了分布式优化算法对用户的纳什均衡策略进行求解。最后,通过实际算例验证了所提模型在减少用电成本、提高光功率互用水平上的有效性。
部分代码展示:
valTot = zeros(1,i);
valTotfee = zeros(1,i);
valTotsof= zeros(1,i);
valsof = zeros(5,i);
valfee = zeros(5,i);
valcost = zeros(5,i);
a = 0.01;
for j=1:i
valsof(1,j) = a*(x1record(:,j)-RU2(:,1))'* (x1record(:,j)-RU2(:,1));
valsof(2,j) = a*(x2record(:,j)-RU2(:,2))'* (x2record(:,j)-RU2(:,2));
valsof(3,j) = a*(x3record(:,j)-RU2(:,3))'* (x3record(:,j)-RU2(:,3));
valsof(4,j) = a*(x4record(:,j)-RU2(:,4))'* (x4record(:,j)-RU2(:,4));
valsof(5,j) = a*(x5record(:,j)-RU2(:,5))'* (x5record(:,j)-RU2(:,5));
piter = [pSrecord(:,j),pBrecord(:,j)];
pthis = zeros(24,1); %第一个RU电价
for k=1:24
if x1record(k,j)-solar(k,1)>0%大于0表明要买电
pthis(k) = piter(k,2);
else
pthis(k) = piter(k,1);
end
end
valfee(1,j) = pthis'*(x1record(:,j)-solar(:,1));
for k=1:24%第二个RU电价
if x2record(k,j)-solar(k,2)>0%大于0表明要买电
pthis(k) = piter(k,2);
else
pthis(k) = piter(k,1);
end
end
valfee(2,j) = pthis'*(x2record(:,j)-solar(:,2));
for k=1:24%第三个RU电价
if x3record(k,j)-solar(k,3)>0%大于0表明要买电
pthis(k) = piter(k,2);
else
pthis(k) = piter(k,1);
end
end
valfee(3,j) = pthis'*(x3record(:,j)-solar(:,3));
for k=1:24%第四个RU电价
if x4record(k,j)-solar(k,4)>0%大于0表明要买电
pthis(k) = piter(k,2);
else
pthis(k) = piter(k,1);
end
end
valfee(4,j) = pthis'*(x4record(:,j)-solar(:,4));
for k=1:24%第五个RU电价
if x5record(k,j)-solar(k,5)>0%大于0表明要买电
pthis(k) = piter(k,2);
else
pthis(k) = piter(k,1);
end
end
valfee(5,j) = pthis'*(x5record(:,j)-solar(:,5));
valTotfee(1,j) = valfee(1,j) + valfee(2,j) + valfee(3,j) + valfee(4,j) + valfee(5,j);
valTotsof(j) = valsof(1,j) + valsof(2,j) + valsof(3,j) + valsof(4,j) + valsof(5,j);
valcost(1,j) = valfee(1,j) + valsof(1,j);
valcost(2,j) = valfee(2,j) + valsof(2,j);
valcost(3,j) = valfee(3,j) + valsof(3,j);
valcost(4,j) = valfee(4,j) + valsof(4,j);
valcost(5,j) = valfee(5,j) + valsof(5,j);
valTot(j) = valTotfee(j) + valTotsof(j);
% valTot(1,j) = valsof(1,j) + valsof(2,j) + valsof(3,j) + valsof(4,j) + valsof(5,j) + valfee(1,j) + valfee(2,j) + valfee(3,j) + valfee(4,j) + valfee(5,j);
end
效果展示:
110号资源-源程序:论文可在知网下载《市场模式下光伏用户群的电能共享与需求响应模型》本人博客有解读资源-CSDN文库https://download.csdn.net/download/LIANG674027206/89319922👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆下载资源链接👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆
《《《《《《《《更多资源还请持续关注本专栏》》》》》》》
论文与完整源程序_电网论文源程序的博客-CSDN博客https://blog.csdn.net/liang674027206/category_12531414.html