Simulink ,Block diagram error. "Nonlinear iteration is not converging "

조회 수: 9 (최근 30일)
huikang cheung
huikang cheung 2020년 9월 21일
답변: Nishan Nekoo 2024년 1월 25일
After I accelerate a car and then decelerate to still, the vehicle dynamica model will show "Nonlinear iteration is not converging ".
The vehicle dynamica mode is just copied from Exampel " Slowly Increasing Steering Maneuver", and the input is modifed to ros message.

답변 (1개)

Nishan Nekoo
Nishan Nekoo 2024년 1월 25일
Hi Huikang, this is a little late but this type of error can mean that one of the signals in your model is diverging to plus or minus infinity or is otherwise changing too rapidly based on the solver settings: https://www.mathworks.com/matlabcentral/answers/451575-what-does-the-nonlinear-iteration-is-not-converging-error-mean
I would recommend using constants instead of the ROS message to verify that your model is still working correctly. If it is, then plot all your ROS message inputs and determining if they are diverging to plus or minus infinity or changing too rapidly.

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by