get_options.txt

来自「用matlab语言编的多维粒子群代吗」· 文本 代码 · 共 15 行

TXT
15
字号
%本函数是对参数的设置
function psoOptions = get_Options()
psoOptions = struct(... %Variables of the PSO
    'Vars', struct(...    
    'PopSize',   10, ...     %Swarm Size 
    'Iterations',  5,...    %Maximum Iterations
    'GoalInprove', 1e-2,...
   'ErrGoal',     5e-5 ), ...  %Error goal
    ...  %Stratergy Parameters
    'SParams', struct(... 
    'c1',       2.05, ...      %Cognitive Acceleration
    'c2',       2.05, ...      %Social Acceleration
    'Vmax',     2.837,...     %Maximum velocity step
    'Chi',      0.7298 ), ...      %Constriction factor
    'population',20);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?