stiffness problem / Trying to use ode1 (Euler) in Simulink
4 ビュー (過去 30 日間)
古いコメントを表示
Hi.
I am trying to simulate a robot manipulator in Simulink. Unfortunately, the simulation system I have made will not run unless I use the ode15s (stiff) solver. This probably indicates that my system is stiff, but according to my professor, it's not supposed to be. He says that I should be able to simulate the system using ode1 with fixed step of 0.001 for instance.
He also though that the system behaved in this way due to the matrix inverse. I was using inv(D) within a level-2 s-function. I have now changed that to D\eye(6), but with no immediate effect.
I need to figure out how to do this because I also need to copy the system into LabVIEW and LV don't have the ode15s solver.
Does anybody have a clue to what the problem can be, or how to solve it? I'm really struggling here.
0 件のコメント
回答 (1 件)
Guy Rouleau
2012 年 5 月 22 日
I would verify if the robot starts in a singular configuration.
If you invert D, I guess this is because D is the manipulator jacobian. What is the condition number of the jacobian? Try cond(D) or eig(D). If MATLAB returns a warning about the matrix being badly conditionned, try another configuration.
Other that that... what error message your receive when trying to simulation with ode1 and ts=0.001 ?
When using ode15s, what is the step size taken by the solver? You can determine that by logging the simulation time and plotting diff(tout).
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!