Dear friends and colleagues! I have designed a Simulink model of an inverted pendulum control system. In order to study the LQR I have also linearised the model and obtained the K gain matrix for the controller, which works well for the linear system, now I am hoping to apply it to the non-linear system as well. However, I do not quite understand the reference for the control system.

The system has 4 states: position of the cart, pendulum angle and their derivatives. I am modeling a data acquisition system, so I assume I can only have encoders measuring the position and angle, and then I model software derivatives I could perform on a computer. Then I have a block to get u=K1*x1+ K2*x2+K3*x3+K4*x4. That seems to be my input in the system. I, however, assume there must be some comparison block, but I can not seem to wrap my head around it. In the diagram I have attached to this question you can see the reference is set to zero, but I did it merely to have some refernece in general. But what is this zero? What if my desired states are not zero? What if i want to move my reference to some other point during execution pf the program? Which one do I move? If I still want to stabilise the pendulum but not at x=0, but somewhere at x=ref?

More Alexander Babin's questions See All
Similar questions and discussions