run the system for 24 hours in short period
Mostra commenti meno recenti
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 Commenti
Umar
il 1 Lug 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
il 1 Lug 2024
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Configure and View Diagnostics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!