Title: 10. StateSpace Feedback Control
110. State-Space Feedback Control
2Outline
- State Space Analysis (Recap of 7)
- State Feedback Control
- Static State
- Precompensated Static State
- Dynamic State
- Design Techniques
- Pole Placement
- LQR Optimal Control
- Problems
3State Space Analysis (Recap of 7)
Can you define a different state?
4State Space Analysis (Recap of 7)
C?
5State Space Analysis (Recap of 7)
6Static State Feedback Control
gains
What signal is missing?
Characteristic polynomial - p.217
Closed-Loop Model
7Static State Example Tandem Queue
How did we get this?
8Static State Example Tandem Queue
disturbance
Initial cond. R13.5 R27.5
input
Why R1 has bigger variation?
state
output
9Static State - Other Examples
http//www.urbanrail.net
http//www.ccsn.nevada.edu
10Precompensated Static State Feedback Control
- Variation of Static State, that can track a
reference - Let r reference input
- xss steady-state value of state vector
- uss steady-state control input
How do we get these?
How does N affect the poles?
11Precompensated Static State Feedback Control
12Precompensated Static State Feedback Control
13Precompensated Static Example Tandem Queue
14Precompensated Static Example Tandem Queue
disturbance
R 9-gt19 No disturbance
input
state
output
15Precompensated Static Example Tandem Queue
disturbance
R 9-gt9 Disturbance
input
state
Whats the problem?
output
16Dynamic State Feedback Control
- Include integrated (accumulated) control error as
part of state
Where is the disturbance?
17Dynamic State Feedback Control
- Augmented State Space model
Remember this ?
Closed-Loop Model
18Dynamic State Example Tandem Queue
- The closed loop model becomes
Somehow (we will see next time), we get KP115.3
KP215.5 KI-9.43
19Dynamic State Example Tandem Queue
Disturbance
Input
State
- Step increase in reference input
Output
20Dynamic State Example Tandem Queue
- Step increase in disturbance
Disturbance
Input
State
Output
21Dynamic State - Other Examples
http//cot.marine.usf.edu
http//www.fd.net.au/
22Comparison of State Space Techniques
- Simulations of 3 architectures
- Questions
- Reference input?
- Disturbance rejection?
- Settling time?
23Comparison of State Space Techniques
24Summary
- Static State Feedback Control
- Similar to P Control
- No reference input
- Precompensated Static Feedback Control
- Poor disturbance rejection
- Tracks reference input
- Dynamic Feedback Control
- Similar to PI Control
- Can track references and reject disturbances
Remember this ?
25Outline
- State Space Analysis (Recap of 7)
- State Feedback Control
- Static State
- Precompensated Static State
- Dynamic State
- Design Techniques
- Summary of State-Space FC Architectures
- Pole Placement
- LQR Optimal Control
- Problems
26Static State Feedback Control
gains
Characteristic polynomial - p.217
Closed-Loop Model
27Precompensated Static State Feedback Control
- Variation of Static State, that can track a
reference
gains
Characteristic polynomial - p.217
Closed-Loop Model
28Dynamic State Feedback Control
- Include accumulated control error as part of
state
Characteristic poly ?
Remember this ?
Closed-Loop Model
29Outline
- State Space Analysis (Recap of 7)
- State Feedback Control
- Static State
- Precompensated Static State
- Dynamic State
- Design Techniques
- Summary of State-Space FC Architecture
- Pole Placement
- LQR Optimal Control
- Problems
30Pole Placement
- Want to answer How to get Feedback Gains K?
- Not to exceed ks settling time, with MP maximum
overshoot - Extension of the PI Pole Placement design
- Compute the closed loop poles (assume complex)
- Construct desired characteristic polynomial p.
304 - Construct modeled characteristic polynomial
- Solve for Ki (equate the coefficient of Step 2
and Step 3) - Verify the result (poles are within unit circle)
31Pole Placement Static State Example 1
- Step 1
- Step 2
- Step 3
- Step 4
32Pole Placement Static State Example 2
- Step 1
- Step 2
- Step 3
- Step 4
33Pole Placement Static State Example 2
Disturbance
Input
Initial cond. R13.5 R27.5
State
Output
34Pole Placement Dynamic State Example
- Step 1
- Step 2
- Step 3
- Step 4
35LQR Optimal Control Design
- Another approach
- Consider Control Errors (?x(k)) and Control
Effort (?u(k)), where x is the state vector and u
is control input - Reduce Control Errors reduce settling time and
overshoot - Reduce Control Effort reduce noise sensitivity
- Linear Quadratic Regulation (LQR) objective
minimize the impulse response of the states and
the control expenditure, in a quadratic sense. - LQR
- Two input parameters weighting matrices Q and R
- Q quantifies the cost of divergence of system
state Control Errors - R specifies the cost the Control Effort
36LQR Optimal Control Design
- LQR - Minimize
- Design steps
- Define Q and R
- Compute Ks
- Predict performance from model, or run simulation
- If unsatisfactory, choose new Q and R and repeat
- Compute Ks by hand
- Initialize S and K (temporary matrices) to 0
- Repeat until K converges
How?
No easy answer!
How?
Easy answer Matlab
37LQR Dynamic State Example
- Notes
- q11 q22 so the two state are weighted equally
- Only qii ! 0, so interactions among states is
ignored - R1, control effort and control error are equally
important
38LQR Dynamic State Example
Disturbance
Input
State
good
Step increase in reference input
Output
39LQR Dynamic State Example
Disturbance
- Step increase in disturbance
Input
State
Even better
Output
40Outline
- State Space Analysis (Recap of 7)
- State Feedback Control
- Static State
- Precompensated Static State
- Dynamic State
- Design Techniques
- Pole Placement
- LQR Optimal Control
- Problems
41Apache HTTP Server
- Use Dynamic State Feedback Control
- Regulate CPU and MEM
- Control Input MC (max clients) and KA (keep
alive) - Operating Points?
Closed-Loop Model and Ks
42Apache HTTP Server
Dynamic state feedback
Why?
Closed-Loop Model
43Pole Placement Apache HTTP Server
- Step 1
- Step 2
- Step 3
- Step 4
44Pole Placement Apache HTTP Server
bad
good
45LQR Apache HTTP Server
- LQR Design steps
- Define Q and R
- Compute Ks (by hand, or Matlab - dlqr)
- Predict performance from model, or run simulation
- If unsatisfactory, choose new Q and R and repeat
46LQR Apache HTTP Server
better
good
47Summary
- Static State Feedback Control
- Similar to P Control
- No reference input
- Precompensated Static Control
- Poor disturbance rejection
- Tracks reference input
- Dynamic Feedback Control
- Similar to PI Control
- Can track references and reject disturbances
- Pole Placement Control Design
- Obtain dominant poles from ks and Mp
- Obtain Ks from coefficients of desired and
modeled characteristic equations - LQR Control Design
- Use Matlab