parsim(): Simulation output much larger than sim()

2 次查看(过去 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
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 CenterFile Exchange 中查找有关 Run Multiple Simulations 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by