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

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

🍊个人信条:格物致知。

⛄ 内容介绍

【棕熊优化算法】基于棕熊优化算法求解单目标优化问题附matlab代码

⛄ 部分代码


clear all 

close all

clc


N=30; % Number of search agents


Function_name='F3'; % Name of the test function 


Max_iter=100; % Maximum number of iterations


% Load details of the selected benchmark function

[lb,ub,dim,fobj]=Get_Functions_details(Function_name);


[gBestScore,gBest,Convergence_curve]=BOA(N,Max_iter,lb,ub,dim,fobj);


display(['The best location of BOA is: ', num2str(gBest)]);

display(['The best fitness of BOA is: ', num2str(gBestScore)]);

figure('Position',[269   240   660   290])

%Draw search space

subplot(1,2,1);

func_plot(Function_name);

title('Parameter space')

xlabel('x_1');

ylabel('x_2');

zlabel([Function_name,'( x_1 , x_2 )'])


%Draw objective space

subplot(1,2,2);

plot(Convergence_curve,'Color','r','linewidth',1.5)

title('Objective space')

xlabel('Iteration');

ylabel('Best score obtained so far');


axis tight

grid on

box on

legend('BOA')

⛄ 运行结果

【棕熊优化算法】基于棕熊优化算法求解单目标优化问题附matlab代码_图像处理

【棕熊优化算法】基于棕熊优化算法求解单目标优化问题附matlab代码_Max_02

【棕熊优化算法】基于棕熊优化算法求解单目标优化问题附matlab代码_优化算法_03

⛄ 参考文献

Tapan Prakash, Praveen Prakash Singh, Vinay Pratap       Singh, and Sri Niwas Singh. "A Novel Brown-bear    Optimization Algorithm for Solving Economic Dispatch Problem." In Advanced Control & Optimization Paradigms  for Energy System Operation and Management, pp164. River Publishers, 2023.  

⛳️ 完整代码

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