一、微网系统运行优化模型
微电网优化模型介绍:
二、淘金优化算法
淘金优化算法(Gold rush optimizer,GRO)由Kamran Zolf于2023年提出,其灵感来自淘金热,模拟淘金者进行黄金勘探行为。淘金优化算法(Gold rush optimizer,GRO)提供MATLAB代码_IT猿手的博客-CSDN博客
参考文献: K. Zolfi. Gold rush optimizer: A new population-based metaheuristic algorithm. Operations Research and Decisions 2023: 33(1), 113-150. DOI 10.37190/ord230108
三、GRO求解微电网优化
(1)部分代码
close all;
clear ;
clc;
global P_load; %电负荷
global WT;%风电
global PV;%光伏
%%
TestProblem=1;
[lb,ub,dim,fobj] = GetFunInfo(TestProblem);
SearchAgents_no=100; % Number of search agents
Max_iteration=1000; % Maximum number of iterations
[Best_score,Xbest,Convergence_curve]=GRO(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);
%% 画结果图
figure(1)
semilogy(Convergence_curve,'r-','linewidth',2);
legend('GRO');
xlabel('迭代次数')
ylabel('运行成本与环境保护成本之和')
(2)部分结果
四、完整MATLAB代码
文件夹内包含完整MATLAB代码,点击main.m即可运行。