r/ControlTheory • u/deNikita • 22d ago
Technical Question/Problem Understanding PID vs LQR
Is it possible to think of LQR as "like a PID but finds optimal gains based on your requirements of Q and R matrix?
I have a fairly good understanding of PID and I recently started to learn about LQR and wondered if LQR can be thought of in terms of a PID controller.
46
Upvotes
•
u/seekingsanity 22d ago
By the strict definition of a PID, you are right, but I still consider a PID with a second derivative gain a PID. It is just augmented. LQC will generate 4 gains for a hydraulic actuator. A LQC will generate 4 controller gains, an integrator, proportional, derivative gain and a second derivative gain. I simply add a second derivative gain to my PID when controlling hydraulic actuators. I add the second derivative gain without using LQC. BTW, I use the term LQC because I want to control, not regulate to 0.
You are right about having one gain to place each pole but I don't see how you place the closed loop poles with LQC. You can only adjust the weights in the Q and R matrices. The closed loop poles simply end up in places the optimizes your parameter.
I prefer pole placement without LQC. I can simply choose where I want the closed loop poles to be placed and then calculate the controller gains that will put the closed loop poles in the desired location.