0

在 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.

虽然它适用于手册中提到的其他选项:

options = optimoptions('particleswarm','InitialSwarmSpan',4) % fine
4

1 回答 1

0

您尝试使用的参数未在 MATLAB 2015b 或更早版本中实现,它是在 MATLAB 2016a 中添加的。

使用 MATLAB 安装附带的文档,您可以使用doc命令访问它。

于 2016-03-27T11:54:12.240 回答