This is documentation for an obsolete product.
Current products and services

 Documentation /  Control Systems Professional /  Optimal Control Systems Design /

OverviewOptimal Output Regulator

10.1 Linear Quadratic Regulator

In the case of the linear system


and quadratic cost functions, the optimal control problem is said to be the linear-quadratic (LQ) optimal control problem. Further, for constant-coefficient matrices and and terminal time infinitely far in the future (meaning, of course, that the operating time is sufficiently long compared to the time constants of the system), the problem is referred to as the infinite-horizon or infinite-time-to-go problem. In this case, the control law in Eq. (10.3) simplifies to

with a constant-coefficient feedback gain matrix K. Note that the penalty function for terminal constraint in Eq. (10.2) and Eq. (10.8) is not an issue for the infinite-horizon problem. The function LQRegulatorGains attempts to find the matrix K for this particular case. It recognizes the type of system supplied to its input—continuous- versus discrete-time—and acts accordingly. As is the case with the pole assignment problem, furnishing matrices and in the state-space description is optional.

Linear quadratic regulator design.

As an example, we design an optimal regulator for the mixing tank shown in Figure 10.1. The tank (Gopal (1993)) implements concentration control of a chemical mixture with inflows through two regulated valves at rates and and concentrations and , respectively. Outflow is at the rate with concentration . The volume of the liquid in the tank is . The state, input, and output vectors are assumed to be as follows:

The design will be carried out in the discrete-time domain.

Figure 10.1. Mixing tank schematic.

Load the application.


This is a state-space representation of the mixing tank system for a particular set of parameters.



This is a discrete-time approximation of the system sampled with a period of seconds.



This assigns some values to the weighting matrices and .





This finds the optimal gain matrix.



To check the regulator in action, we plug it into the state feedback. This is the device after the loop is closed.



This simulates the output response of the closed-loop system to an impulse signal at the second input; in other words, it shows how the outflow rate and the concentration react to a short, sudden increase in the flow rate of the second chemical. The outflow rate and the concentration are shown as the dash-dotted and dotted lines, respectively.


For comparison's sake, we plot the same graph for the original system. The outflow rate and the concentration are now shown as the solid and dashed lines.


Finally, we combine the two plots in one graph, which shows clearly that the regulated system has a significantly faster response.


A successful regulator design is possible only for a stabilizable system. Otherwise, LQRegulatorGains does not return any solution.

Here are matrices and for a system that is not stabilizable (because it is both unstable and uncontrollable).



We assign equal weight to all inputs and states.


The attempt to build the regulator fails, as it should.



This modifies matrix so that the system is stable (though still uncontrollable).


Now the regulator can be built.



The optimal regulator design is based on solving the appropriate algebraic Riccati equation. The corresponding functions—RiccatiSolve and DiscreteRiccatiSolve—can be accessed directly, if so desired, and are described in Section 10.3. LQRegulatorGains shares with the Riccati equation solvers the limitations imposed on the input arguments and accepts the options accepted by the Riccati solvers.

OverviewOptimal Output Regulator