Continuous time
Consider the continuous-time linear dynamic system
where represents the vector of state variables of the system, the vector of control inputs and the vector of measured outputs available for feedback. Both additive white Gaussian system noise and additive white Gaussian measurement noise affect the system. Given this system the objective is to find the control input history which at every time may depend linearly only on the past measurements such that the following cost function is minimized:
where denotes the expected value. The final time (horizon) may be either finite or infinite. If the horizon tends to infinity the first term of the cost function becomes negligible and irrelevant to the problem. Also to keep the costs finite the cost function has to be taken to be .
The LQG controller that solves the LQG control problem is specified by the following equations:
The matrix is called the Kalman gain of the associated Kalman filter represented by the first equation. At each time this filter generates estimates of the state using the past measurements and inputs. The Kalman gain is computed from the matrices , the two intensity matrices associated to the white Gaussian noises and and finally . These five matrices determine the Kalman gain through the following associated matrix Riccati differential equation:
Given the solution the Kalman gain equals
The matrix is called the feedback gain matrix. This matrix is determined by the matrices and through the following associated matrix Riccati differential equation:
Given the solution the feedback gain equals
Observe the similarity of the two matrix Riccati differential equations, the first one running forward in time, the second one running backward in time. This similarity is called duality. The first matrix Riccati differential equation solves the linear–quadratic estimation problem (LQE). The second matrix Riccati differential equation solves the linear–quadratic regulator problem (LQR). These problems are dual and together they solve the linear–quadratic–Gaussian control problem (LQG). So the LQG problem separates into the LQE and LQR problem that can be solved independently. Therefore, the LQG problem is called separable.
When and the noise intensity matrices , do not depend on and when tends to infinity the LQG controller becomes a time-invariant dynamic system. In that case the second matrix Riccati differential equation may be replaced by the associated algebraic Riccati equation.
Discrete time
Since the discrete-time LQG control problem is similar to the one in continuous-time, the description below focuses on the mathematical equations.
The discrete-time linear system equations are
Here represents the discrete time index and represent discrete-time Gaussian white noise processes with covariance matrices , respectively, and are independent of each other.
The quadratic cost function to be minimized is
The discrete-time LQG controller is
- ,
and corresponds to the predictive estimate .
The Kalman gain equals
where is determined by the following matrix Riccati difference equation that runs forward in time:
The feedback gain matrix equals
where is determined by the following matrix Riccati difference equation that runs backward in time:
If all the matrices in the problem formulation are time-invariant and if the horizon tends to infinity the discrete-time LQG controller becomes time-invariant. In that case the matrix Riccati difference equations may be replaced by their associated discrete-time algebraic Riccati equations. These determine the time-invariant linear–quadratic estimator and the time-invariant linear–quadratic regulator in discrete-time. To keep the costs finite instead of one has to consider in this case.