Parfor in simulink linearization
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alberto Mora
el 26 de Oct. de 2017
Comentada: Hugo Fournier
el 13 de Feb. de 2023
I need to compute a huge amount of bode analysis of a system. For this reason, from my script I have a for loop where I linearize my Simulink model, and after that I estimate the bode diagram (frequency response function - FRF). Considering that complessive computational time is quite big, is there a possibility to run this analysis in parallel mode to reduce the computational time? I tried to do it: the problem is that when one worker run a linearization of the model and at the same time another worker run the linearization of the next iteration, the second "linearization" is invalid because the first is running.
1 comentario
Hugo Fournier
el 13 de Feb. de 2023
Hi Alberto,
I have a similar issue trying to linearize several models with Matlab. I have read https://www.mathworks.com/help/slcontrol/ug/batch-linearization-using-linearize.html?s_tid=srchtitle, but there are two main limitations to this approach
1) There does not seem to be a way to perform the batch computations with parallel computation, and the parfor loop does not help either
2) The grids of parameters only includes variations of scalars, not more complicated objects
I would be very interested if someone found a solution to these issues
Respuesta aceptada
Más respuestas (1)
Edric Ellis
el 30 de Oct. de 2017
Perhaps you can use parsim - this makes it simpler to run Simulink simulations in parallel. As well as the reference page, there is a more detailed example here.
1 comentario
Ver también
Categorías
Más información sobre Get Started with Control System Toolbox 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!