フィルターのクリア

Can I upload excel input and output data in PSO to define objective

2 ビュー (過去 30 日間)
Sunita
Sunita 2023 年 11 月 30 日
回答済み: Walter Roberson 2023 年 11 月 30 日
Can I upload excel input and output data in PSO to define objective

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 11 月 30 日
Yes.
It is inefficient to do this for inputs; you should instead read the data once before the pso() call and use function parameterization
For outputs, it is rare for it to be useful to write files during evaluation of the objective function. The objective function will typically get called thousands of times, and writing a file each time would not be efficient... and it is not often useful to keep a record of where it visited.
Unless perhaps you meant "outputs" in the sense that you are using PSO to do curve-fitting ? If so then pass in the target values using function parameterization already mentioned.

カテゴリ

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