红风筝优化算法如何应用于单目标优化问题求解?
- 内容介绍
- 文章标签
- 相关推荐
本文共计281个文字,预计阅读时间需要2分钟。
1+内容介绍+【智能优化算法-红风优化算法】基于红风优化算法求解单目标优化问题,附MATLAB代码+2+部分代码+clear all; close all; clc; Function_name='F2'; % function name+Npop=50; % Number of search“
1 内容介绍
基于红风筝优化算法求解单目标优化问题附matlab代码
2 部分代码
clear all;
close all;
clc;
Function_name = 'F2'; % function name
Npop = 50; % Number of search agents
Max_it = 1000; % Maximum number of iterations
[lb,ub,nD,fobj]=Get_Functions_details(Function_name);
[xposbest,fvalbest,Curve]=ROA(Npop,Max_it,lb,ub,nD,fobj);
figure('Position',[500 500 660 290])
subplot(1,2,1);
func_plot(Function_name);
title('Objective space')
xlabel('x_1');
ylabel('x_2');
zlabel([Function_name,'( x_1 , x_2 )'])
subplot(1,2,2);
semilogy(Curve,'Color','r');
hold on
title('Objective space')
xlabel('Iterations');
ylabel('Best score');
3 运行结果
4 参考文献
部分理论引用网络文献,若有侵权联系博主删除。
本文共计281个文字,预计阅读时间需要2分钟。
1+内容介绍+【智能优化算法-红风优化算法】基于红风优化算法求解单目标优化问题,附MATLAB代码+2+部分代码+clear all; close all; clc; Function_name='F2'; % function name+Npop=50; % Number of search“
1 内容介绍
基于红风筝优化算法求解单目标优化问题附matlab代码
2 部分代码
clear all;
close all;
clc;
Function_name = 'F2'; % function name
Npop = 50; % Number of search agents
Max_it = 1000; % Maximum number of iterations
[lb,ub,nD,fobj]=Get_Functions_details(Function_name);
[xposbest,fvalbest,Curve]=ROA(Npop,Max_it,lb,ub,nD,fobj);
figure('Position',[500 500 660 290])
subplot(1,2,1);
func_plot(Function_name);
title('Objective space')
xlabel('x_1');
ylabel('x_2');
zlabel([Function_name,'( x_1 , x_2 )'])
subplot(1,2,2);
semilogy(Curve,'Color','r');
hold on
title('Objective space')
xlabel('Iterations');
ylabel('Best score');

