Influencing solver max time step during simulink simulation
显示 更早的评论
I am running a simulink model where I use the time-step as an input to a function, so I need a small maximum time-step to have accurate results. When my system reaches steady state, however, I freeze the function output values and the simulation keeps running at maximum time-step, without the need of reading out the system time-step. The problem is that since I need a small time-step, I have to set a small maximum time-step in my solver parameters so my simulation will still run very slowly even at steady-state.
My question is, is there a way to decrease the maximum time-step while the simulation is running, and increase it again when it's necessary? I tried using a dummy filter that is deactivated at steady-state which kind of does the job but the it is too slow and unstable when activated.
I am using a variable step 23s solver.
Any ideas on how to properly do that?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!