- If you want to run it faster, you can parallelize the simulations with the Parallel Computing Toolbox and a parfor-loop. Each instance of the simulation will run on a separate processor thread. This will give you significant speed increases.
- If data management is the issue, you may want to use the Simulink Test Toolbox to manage the parameter sweep, but I am not really sure you will benefit a lot from this since you have set up a way to run the simulations already.
What is the fastest way to run same simulink model multiple times ?
27 ビュー (過去 30 日間)
古いコメントを表示
If I have a large dataset say 6000 rows of data that I need to evaluate simulink model at each point
Currently I use for loop and use simout for each time to update simulink with each new value for my parameters.
I think there is more elegent approaches to do this task.
My simulink model uses components from Powerelctronics library. I assign each parameter with symbolic value that gets updated from Matlab workspace. This works fine with 6000 rows of data despite some affordable time. But more than that needs more elegent approaches.
Any suggestions will be appreciated.
0 件のコメント
採用された回答
Jonas
2019 年 7 月 15 日
編集済み: Jonas
2019 年 7 月 15 日
What is exactly the issue you are having with this approach? The speed, or the way you save and load data?
I would in fact perform a parameter sweep on Simulink simulations in a very similar way as you are doing right now.
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Naming Conventions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!