EDA365电子论坛网
标题:
金鹰优化求解算法(GEO)
[打印本页]
作者:
dapmood
时间:
2021-3-31 08:49
标题:
金鹰优化求解算法(GEO)
) J; P. j ^% y& K |1 T
一、源代码
2 O9 J( \1 ]! t0 Q/ T0 U5 D
5 @$ }/ G2 G, |' O9 `
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Golden Eagle Optimizer (GEO) source codes version 1.0
%
% To use this code in your own project
% remove the line for 'GetFunctionDetails' function
% and define the following parameters:
% fun : function handle to the .m file containing the objective function
% the .m file you define should accept the whole population 'x'
% as input and return a column vector containing objective function
% values of all of the population members
% nvars : number of decision/design variables
% lb : lower bound of decision variables (must be of size 1 x nvars)
% ub : upper bound of decision variables (must be of size 1 x nvars)
%
% GEO will return the following:
% x : best solution found
% fval : objective function value of the found solution
%
%% Inputs
FunctionNumber = 1; % 1-23
options.PopulationSize = 50;
options.MaxIterations = 1000;
%% Run Multi-Objective Golden Eagle Optimizer
[fun,nvars,lb,ub] = GetFunctionDetails (FunctionNumber);
options.AttackPropensity = [0.5 , 2];
options.CruisePropensity = [1 , 0.5];
[x,fval,ConvergenceCurve] = GEO (fun,nvars,lb,ub, options);
%% Plot results
PlotResults (fun,lb,ub, FunctionNumber,ConvergenceCurve)
4 V8 {! t- T2 i; X' ~
' V' b( x/ Z( n" A6 }# B
; Q+ |6 H7 p% }; Z$ f7 N5 a
1 k6 v$ d1 \1 ?' Y# r M# u
二、运行结果
; y% q1 f, M8 X8 ]
) t3 S5 H3 l6 R a- u) `( z3 X8 Y
4.png
(102.62 KB, 下载次数: 4)
下载附件
保存到相册
2021-3-31 08:49 上传
作者:
crime
时间:
2021-3-31 13:33
作者:
SsaaM7
时间:
2021-3-31 16:04
金鹰优化求解算法(GEO)
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2