when i change flags.Neighbor=1
some bugs appears.
see:
psoOptions = get_psoOptions
psoOptions =
Flags: [1x1 struct]
Vars: [1x1 struct]
SParams: [1x1 struct]
Obj: [1x1 struct]
Terminate: [1x1 struct]
Disp: [1x1 struct]
Save: [1x1 struct]
Fuzzy: [1x1 struct]
>> [fxmin, xmin, Swarm, history] = PSO(psoOptions)
??? Reference to non-existent field 'SParam'.
Error in ==> D:\MATLAB6p5\toolbox\psotb\psotb-beta-0.3\pso.m
On line 95 ==> lo = mod(i-psoOptions.SParam.Nhood:i+psoOptions.SParam.Nhood, SwarmSize);
myemail: VSWR@163.com