parsim(): Simulation output much larger than sim()
3 次查看(过去 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!