Outline: Linear Quadratic Regulator
Outline: Linear Quadratic Regulator
• Optimal control.
Linear Quadratic Regulator • The linear quadratic regulator.
• The algebraic Riccati equation.
M. Sami Fadali • MATLAB commands.
Professor of Electrical Engineering
University of Nevada, Reno
1 2
3 4
Simplification Interpretation of LQR
Minimize a weighted sum of the area under the
square error curve and the area under the
control effort curve
1
0.9
0.8
0.7
0.6
x(t)
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6
5 t 6
7 8
Properties of LQR Solution
Properties of LQR Solution
• LQR minimization: analogous to minimizing a
/ quadratic function of and subject to constraints
• If (A, B) is stabilizable and is
but minimum is at functions and .
detectable, a unique solution that stabilizes the
closed-loop system exists. • Solution affected by the relative magnitudes of the
weights not their exact values.
/ /
• For , 120
/ Minimizing 100
f
and the pair is
with scalar: 80
f
40
0
-5 -4 -3 -2 -1 0 1 2 3 4 5
9 10
x*
MATLAB
Properties of LQR Solution (cont.) >> p=ss( [1,2;3,4],[0;1],[1,1],0)
>> Q = eye(2);R = 0.2;
• Weights reflect the relative importance of >>[K, P, e] = lqr(p,Q,R) % e = eig(A-B*K)
the and terms. If is large, say, then K=
solutions with larger are excluded since 9.5381 11.6911
they yield larger performance measures. P=
• LQR give a compromise between error and 2.8747 1.9076
1.9076 2.3382
control effort minimization. Minimizing
e=
error alone gives large (impulse) inputs.
-0.9357
-5.7554
11 12