get_options.m
来自「用matlab语言编的多维粒子群代吗」· M 代码 · 共 15 行
M
15 行
%本函数是对参数的设置
function psoOptions = get_Options()
psoOptions = struct(... %Variables of the PSO
'Vars', struct(...
'PopSize', 20, ... %Swarm Size
'Iterations', 10,... %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', 0.8298 ), ... %Constriction factor
'population',10);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?