フィルターのクリア

Parralel computing for simulation

2 ビュー (過去 30 日間)
Ebru Angun
Ebru Angun 2022 年 3 月 10 日
コメント済み: Ebru Angun 2022 年 3 月 10 日
I have a single program that has to run for 60 different data, where the data are to be generated randomly. These 60 problems are independent and there should not be any communication between workers when running these 60 different problems. However, all 60 problems are collecting variables with the same names. According to the Matlab parallel processing documentation, I have to use "parfor" loop instead of for, and I have 12 workers available. But I got an error message because I am saving the data collected from each execution using the "save" command. Another issue is that all these 60 problems have to use independent random substreams and they have to be reproducible. How can I do this with Matlab's parallel computing toolbox?
Thanks in advance.
  2 件のコメント
Peter O
Peter O 2022 年 3 月 10 日
https://www.mathworks.com/matlabcentral/answers/135285-how-do-i-use-save-with-a-parfor-loop-using-parallel-computing-toolbox
Ebru Angun
Ebru Angun 2022 年 3 月 10 日
Thank you very much.
Kind regards
Ebru Angun

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by