- 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 ?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
omar khater
el 14 de Jul. de 2019
Comentada: omar khater
el 15 de Jul. de 2019
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 comentarios
Respuesta aceptada
Jonas
el 15 de Jul. de 2019
Editada: Jonas
el 15 de Jul. de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Naming Conventions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!