How do I avoid an Algeraic loop?
显示 更早的评论
I have a simulink model of a car, I need to control the speed of car using PID, so I feedback the car speed to the controller. But at this moment I get an algebraic loop error. I am using ode23t variable step solver.I am avoiding this algebraic loop using a delay in feedback. I also had this idea of using a integrator immediately followed by differentiator in feedback loop, so initially a value of zero can be fed through feedback loop and algebraic loop is avoided. Does this second method make any sense? Also any other suggestions to avoid this algebraic loop? Any help will be appreciated! thank you!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Physical Units 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!