📄 get_arsoptions.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%get_ARSOptions : A function to get an "option struct"that is used to set
%the parameters of the ARS algorithm.
%
%USAGE : ARSOptions = get_ARSOptions()
%Augments : None
%Return Values : ARSOptions------>A matlab struct used to set the para of ARS
%
% |-----Obj---->OBJECTIVE FUNCTION OPTIONS
% | |-----f2eval
% | |-----lb
% | |-----ub
% |----Vars---->VARIATION OPTIONS
% | |-----limit
% | |-----Iterations
% | |-----Dim
% |----SApara--->SA'S PARAMETER OPTIONS
% |-----factor_contract
% |-----Nrestart_max
% |-----radius
%
%History : Author : caodongsheng(orient)
% created on : 2007.6.12
% comments :the accelerated random search(ARS)
%
% ENJOY IT!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function ARSOptions=get_ARSOptions()
ARSOptions = struct(...
'Obj', struct(...
'f2eval', 'Simple_ODE_Reaction1', ...%Function/System to optimize
'lb', 0, ... %Lower bounds of Initialization
'ub', 10), ... %Upper bounds of Initialization
... %Variables of the ARS
'Vars', struct(...
'limit', 1e-10, ... %the minimum radius
'Iterations', 100,... %Maximum Iterations
'initialvalue',[0;0], ... %the initial coordinates
'Dim', 10), ... %Dimensions of the problem
... %ARS parameter
'ARSpara', struct(...
'factor_contract', 2, ... %used to constract the radius
'radius',1,... %radius used to sphere!
'flags', 1,... %is or not intial values
'Nrestart_max',4) ... %the times of restart
);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -