Rerun Simulink model with outcomes from a former simulation run?

2 visualizaciones (últimos 30 días)
I’m looking for best practices to solve a problem where a current simulation run depends on the outcomes of a former simulation of the same model, but with different parameters.
More precisely my model describes physical system that is affected by various parameters, e.g. the supply voltage, the gain of an amplifier, or the ambient temperature. I’d like to run a sensitivity analysis and thus need to run many simulations with different parameters.
The model also implements an algorithm to compensate temperature effects, which needs temperature compensation parameters, just a few numerical values. The model can calculate those compensation parameters if a switch is enabled.
I’m looking for a way to first run the calibration, and then rerun the same simulation, but use the compensation parameters that were calculated before.
It should run in parallel (toolbox) sensitivity analysis runs using the SL design optimization toolbox.
What’s the best practice to do that?
  • Would Event Functions be the right approach?
  • Is storing the compensation parameters to a file or workspace and then rerun the simulation the right approach? (doubles the number of simulations, and must work in parallel processes)
  • anything else?
Thanks,
Jan

Respuestas (0)

Categorías

Más información sobre Simulink Design Optimization 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!

Translated by