一、螳螂搜索算法
螳螂搜索算法(Mantis Search Algorithm,MSA)由Mohamed Abdel-Basset等人于2023年提出,该算法模拟螳螂独特的狩猎和性同类相食行为。MSA由三个优化阶段组成,包括寻找猎物(探索),攻击猎物(剥削)和性同类相食,具有搜索效率高等优势。



参考文献:
[1]Mohamed Abdel-Basset, Reda Mohamed, Mahinda Zidan, Mohammed Jameel, Mohamed Abouhawwash,Mantis Search Algorithm: A novel bio-inspired algorithm for global optimization and engineering design problems,Computer Methods in Applied Mechanics and Engineering,415,2023https://doi.org/10.1016/j.cma.2023.116200.
二、微网系统运行优化模型
微电网优化模型介绍:
微电网多目标优化调度模型简介_IT猿手的博客-CSDN博客
三、MSA求解微电网优化
(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=2000; % Maximum number of iterations
[Best_score,Xbest,Convergence_curve]=MSA(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);
%% 画结果图
figure(1)
semilogy(Convergence_curve,'b-','linewidth',2);
legend('MSA');
xlabel('迭代次数')
ylabel('运行成本与环境保护成本之和')
 
(2)部分结果






















![心法利器[102] | 大模型落地应用架构的一种模式](https://img-blog.csdnimg.cn/img_convert/d68608422e0b7ee9f14842601f5c705d.png)
