L2-1 LQR
L2-1 LQR
L2-1 LQR
Richard M. Murray
11 January 2006
Goals:
• Derive the linear quadratic regulator and demonstrate its use
Reading:
• Friedland, Chapter 9 (different derivation, but same result)
• RMM course notes (available on web page)
• Lewis and Syrmos, Section 3.3
Homework #2
• Design LQR controllers for some representative systems
• Due Wed, 18 Jan by 5 pm, in box outside 109 Steele
Trajectory
Controller Process Estimator
Generation
Substitute
= P(t) x(t)
Trajectory
Generation X
Controller Process Estimator
• Note: this is in feedback form can actually eliminate the controller (!)
Remarks
• In MATLAB, K = lqr(A, B, Q, R)
• Require R > 0 but Q 0 + must satisfy “observability” condition
• Alternative form: minimize “output” y = H x
• Require that (A, H) is observable. Intuition: if not, dynamics may not affect
cost ill-posed. We will study this in more detail when we cover observers
Trajectory
Controller Process Estimator
Generation
Trajectory xd e v
Controller Process Estimator
Generation
x
Remarks
• LQR will always give a stabilizing controller, but no gauranteed margins
• LQR shifts design problem from loop shaping to weight choices
• Most practical design uses LQR as a first cut, and then tune based on
system performance
Tracking:
• Given a reference
Equations of motion trajectory (xr(t), yr(t)),
find a feasible trajec-
tory and a
controller u = (x, xd,
ud) such that x xd
Trajectory xd e v
Controller Process Estimator
Generation
x
• Now design LQR controller for extended system (including integrator weight)
Step 2: choose LQR weights and compute LQR gains Note: linearized
about v0 but try
to maintain
speed r (near v0)
Step 3: implement controller
PI controller
Trajectory
Controller Process Estimator
Generation
Lecture recordings
• Will be posting audio recordings of lectures (along with slides) on web site