【优化求解】基于matlab之金鹰优化求解算法(GEO)【Matlab 139期】

一、源代码

 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  
%  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) 
 
 

二、运行结果

【优化求解】基于matlab之金鹰优化求解算法(GEO)【Matlab 139期】_第1张图片

三、备注

完整代码或者代写添加QQ912100926
往期回顾>>>>>>
【优化求解】粒子群算法之充电站最优布局【Matlab 061期】
【优化求解】遗传算法之多旅行商问题【Matlab 062期】
【优化求解】遗传和模拟退火之三维装箱问题【Matlab 063期】
【优化求解】遗传算法之求最短路径【Matlab 064期】
【优化求解】粒子群之优化灰狼算法【Matlab 065期】
【优化求解】多目标之灰狼优化算法MOGWO 【Matlab 066期】
【优化求解】遗传算法之求解优化车辆发车间隔【Matlab 067期】
【优化求解】磷虾群算法简介【Matlab 068期】
【优化求解】差分进化算法简介【Matlab 069期】
【优化求解】约束优化之惩罚函数法简介【Matlab 070期】
【优化求解】改进灰狼算法之求解重油热解模型【Matlab 072期】
【优化求解】蚁群算法之配电网故障定位【Matlab 073期】
【优化求解】遗传算法之求解岛屿物资补给优化问题【Matlab 137期】
【优化求解】基于matlab冠状病毒群体免疫优化算法(CHIO)【Matlab 138期】

你可能感兴趣的:(matlab,优化求解)