|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
; ~5 q9 ~& ]* r1 m( M/ o1 B3 N一、源代码
( q. r0 g, |$ P. B! |# ?- f ! |6 R! {2 `0 | K% w
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %
- % 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)
9 i U! X7 A4 [6 ~* d$ Z! G: c
$ F6 t+ _3 c. s0 _: i
' m _3 _, ]4 _/ z4 s) S
9 f$ Y: k7 u) o: k二、运行结果
5 m) Z- b& y' a/ t9 D: ]
W$ d, X3 j# F7 z; N* f
|
|