MATLAB:OPTIONS 参数 InitialSwarmSpan 的值无效
MATLAB: Invalid value for OPTIONS parameter InitialSwarmSpan
在 MATLAB 中使用 PSO,我按照用户手册设置选项:
options = optimoptions('particleswarm','SwarmSize',50,'InitialSwarmMatrix',[1.5,4.2,3.11,6.71]);
Error using optimoptions (line 105)
'InitialSwarmMatrix' is not an option for PARTICLESWARM.
A list of options can be found on the PARTICLESWARM documentation page.
虽然它适用于 manual 中提到的其他选项:
options = optimoptions('particleswarm','InitialSwarmSpan',4) % fine
您尝试使用的参数未在 MATLAB 2015b 或更早版本中实现,它是在 MATLAB 2016a 中添加的。
使用 MATLAB 安装附带的文档,您可以使用 doc
命令访问它。
在 MATLAB 中使用 PSO,我按照用户手册设置选项:
options = optimoptions('particleswarm','SwarmSize',50,'InitialSwarmMatrix',[1.5,4.2,3.11,6.71]);
Error using optimoptions (line 105)
'InitialSwarmMatrix' is not an option for PARTICLESWARM.
A list of options can be found on the PARTICLESWARM documentation page.
虽然它适用于 manual 中提到的其他选项:
options = optimoptions('particleswarm','InitialSwarmSpan',4) % fine
您尝试使用的参数未在 MATLAB 2015b 或更早版本中实现,它是在 MATLAB 2016a 中添加的。
使用 MATLAB 安装附带的文档,您可以使用 doc
命令访问它。