首页 > 行业资讯 > 【无功优化】基于知识获取与共享算法实现多目标无功电压优化附matlab代码

【无功优化】基于知识获取与共享算法实现多目标无功电压优化附matlab代码

时间:2023-06-18 来源: 浏览:

【无功优化】基于知识获取与共享算法实现多目标无功电压优化附matlab代码

天天Matlab 天天Matlab
天天Matlab

TT_Matlab

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,完整matlab代码或者程序定制加qq1575304183。

收录于合集 #电力系统matlab源码 143个

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

个人主页: Matlab科研工作室

个人信条:格物致知。

更多Matlab仿真内容点击

智能优化算法       神经网络预测       雷达通信       无线传感器         电力系统

信号处理               图像处理               路径规划       元胞自动机         无人机

⛄ 内容介绍

1 算法原理

Existing heuristic optimization algorithms are prone  to obtain a set of non-dominated solutions overconcentrated within  an intermediate area in the objective space. It results in a poor  diversity performance of the Pareto front when handling the  problem on multi-objective voltage and reactive power  coordinated control (MOVRPOC). For mitigating the

aforementioned disadvantages, a newly developed heuristic  algorithm, gaining-sharing knowledge based algorithm (GSK), is  implemented to handle the problem of MOVRPOC. Then, the  minimum system losses, the minimum average voltage devia tion  and the minimum curtailment rate are treated as optimization  objectives, and then the revised IEEE 33-bus distribution system  is utilized as the benchmark networks. Grey wolf optimization  (GWO) and equilibrium optimizer (EO) are taken as a comparison  to validate the improvement on diversity of GSK. The results  reveal that GSK is capable to obtain more diverse non-dominated  solutions to MOVRPOC for distributed networks, which can be better applied to the practical scenarios on MOVRPOC  distribution networks. 

2 算法流程

多目标无功电压优化是一种在配电网或输电网中通过调整无功功率和电压水平来实现多个优化目标的方法。这些目标可以包括降低功耗、改善电压稳定性、减少潮流损耗等。

以下是多目标无功电压优化的一般流程:

  1. 网络建模:将配电网或输电网进行建模,包括各个节点、支路、负载以及发电设备等。

  2. 目标函数定义:根据具体的优化目标,定义一个或多个目标函数。常见的目标函数包括最小化功耗、最大化电压稳定性指标、最小化网络损耗等。

  3. 约束条件设定:确定约束条件,包括电压限制、无功功率限制、线路容量限制等。这些约束条件是为了保证系统运行的安全性和可行性。

  4. 优化算法选择:选择适当的优化算法来求解多目标优化问题。常用的算法包括遗传算法、粒子群优化、蚁群算法等。这些算法能够搜索优化空间,并找到一组 Pareto 最优解集合,代表了权衡不同优化目标的最佳解。

  5. 优化求解:利用选择的优化算法对目标函数进行优化求解。通过迭代搜索和评估目标函数值,不断更新解空间,直到满足停止准则或达到一定的迭代次数。

  6. 解析结果分析:对求解得到的 Pareto 最优解集合进行分析,根据实际需求选择最优的方案。可以考虑权衡不同目标之间的权重,并选择具有最佳综合性能的解决方案。

⛄ 部分代码

clear all

close all

clc

fd=100;               % doppler frequency = 100Hz

ts=0.1e-3;            % sampling time = 1 / sampling rate

Ts=100e-3;            % simulation time

t=[0:ts:Ts];          % time vector

N=length(t);          % 2M+1 complex Gaussian random variables

M=floor((N-1)/2);   

f0=fd/M;

f=[-fd:f0:fd];        % frequencies

var1=(sqrt(((fd.^2)-(f.^2)))).^(-1); % un-normalize var1 with 

%                                      % var1(0)=var1(end)= inf.

                                       % Var at +fd and -fd

%% get values by slope   var=sl*f+C where C is constanct

sl=(var1(2)-var1(3))/f0;                   % slope

C=var1(2)+sl.*f(2);                        % Constant of the straight line

%

var1(end)=sl*fd+C;                        % variance at +fd

var1(1)=var1(end);                        % variance at -fd

Beta=1/sum(var1);                         % Constant of proportionality

Var=Beta*var1;                            % Normalized Variannce

sigma=sqrt(Var);                          % Standard deviation

Mean=0;                                   % mean

stem(f/fd,Var,’linewidth’,2)

title(’PSD  "bathtub shape" ’)

xlabel(’f/fd’)

xlim([(-fd-f0)/fd (fd+f0)/fd])

grid on

hold on 

plot(f/fd,Var,’.-.’,’Color’,’r’)

%% Generate Complex Gaussian Random Variable  CRV-frequency domain

% CRV_f=(1/sqrt(2))*((random(’Normal’,Mean,sigma))+1j*(random(’Normal’,Mean,sigma)));

CRV_f=(1/sqrt(2))*((normrnd(Mean,sigma))+1j*(normrnd(Mean,sigma)));

%% Complex Gaussian Random Variable  CRV-time domain

CRV_t=CRP(CRV_f,ts,Ts,M);                   % Normalized to 1sec

CRV_t_db_AFD=20.*log10(abs(CRV_t));

CRV_t=CRV_t(1:round(length(CRV_t)/10));     % Random variables in 100ms

CRV_t_Amp=abs(CRV_t);                       % Amplitude of CRV t-domain

CRV_t_Amp_db=20.*log10(CRV_t_Amp);          % Amplitude of CRV t-domain in dB

CRV_t_Phase=angle(CRV_t);                   % Phase of CRV t-domain

r_meanS_CRV_t=rms(CRV_t_Amp);               % root mean square value of CRV

r_meanS_CRV_t_db=20.*log10(r_meanS_CRV_t);  % mean in dB of Complex Random Variable t domain

ten_db_below=r_meanS_CRV_t_db-10;           % mean in dB of Complex Random Variable t domain

%% Plot single realization of the Amplitude and Phase

tsn=.1/length(CRV_t);

t=[0:tsn:.1-(tsn)];

figure

subplot(2,1,1)

plot(t,CRV_t_Phase)

title(’single realization of the Phase’);

grid on

xlabel(’Time[sec]’);

ylabel(’Phase Radian’);

subplot(2,1,2)

[x,tt]=ksdensity(CRV_t_Phase);

plot(tt,x)

title(’PDF of Angles’);

grid on

xlabel(’Angel "Radian"’);

hold on

plot([tt(1) tt(end)],[1/(2*pi) 1/(2*pi)],’.-.r’,’linewidth’,2)

legend(’Distribution’,’1/(2*pi) level’)

xlim([tt(1) tt(end)])

figure

plot(t,CRV_t_Amp_db)

hold on 

plot([t(1) t(end)],[r_meanS_CRV_t_db r_meanS_CRV_t_db],’color’,’G’,’linewidth’,3)

plot([t(1) t(end)],[ten_db_below ten_db_below],’.-.r’,’linewidth’,2)

legend(’AMPLITUDE’,’RMS LEVEL’,’10 dB below RMS LEVEL’)

title(’single realization of the Amplitude’);

xlabel(’Time[sec]’);

ylabel(’Magnitude [dB]’);

%% Expectation of Level Crossing Rate in Ts time and Average Fade Duration

RowdB=ten_db_below-r_meanS_CRV_t_db;

Row=10.^(RowdB/20);

disp(’Theoretical LCR "Level Crossing Rate" ’)

LCR=(sqrt(2*pi).*fd.*Row.*exp(-(Row.^2)))   % Expected level Crossing rate per second

disp(’Theoretical AFD "Average Fade Duration" ’)

AFD=(exp(Row.^2)-1)/((sqrt(2*pi)).*fd.*Row)

%% exact crossing and exact average fade duration in this run

[LCN_S CPV AFD_S FT]= Cross_N_PD(CRV_t_Amp_db,ten_db_below,tsn);

disp(’Simulation Result: Number of Crossing per 0.1 sec "PD: Positive Direction"’)

LCN_S                       % simulation crossing number during 0.1 sec

loc=find(CPV);

[LCN_t CPV AFD_S]= Cross_N_PD(CRV_t_db_AFD,ten_db_below,tsn);

disp(’Simulation Result: Number of Crossing per 1 sec "PD: Positive Direction"’)

LCN_t 

disp(’Simulation Result: Average Fade Duration’)

AFD_S

disp({’Fraction of time when signal goes below specific level’;’total duration of fade per second’})

FT

%% plot filled circles at crossing points in the positive direction

hold on

scatter(t(loc),ten_db_below.*ones(1,length(loc)),’filled’,’blue’)

%% 

figure

[x,tt]=ksdensity(CRV_t_Amp);

plot(tt,x)

title(’PDF of Amplitude’);

grid on

⛄ 运行结果

⛄ 参考文献

[1] 王亚梅.面向多目标的主动配电网无功协调优化[D].山东理工大学[2023-06-16].DOI:CNKI:CDMD:2.1018.139525.

[2] 陈功贵,曹佳,刘耀,等.基于全序排列帝国主义算法的多目标无功优化仿真研究[J].实验室研究与探索, 2019, 38(7):6.DOI:10.3969/j.issn.1006-7167.2019.07.023.

[3] 袁辉,徐贵光,周京阳.基于模糊线性规划的无功电压优化[J].电网技术, 2003, 27(12):5.DOI:CNKI:SUN:DWJS.0.2003-12-008.

[4] 刘述奎,陈维荣,李奇,等.基于自适应聚焦粒子群优化算法的电力系统多目标无功优化[J].电网技术, 2009(13):53-58.DOI:CNKI:SUN:DWJS.0.2009-13-012.

仿真咨询

1.卷积神经网络(CNN)、LSTM、支持向量机(SVM)、最小二乘支持向量机(LSSVM)、极限学习机(ELM)、核极限学习机(KELM)、BP、RBF、宽度学习、DBN、RF、RBF、DELM实现风电预测、光伏预测、电池寿命预测、辐射源识别、交通流预测、负荷预测、股价预测、PM2.5浓度预测、电池健康状态预测、水体光学参数反演、NLOS信号识别、地铁停车精准预测、变压器故障诊断
2.图像识别、图像分割、图像检测、图像隐藏、图像配准、图像拼接、图像融合、图像增强、图像压缩感知
3.旅行商问题(TSP)、车辆路径问题(VRP、MVRP、CVRP、VRPTW等)、无人机三维路径规划、无人机协同、无人机编队、机器人路径规划、栅格地图路径规划、多式联运运输问题、车辆协同无人机路径规划
4.无人机路径规划、无人机控制、无人机编队、无人机协同、无人机任务分配
5.传感器部署优化、通信协议优化、路由优化、目标定位
6.信号识别、信号加密、信号去噪、信号增强、雷达信号处理、信号水印嵌入提取、肌电信号、脑电信号
7.生产调度、经济调度、装配线调度、充电优化、车间调度、发车优化、水库调度、三维装箱、物流选址、货位优化
8.微电网优化、无功优化、配电网重构、储能配置
9.元胞自动机交通流 人群疏散 病毒扩散 晶体生长

⛳️ 代码获取关注我

❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料

版权:如无特殊注明,文章转载自网络,侵权请联系cnmhg168#163.com删除!文件均为网友上传,仅供研究和学习使用,务必24小时内删除。
相关推荐