and i get the same error with other fields of the structure options. This error is : Field assignment to a non-structure array object.
options_pso.InitialPopulation : how to assign ?
1 次查看(过去 30 天)
显示 更早的评论
hi, i now get an error when setting options.InitialPopulation = [1,2,3] for example, after having run options=pso . Can you help me again ? thank you
采纳的回答
Walter Roberson
2016-12-29
options = optimoptions('particleswarm', 'InitialPopulation', [1,2,3]);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Particle Swarm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!