get_options.asv
来自「用matlab语言编的多维粒子群代吗」· ASV 代码 · 共 15 行
ASV
15 行
%本函数是对参数的设置
function psoOptions = get_Options()
psoOptions = struct(... %Variables of the PSO
'Vars', struct(...
'PopSize', 20, ... %Swarm Size
'Iterations', 100,... %Maximum Iterations
'GoalInprove', 1e-2,...
'ErrGoal', 5e-5 ), ... %Error goal
... %Stratergy Parameters
'SParams', struct(...
'c1', 2.02, ... %Cognitive Acceleration
'c2', 2.02, ... %Social Acceleration
'Vmax', 1.837,... %Maximum velocity step
'Chi', w=0.8-Iter*((0.89-0.4)/Iterations) ), ... %Constriction factor
'population',2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?