parsim(): Simulation output much larger than sim()
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
since my parsim setup now works, I ran into the next issue:
When saving the simulation result that I received from my parallel workers (simOut.fetchOutput), the resulting files are way larger than what I get from sim().
On average, sim-result per run is 50MB while a parsim result with the same input is 560MB. In sim() I use "To Workspace" Blocks for data export.
In the configuration parameters under Data Import/Export, i only have the following options enabled:
Time
Final states
Single simulation output
Can someone please guide me to the error? Unfortunately, this issue leads to a scenario where saving of the parsim result takes twice the time of the simulation itself and sums up for having 8 concurrent setups in parsim ....
1 件のコメント
Alvaro
2022 年 11 月 22 日
Based on a quick test I just ran (see attached), there does not appear to be anything inherent to 'parsim' that would make your saved files larger than when the same model is run iteratively with 'sim'.
Could you include more details of the model that you are trying to run and the commands being used to run that model?
Also, for an accurate comparison, ensure that the logging is happening the same way in the single threaded and multi-threaded runs (for example, you may want to also consider using 'To Workspace" blocks in the multi-threaded run).
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Run Multiple Simulations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!