options_ps​o.InitialP​opulation : how to assign ?

1 回表示 (過去 30 日間)
genevois pierre
genevois pierre 2016 年 12 月 29 日
回答済み: Walter Roberson 2016 年 12 月 29 日
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
  1 件のコメント
genevois pierre
genevois pierre 2016 年 12 月 29 日
and i get the same error with other fields of the structure options. This error is : Field assignment to a non-structure array object.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2016 年 12 月 29 日
options = optimoptions('particleswarm', 'InitialPopulation', [1,2,3]);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParticle Swarm についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by