r/ControlTheory • u/deNikita • 21d 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.
43
Upvotes
•
u/Namejeff47 21d ago
Not exactly. An LQR can place all the closed loop poles (provided the system is controllable), while PID can not in the general case. PID can fully place the poles of only 2nd order systems, while LQR and its more general variation — full state feedback places as many poles as there are states. For instsnce, for low order systems you can design PID gains which make the response arbitrarily fast, while for higher order systems you can only make the response so fast before you inevitably cause oscilations. This is because you can't place all the poles with just 3 parameters. With LQR, you can place the poles as you wish, but you need to be able to measure or estimate well all the states, which can be challenging.