run the system for 24 hours in short period
Show older comments
hello,
so i have model in simulink, it runs for Total time=2 seconds, and sampling time for microgrid=1e-6, sampling time for model predictive controller=0.1; the thing is when i run the simulation, it takes about 3 to 4 minutes to finish because of the sampling time, when in fact the Total time is 2 seconds, and i want the axe "X" to show results for 24 hours, so what can i do?
obiously i cannot run it for 24 hours, it will take few days to finish,
thanks in advance
2 Comments
Umar
on 1 Jul 2024
Hi Mounira,
My suggestion would be increase the simulation step size while maintaining accuracy by changing the solver settings in Simulink. Also, consider reducing the data logging frequency or using virtual scopes to visualize results without storing all data points. By strategically selecting what data to log and visualize, you can reduce the computational load and speed up the simulation process significantly.
Hope these suggestions will help resolve your issues.
Mounira
on 1 Jul 2024
Accepted Answer
More Answers (0)
Categories
Find more on Configure and View Diagnostics 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!