- Introduced by
- Rudolf Kalman
- Year
- 1960
- Type
- algorithm
- Family
- Stochastic Control
What does it do?
The Linear Quadratic Gaussian (LQG) controller combines a Linear Quadratic Regulator (LQR) with a Kalman filter to control linear systems subject to process and measurement noise.
Kalman's 1960 filtering work and Athans's 1971 tutorial on the stochastic linear-quadratic-Gaussian problem are the standard references for its origins. It is used in aerospace, robotics and process control, where the state must be inferred from noisy, partial measurements.
The intuition behind the method
LQG addresses the control of a linear system corrupted by Gaussian noise when only noisy measurements of part of the state are available. The solution separates into two parts: a Kalman filter that estimates the state from the measurements, and an LQR feedback law that acts on that estimate. Because the two designs are independent, the LQG controller is obtained by applying the LQR gain to the Kalman-estimated state. This separation makes the design modular: the estimator is shaped by the noise statistics, and the regulator by the quadratic cost matrices.
History
Kalman's 1960 paper introduced a recursive solution to the linear filtering and prediction problem and showed that filtering is the dual of the noise-free regulator problem. Athans's 1971 tutorial reviewed the stochastic linear-quadratic-Gaussian problem as a control design approach, combining deterministic perturbation control, stochastic state estimation and linearized stochastic control. Kwakernaak and Sivan's 1972 book, Linear Optimal Control Systems, covers the optimal linear control theory that LQG builds on. Extensions to nonlinear systems, such as the Extended Kalman Filter, are separate developments.
When to use it
Use LQG for a linear system with approximately Gaussian process and measurement noise, where the state cannot be measured directly and an optimal quadratic cost trade-off is the design goal. It suits problems such as spacecraft attitude control and inertial navigation, where the dynamics are close to linear around an operating point. Avoid LQG when the dynamics are strongly nonlinear (consider the extended or unscented Kalman filter variants), when the noise is strongly non-Gaussian, or when hard limits on inputs or states must be respected.
Limitations and considerations
- Assumes Gaussian noise; real disturbances are often non-Gaussian, with outliers or multi-modal distributions that the filter does not model.
- Requires accurate knowledge of the process and measurement noise covariances (Q and R); misspecified statistics degrade the estimate and the control.
- Linear assumption; nonlinear dynamics or measurement relations require approximations (EKF, UKF) that lose the optimality guarantee.
- Does not guarantee classical robustness margins: the stability margins of the LQR loop are not preserved when the controller acts on an estimated state, so modelling error can reduce robustness.
- Cannot handle hard constraints on inputs or states; only soft quadratic penalties are represented.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- For linear dynamics, Gaussian noise, a quadratic cost and known noise covariances, the LQG controller minimizes the expected quadratic cost among linear output-feedback controllers. This optimality holds only under these assumptions; when they fail, the result does not apply.
- Separation principle: the Kalman filter and the LQR gain can be designed independently, which simplifies analysis and debugging.
- Provides both state estimation and feedback control in one framework, so measurement noise is weighed against the modelled process noise rather than handled by ad hoc filtering.
- Once the gains are computed, each control step is a fixed set of matrix operations, which is suitable for real-time implementation on embedded hardware.
Applications
- Aerospace: Spacecraft attitude estimation and control, inertial navigation systems, autopilot design for aircraft.
- Robotics: Sensor fusion in mobile robots where the motion and measurement models are approximately linear.
- Automotive: Odometry fusion with GPS, engine control, suspension damping control.
- Power systems: Load frequency control, state estimation in smart grids with PMU (phasor measurement unit) data.
- Chemical processes: Reactor temperature and composition control, and linear regulation of distillation columns around an operating point under measurement noise.
How it works
How it works
Model the plant as x[k+1] = A x[k] + B u[k] + w[k] and y[k] = C x[k] + v[k], where w and v are zero-mean Gaussian noises with covariances Q and R. Compute the steady-state error covariance P from the filter algebraic Riccati equation, then the Kalman gain L = P C^T (C P C^T + R)^(-1). At each step, predict x_pred[k] = A x_hat[k-1] + B u[k-1] and correct it with the measurement innovation: x_hat[k] = x_pred[k] + L (y[k] - C x_pred[k]).
Compute the LQR feedback gain K = (R_c + B^T S B)^(-1) B^T S A, where S solves the discrete algebraic Riccati equation S = A^T S A - A^T S B (R_c + B^T S B)^(-1) B^T S A + Q_c. Here Q_c and R_c are the state and input weights of the quadratic cost J = sum_k (x[k]^T Q_c x[k] + u[k]^T R_c u[k]); they are named differently from the noise covariances Q and R to avoid confusion. This gain is designed separately from the filter.
At each sampling instant, read the noisy measurement and update the state estimate with the filter.
Apply the control input u[k] = -K x_hat[k], where x_hat[k] is the current estimate, then repeat the observe and update steps at the next sampling instant.
Common pitfalls
- Tuning the noise covariances Q and R by trial and error instead of estimating them from data or from sensor and disturbance specifications, which can produce a sluggish or noise-amplifying filter.
- Trying to optimise estimation and control jointly, which the separation principle makes unnecessary for this linear-Gaussian quadratic problem and which adds complexity without a benefit in the standard setting.
- Initializing the Kalman filter estimate and covariance poorly; a poor starting estimate slows convergence of the filter and can produce transient errors in the control input.
- Assuming the design conditions hold without checking them. The steady-state regulator needs stabilizability and the steady-state filter needs detectability; observability and controllability are sufficient but not required. Without these properties the Riccati solutions may fail to exist, or the closed loop may be unstable.
Frequently asked questions
What is the separation principle and why is it important?
For linear systems with Gaussian noise and a quadratic cost, the optimal state estimator (the Kalman filter) and the optimal controller (LQR) can be designed independently, and the optimal LQG controller is obtained by applying the LQR gain to the estimated state. This means the filter can be designed from the noise model without reference to the cost, and the regulator from the cost without reference to the noise. The result simplifies design and supports modular development.
How do I choose the process noise covariance Q and measurement noise covariance R?
The most principled approach is to estimate Q and R from data, for example by maximum likelihood or covariance matching. If data are not available, start from sensor specifications and the expected disturbance magnitudes. Then check the filter residuals: for an optimal filter they should be white and zero-mean. Correlated residuals indicate a mismatch between the model and the data, and the residuals alone do not fix the direction of the required change in Q or R.
What happens if my system is nonlinear?
For mildly nonlinear systems, linearize around the nominal trajectory and use the Extended Kalman Filter (EKF) together with an LQR designed for the linearized model. For strongly nonlinear systems, consider the Unscented Kalman Filter (UKF) or particle filters, although these do not retain the optimality guarantee. Model Predictive Control with a nonlinear model is another alternative.
Can I use LQG with time-varying systems?
Yes. The time-varying Kalman filter propagates its covariance and gain forward in time, using the time-varying model at each step. The finite-horizon LQR, by contrast, solves its Riccati equation backward in time from a terminal cost. Both are more computationally demanding than the steady-state versions, but they handle trajectory tracking and slowly time-varying dynamics.
How do I check that an LQG design is working?
First check the closed loop. For a discrete-time system, the eigenvalues of A - B K must lie inside the unit circle, and the eigenvalues of A - L C must also lie inside it so that the estimation error decays. Then examine the innovation sequence, the difference between measured and predicted output. For a correctly tuned filter it should be zero-mean and white. Finally, adjust the weights: a larger state weight Q_c gives faster regulation at the cost of larger control effort, while a larger input weight R_c reduces control effort and slows the response. On the estimator side, a larger process noise covariance Q makes the filter rely more on measurements, and a larger measurement noise covariance R makes it rely less on them.
Related methods
Sources
Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1), 35-45.
Open DOI referenceAthans, M. (1971). The role and use of the stochastic linear-quadratic-gaussian problem in control system design. IEEE Transactions on Automatic Control, 16(6), 529-552.
Open DOI referenceKwakernaak, H., & Sivan, R. (1972). Linear Optimal Control Systems. Wiley-Interscience.
Open publication reference