TRYING TO SOLVE SIMPLE SYSTEM OF DIFFERENTIAL EQUATIONS

2 views (last 30 days)
Anyone knows how to stabilize the Systems of Differential Equations attached?? Breaking my head trying to figure it out but can't find the problem.
The equations are the ones corresponding to a very very simplified dynamic model of a motorcycle. Basically what I am trying to do its include a simple PID controller to simulate a "pseudo" virtual rider and hopefully solve the problem with that, as the system by itself it's naturally unstable.

Accepted Answer

Arkadiy Turevskiy
Arkadiy Turevskiy on 19 Aug 2014
Open the PID Controller block dialog, and press the "tune" button.You get the PID Tuner app open and it says that it could not find the stabilizing controller.
Reduce the response time by clicking on the "slower" button in the top slider twice. You get this:
Press "Update block" to apply the gains.
You get these block parameters:
Click ok, run the simulation and look at the reference and feedback signals:
Looks like controller is doing a good job.
HTH
  3 Comments
Arkadiy Turevskiy
Arkadiy Turevskiy on 20 Aug 2014
Edited: Arkadiy Turevskiy on 20 Aug 2014
No, entering PID gains manually is not the only way. In the first answer I outlined the exact steps I followed to get those gains.
As for "the system not working properly", you need to clearly define what that means. As you have it, you just have one PID controller to control pisdot. With the gains PID Tuner comes up with, PID controller tracks your psidot reference very well. I am attaching the model with a viewer for psidot and the reference signal. Run the simulation and look at this viewer to see that the controller tracks the reference signal very well.
Jacobo Puyoles
Jacobo Puyoles on 20 Aug 2014
Edited: Jacobo Puyoles on 20 Aug 2014
Sorry,I explained myself incorrectly. I meant that I could not reach the controller parameters you showed by using the "slower" button in the PID tuner, that is why I type them myself.
Yes, I can see how the reference is being track very well indeed, thank you for that. My problem is that the overall solution which I am after, i.e. y, psi, beta and roll angle (the right most 4 input scope) does not produce the "theoretical" response, as it only produces a solution between 4.90 and 5 seconds approx, as shown in the figure. Also the graphs shapes are not well (attending to the results of the paper I got the equations from) so I deduced that the system is not working as I expected but can´t figure out why. The system is not commplex but still, I am missing something.
I really appreciate your help.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!