What is more efficient, Simulink, Stateflow, or mixed model for Hybrid dynamics modeling?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am considering modeling the Gear-Shifting Process. This system contains several discrete states and many continuous variables, so, it is a Hybrid system. The developed mathematical model with Hybrid automata can be simulated by three methods and I would like to which one is the more efficient as I will run the simulation hundreds of times. The methods are: 1) Simulink model only, including a switch for states and enabled subsystems 2) Simulink and Stateflow model, where the Stateflow identify the state and the Simulink model contains enabled subsystems 3)Stateflow model only using Simulink based state
0 Kommentare
Antworten (1)
Teresa Hubscher-Younger
am 3 Dez. 2024 um 14:09
Hi,
Great question! I consulted with the Stateflow Advanced Support Group and Stateflow development group to get their opinions about this question.
We believe that #2 and #3 should be idential in terms of simulation time.
1 is harder to answer. If all you need is a switch block, then in normal mode the Simulink model would compile and simulate faster. However, this might not be the case, depending on what your discrete states entail.
If you run in rapidaccel in normal mode, which is what we recommend for running a simulation many times, then we think #1, #2, and #3 should be relatively equivalent.
If you find your model differs in terms of efficiency, please let us know.
Thanks,
Teresa
0 Kommentare
Siehe auch
Kategorien
Mehr zu Stateflow finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!