- Do you see any warnings displayed in the diagnostic viewer (or command window, if it's an older version) when you simulate the model? For instance, anything related to algebraic loops, zero crossings, etc.? If so, those should be addressed as they can significantly slow down the simulation.
- What solver are you using for your model? Is it set to ode23tb ? This is the solver that works best, and other solvers (like the default ode45 ) will really slow you down.
- Do you have any power electronics devices in your model? If not, you can try switching to phasor simulation mode. Even switching from a continuous to discrete simulation mode in powergui can sometimes speed up your simulation.
- Have you tried using Accelerator and Rapid Accelerator modes to speed up your simulation using code generation? Don't worry, this doesn't need any extra licenses beyond Simulink.
simulink model running acceleration
2 views (last 30 days)
Show older comments
Hi everyone,
I have problems with running my simulink model, it's a multi-generator system, all are defined by mathematic models and constructed by user defined functions and other Matlab-imbedded models. However, the simulation run very slowly. Since not all the states of the generators are stable and I doubt whether that's the question but when I reduce the number of the generators, it works. Could anyone give me some suggestions on how to accerlate the simulation. Many Thanks!!
0 Comments
Answers (1)
Sebastian Castro
on 8 Apr 2015
Some ideas, assuming you're using SimPowerSystems Specialized Technology:
- Sebastian
See Also
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!