当前位置: 首页 > news >正文

粒子群算法电力系统【原创附代码】

以下为我论文的代码。想要的话可以等我发出来再联系我。
请别小看这几行代码。占据了我代码main函数的半壁江山。

figure(1)
tiledlayout(2,2);
nexttile
hold on
plot(lambda_C_s, '-x', 'LineWidth',1.7, 'Color',[254 199 199]/255, 'DisplayName','供电局向区域外销售电价');
plot(lambda_C_p, '-^', 'LineWidth',1.7, 'Color',[254 47 47]/255, 'DisplayName','供电局从区域外购买电价');
plot(The_Optimal_Profit.opt_variable(25:48), '-s','LineWidth',1.7, 'Color',[51 51 248]/255, 'DisplayName','供电局向台区售电电价')
plot(The_Optimal_Profit.opt_variable(1:24), '-d', 'LineWidth',1.7, 'Color',[42 42 252]/255, 'DisplayName','供电局向台区购电电价')
title('系统电价示意图')
legend
hold off
nexttile
hold on
plot(1:T, output1(6,:), "Color",[219, 049, 036]/255, 'DisplayName','购电出力');
plot(1:T, output1(1,:), 'Color',[252, 140, 090]/255, 'DisplayName','传统发电出力');
plot(1:T, output1(2,:) ,'Color',[144, 190, 223]/255, 'DisplayName','绿电(风电)出力');
plot(1:T, output1(3,:),'Color',[15, 10, 223]/255, 'DisplayName','绿电(光伏)出力');
% plot(1:T, Power_didscharging_storage ,'Color',[75, 116, 178]/255, 'DisplayName','储能放电');
title('系统1可动用的全部电力供应')
legend
hold off
nexttile
hold on
plot(1:T, output1(4,:),  "Color",[219, 049, 036]/255, 'DisplayName','原始的负荷');
plot(1:T, output1(4,:)-output1(5,:), 'Color',[252, 140, 090]/255, 'DisplayName','需求侧响应以后的负荷');
title('系统1中存在的电力负荷')
legend
hold off
nexttile
bar(output1(8,:),'FaceColor',[15, 10, 223]/255, 'DisplayName','交易的绿证');
title('系统1中交易的绿证')figure(2)
tiledlayout(2,2);
nexttile
hold on
plot(lambda_C_s, '-x', 'LineWidth',1.7, 'Color',[254 199 199]/255, 'DisplayName','供电局向区域外销售电价');
plot(lambda_C_p, '-^', 'LineWidth',1.7, 'Color',[254 47 47]/255, 'DisplayName','供电局从区域外购买电价');
plot(The_Optimal_Profit.opt_variable(25:48), '-s','LineWidth',1.7, 'Color',[51 51 248]/255, 'DisplayName','供电局向台区售电电价')
plot(The_Optimal_Profit.opt_variable(1:24), '-d', 'LineWidth',1.7, 'Color',[42 42 252]/255, 'DisplayName','供电局向台区购电电价')
title('系统电价示意图')
legend
hold off
nexttile
hold on
plot(1:T, output2(6,:), "Color",[219, 049, 036]/255, 'DisplayName','购电出力');
plot(1:T, output2(1,:), 'Color',[252, 140, 090]/255, 'DisplayName','传统发电出力');
plot(1:T, output2(2,:) ,'Color',[144, 190, 223]/255, 'DisplayName','绿电(风电)出力');
plot(1:T, output2(3,:),'Color',[15, 10, 223]/255, 'DisplayName','绿电(光伏)出力');
title('系统2可动用的全部电力供应')
legend
hold off
nexttile
hold on
plot(1:T, output2(4,:),  "Color",[219, 049, 036]/255, 'DisplayName','原始的负荷');
plot(1:T, output2(4,:)-output2(5,:), 'Color',[252, 140, 090]/255, 'DisplayName','需求侧响应以后的负荷');
title('系统2中存在的电力负荷')
legend
hold off
nexttile
bar(output2(8,:),'FaceColor',[15, 10, 223]/255, 'DisplayName','交易的绿证');
title('系统2中交易的绿证')figure(3)
tiledlayout(2,2);
nexttile
hold on
plot(lambda_C_s, '-x', 'LineWidth',1.7, 'Color',[254 199 199]/255, 'DisplayName','供电局向区域外销售电价');
plot(lambda_C_p, '-^', 'LineWidth',1.7, 'Color',[254 47 47]/255, 'DisplayName','供电局从区域外购买电价');
plot(The_Optimal_Profit.opt_variable(25:48), '-s','LineWidth',1.7, 'Color',[51 51 248]/255, 'DisplayName','供电局向台区售电电价')
plot(The_Optimal_Profit.opt_variable(1:24), '-d', 'LineWidth',1.7, 'Color',[42 42 252]/255, 'DisplayName','供电局向台区购电电价')
title('系统电价示意图')
legend
hold off
nexttile
hold on
plot(1:T, output3(6,:), "Color",[219, 049, 036]/255, 'DisplayName','购电出力');
plot(1:T, output3(1,:), 'Color',[252, 140, 090]/255, 'DisplayName','传统发电出力');
plot(1:T, output3(2,:) ,'Color',[144, 190, 223]/255, 'DisplayName','绿电(风电)出力');
plot(1:T, output3(3,:),'Color',[15, 10, 223]/255, 'DisplayName','绿电(光伏)出力');
% plot(1:T, Power_didscharging_storage ,'Color',[75, 116, 178]/255, 'DisplayName','储能放电');
title('系统3可动用的全部电力供应')
legend
hold off
nexttile
hold on
plot(1:T, output3(4,:),  "Color",[219, 049, 036]/255, 'DisplayName','原始的负荷');
plot(1:T, output3(4,:)-output3(5,:), 'Color',[252, 140, 090]/255, 'DisplayName','需求侧响应以后的负荷');
title('系统3中存在的电力负荷')
legend
hold off
nexttile
bar(output3(8,:),'FaceColor',[15, 10, 223]/255, 'DisplayName','交易的绿证');
title('系统3中交易的绿证')

http://www.mrgr.cn/news/18437.html

相关文章:

  • 法人手机验证通常是为了确保企业相关操作的安全性和合法性。以下是一些常见的法人手机验证方法及测试要点:
  • 用RPC Performance Inspector 优化你的区块链
  • SpringCloud开发实战(一):搭建SpringCloud框架
  • java update有什么用
  • 高教社杯数模竞赛特辑论文篇-2016年A题:系泊系统设计(续)(附MATLAB代码实现)
  • htop的使用详解
  • 软件工程-图书管理系统的需求分析
  • 《比较教育学报》
  • 基于nodejs+vue+uniapp的学习资料销售平台小程序
  • 分类预测|基于鲸鱼优化WOA最小二乘支持向量机LSSVM的数据分类预测Matlab程序WOA-LSSVM 多特征输入多类别输出
  • 集成电路学习:什么是I/O输入输出
  • Linux C 内核编程 /proc 编程例子
  • 分体设计不入耳,舒适佩戴的AI耳机,塞那G6S体验
  • 备忘录1【java环境变量手动更改】
  • WordPress 集网址、资源、资讯于一体的导航类主题开心版
  • C++ STL find_first_of 用法
  • 智能化浪潮赋能工业制造与报废拆解,基于高精度YOLOv8全系列参数【n/s/m/l/x】模型开发构建工业生产场景下车辆不同部位智能化分割检测识别分系统
  • echarts graphChart关系图简单逻辑实现
  • Git原理与使用
  • 高度集成:硬件和软件通常集成在一起是什么意思