stiffness problem / Trying to use ode1 (Euler) in Simulink
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Guy Rouleau
on 22 May 2012
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).
See Also
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!