LQR - Linear Quadratic Regulator

Given a continous-time LTI system in state space form, where D = 0

Link to original
The LQR problem consists of finding that makes the following equation as small as possible

  • Q and R are positive-definite weighting matrices

    Positive-Definite Matrix

    A symmetric matrix with all positive eigenvalues. NOTE: All symmetric matrices have only real eigenvalues

    For a matrix, , to be positive-semidefinite the following has to hold

    Criterion

    Given that is a symmetric real matrix


    Can be written generally as

    Link to original
  • ,
  • The term is a measure of the output energy
  • The term is a measure of the control signal energy
  • PROTIP: WRITE OUT THE EQUATION TO SEE DIRECTLY HOW EACH PART OF Q AND R AFFECTS EACH STATE

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

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

Examples