# 考虑“源-荷-储”协同互动的主动配电网优化调度研究附Matlab代码

✅作者简介：热爱科研的Matlab仿真开发者，修心和技术同步精进，matlab项目合作可私信。

🍎个人主页：Matlab科研工作室

🍊个人信条：格物致知。

## ⛄ 部分代码

%% 参数

% 风光热电

Ppv = [0, 0, 0, 0, 0, 0, 2.52, 10.08, 16.38, 25.2, 28.98, 30.24, 28.98, 26.46, 21.42, 16.38, 11.34, 2.52, 0 , 0, 0, 0, 0, 0];

Pwt = [32.76, 37.8, 41.57, 39.06, 35.28, 15.12, 17.64, 21.42, 25.2, 15.12, 7.56, 11.34, 6.3, 5.04, 17.64, 21.42, 34.02, 34.02, 22.68, 18.9, 20.16, 20.16, 30.24, 39.06];

Phe = [128.5, 132.28, 139.84, 129.76, 134.8, 127.24, 123.47, 119.69, 119.69, 112.13, 100.79, 89.45, 79.37, 66.77, 76.85, 85.67, 104.57, 114.65, 127.24, 146.14, 141.1, 134.8, 131.02, 129.76];

Pl = [62.99, 57.95, 55.43, 51.65, 50.39, 62.99, 81.89, 97.01, 117.17, 127.24, 123.47, 108.35, 99.53, 93.23, 97.01, 109.61, 118.4, 122.21, 129.76, 136.06, 125.98, 105.83, 89.45, 66.77];

Cm_pv = 0.0235;

Cm_wt = 0.0196;

% 电网买卖电价

Crb = [0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.49, 0.49, 0.49, 0.83, 0.83, 0.83, 0.83, 0.83, 0.49, 0.49, 0.49, 0.83, 0.83, 0.83, 0.49, 0.49, 0.17];

Crs = [0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.38, 0.38, 0.38, 0.65, 0.65, 0.65, 0.65, 0.65, 0.38, 0.38, 0.38, 0.65, 0.65, 0.65, 0.38, 0.38, 0.13];

Pgrid_min = -60;

Pgrid_max = 60;

% 燃气轮机

Pmt_min = 15;

Pmt_max = 65;

Rmt_down = -5;

Rmt_up = 10;

Cm_mt = 0.025;

eta_l = 0.15;

eta_h = 0.9;

Coph = 1.2;

eta_mt = [0.281511485,0.279660704,0.274107223,0.281714324,0.285366323,0.282392617,0.278652065,0.273527594,0.265437288,0.263784876,0.253341649,0.240684731,0.225559863,0.219695875,0.23198922,0.233347706,0.236346234,0.259440614,0.273964246,0.283534984,0.278375758,0.271587717,0.262965241,0.252302695];

Cst_mt = 1.94;

% 电锅炉

Peb_min = 0;

Peb_max = 50;

Reb_down = -3;

Reb_up = 5;

eta_ah = 0.85;  %热电转换效率

Cm_eb = 0.016;

Cst_eb = 2.74;

% 燃料电池

Pfc_min = 5;

Pfc_max = 40;

Rfc_down = -2;

Rfc_up = 2;

Cm_fc = 0.026;

eta_fc = [0.633102762,0.630810014,0.626210435,0.622515243,0.619496279,0.615849659,0.614475289,0.609895576,0.606003752,0.602201083,0.599696666,0.595793234,0.595413236,0.593021958,0.595233072,0.599833088,0.604433107,0.60902944,0.613626799,0.618226815,0.62282674,0.627426773,0.632026849,0.636626883];

Cst_fc = 1.2;

% 电储能

tau_b = 0.001;

eta_bch = 0.9;

eta_bdis = 0.9;

Eb_init = 30;

Eb_min = 0.2*150;

Eb_max = 0.8*150;

Cm_Eb = 0.0018;

Pbch_min=0;       % 电储能充电

Pbch_max=37.5;

Pbdis_min=0;     % 电储能放电

Pbdis_max=37.5;

% 热储能

tau_h = 0.01;

eta_hch = 0.9;

eta_hdis = 0.9;

Eh_init = 0.2*100;

Eh_min = 0.1*100;

Eh_max = 0.8*100;

Cm_Eh = 0.0016;

Phch_min=0;     % 热储能储热

Phch_max=25;

Phdis_min=0;    % 热储能放热

Phdis_max=25;

% 单价系数

Cgas = 2.5;

L_gas = 9.7;

Uinit = 0;

Che = 0.1;          % 制热收益系数

## ⛄ 参考文献

[1]诸晓骏. 考虑电动汽车有序充电的主动配电网源网荷优化调度研究[D]. 东南大学, 2016.

[2]邢海军, 洪绍云, 范宏,等. 面向"源-网-荷-储"的主动配电网优化重构及协调调度研究[J]. 电力建设, 2018, 39(8):6.

## ⛳️ 完整代码

##### ❤️ 关注我领取海量matlab电子书和数学建模资料

|
2天前
|

18 4
|
11天前
|

- **算法理论:** 利用PSO优化的CNN-GRU，结合CNN的特征提取和GRU的记忆机制，进行时间序列预测。 - **CNN:** 通过卷积捕获序列的结构信息。 - **GRU:** 简化的LSTM，处理序列依赖。 - **预测步骤:** 1. 初始化粒子群，每粒子对应一组模型参数。 2. 训练并评估CNN-GRU模型的验证集MSE。 3. 使用PSO更新参数，寻找最佳配置。 4. 迭代优化直至满足停止准则。 
33 13
|
7天前
|

16 1
|
7天前
|

markdown 探索MATLAB2022a中WOA与DSN弱栅栏覆盖的创新融合，模拟鲸鱼捕食策略解决传感器部署问题。算法结合“搜索”、“包围”、“泡沫网”策略，优化节点位置以最大化复杂环境下的区域覆盖。目标函数涉及能量效率、网络寿命、激活节点数、通信质量及覆盖率。覆盖评估基于覆盖半径比例，旨在最小化未覆盖区域。 `
28 2
|
19天前
|

Matlab|基于改进鲸鱼优化算法的微网系统能量优化管理matlab-源码

32 2
|
11天前
|

13 0
|
19天前
|

**算法预览图省略** - **软件版本**: MATLAB 2022a - **核心代码片段**略 - **PSO-CNN-LSTM概览**: 结合深度学习与优化，解决复杂时间序列预测。 - **CNN**利用卷积捕获时间序列的空间特征。 - **LSTM**通过门控机制处理长序列依赖，避免梯度问题。 - **流程**： 1. 初始化粒子群，每个粒子对应CNN-LSTM参数。 2. 训练模型，以验证集MSE评估适应度。 3. 使用PSO更新粒子参数，寻找最佳配置。 4. 迭代优化直到满足停止条件，如最大迭代次数或找到优良解。
30 0
|
2月前
|

126 1
|
2月前

98 1
|
2月前
|

41 1