The LQR problem consists of finding that makes the following equation as small as possible
And then find the corresponding (feedback).
LQR seeks to find a controller that minimizes both energies using the weighting matrices Q and R to establish a trade-off between the control signal and output energy.
- Q - How fast the system reacts
- R - How much energy can we allow in the system
Properties of and :
- Q and R are positive-definite weighting matrices (Positive-Definite Matrix) → They are equal themselves transposed - ,
- The term is a measure of the output energy
- The term is a measure of the control signal energy
- WRITE OUT THE EQUATION TO SEE DIRECTLY HOW EACH PART OF Q AND R AFFECTS EACH STATE
How to calculate LQR?
The “trick” is to rewrite the cost functional on the special form:
- Where the term is not affected by the input, directly or indirectly
- and the term has an obvious minimum in terms of