Clear Filters
Clear Filters

How can I decrease runtime from my simulink model?

3 views (last 30 days)
Currently I have made a simulation which binds a Grid, PV array (with inverter), BESS (with bi-directional inverter) and HVAC (used to measure required power) together using the specialised power systems toolbox, exept for the HVAC which uses simscape blocks.
My intention is to run a year of operating to see the operating yield such a system might have. However, the runtime right now is longer than real-time so I am looking for alternatives to the problem.
I have looked Into using the phasor solver, however this completely removes the ability to use the battery and PV array.
I was wondering If anyone has advice on how to get my simulation to the desired runtime.

Answers (1)

Prateekshya
Prateekshya on 5 Jun 2024
Hello Wessel,
I understand that you want to optimize the simulation time for your model. With the limited information available, here are a few suggestions for the same:
You can experiment with and choose the solver that is suitable for your model. Try simplifying the model by using model references or less complex subsystems, and use the phasor solver for the parts of the model from which you can benefit.
I hope this helps!

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!