Simscape slower than Specialised Technology in Accelerator mode
6 views (last 30 days)
Show older comments
I am ruing the same model: a three-phase source and diode rectifier and measuring the same signals. It seems that the Simscape model is slower than the Specialised Technology when running in Accelerator mode.
The test code is
Tstop = 2;
Power.Ts = 1e-6;
Files are in the attachment (R2018a).
Initial run (empty workspace):
- Elapsed time is 8.078532 seconds.
- Elapsed time is 5.754597 seconds.
- Elapsed time is 5.905777 seconds.
- Elapsed time is 4.282237 seconds.
- Elapsed time is 5.629353 seconds.
- Elapsed time is 4.345153 seconds.
Is is possible to speed-up the Simscape model?
I plan to expand the model and add dc/dc and dc/ac converters, filters, switches, etc and now even with the passive elements, the Simscape is >30% slower
Sabin on 30 Jan 2023
First of all the Specialized Technology model is in discrete-time and the Simscape model in continuous-time. Simulation speed in R2022b is similar when using Local solver Partitioning in the Simscape model.
More about how the partitining solver works:
Find more on Simscape 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!