S937 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S9 · Lesson 37 · Observability and state observers

When the outputs reveal every state, the observability matrix, the Luenberger observer and its error dynamics, choosing observer poles, duality with state feedback, and the separation principle for output feedback

State feedback needs every state, but sensors cost money and some states, like a motor's flux or a rotor's speed in a sensorless drive, can't be measured at all. The fix is to run a model of the plant alongside it, feed the model the same input, and correct the model continuously with the difference between the measured output and the model's prediction. David Luenberger described this observer in 1964. When the outputs carry enough information, a property called observability, the model's state converges to the real one, and feeding back the estimate works almost as well as feeding back the truth.

  • An observer for a double integrator that measures only position: the plot shows the estimation errors after the velocity estimate starts off by 1.
  • The error obeys s2+l1s+l2: l2 sets the observer's natural frequency (l2) and l1 its damping.
  • The position error starts at zero but grows briefly before the observer pulls both back: the observer learns the velocity by watching the position drift.

Predict

A system has two decoupled states, x˙1=−x1 and x˙2=−2x2, and only x1 is measured. Can an observer estimate x2?

Name it

Observability

x˙=Ax+Bu, y=Cx is observable if the initial state can be found from the output and input over a finite time. The test:

Wo=(CCA⋮CAn−1) has rank n

The observer

x^˙=Ax^+Bu+L(y−Cx^)

The error e=x−x^ obeys e˙=(A−LC)e, independent of the input. If the system is observable, L can place the eigenvalues of A − LC anywhere. That's the dual of state feedback: placing eig(A − LC) is placing eig(AT−CTLT), a state-feedback problem for the pair (AT,CT).

For a double integrator measuring position, the error polynomial is s2+l1s+l2, so l1=2ζoωo, l2=ωo2.

Choosing observer poles

Faster observer poles make the estimate converge sooner but amplify measurement noise, since a large L trusts each new measurement heavily. A common choice puts them two to six times faster than the controller's. The Kalman filter (lesson 39) chooses L optimally from the noise levels.

The separation principle

Feed back the estimate, u=−Kx^+krr. With states (x,e) the closed loop is block triangular:

(x˙e˙)=(A−BKBK0A−LC)(xe)+…

so its eigenvalues are those of A − BK together with those of A − LC. The controller and the observer can be designed separately. (Separate design doesn't guarantee good robustness; lesson 39 comes back to this.)

Worked example

The servo of lesson 34, θ¨=−62.5θ˙+1250u, measures only θ. Design an observer with ωo = 200 rad/s and ζ = 0.7.

Show the solution
  1. Error dynamics. With C=(1,0): A−LC=(−l11−l2−62.5)
  2. Its characteristic polynomial. s2+(l1+62.5)s+62.5l1+l2
  3. Match the target. For ωo = 200 rad/s and ζ = 0.7 the target is s2+280s+40,000: l1=280−62.5=217.5l2=40,000−62.5×217.5=26,406
  4. Speed. The estimation error settles in about ts≈40.7×200s=29ms four times faster than the controller's poles at ωn = 50.

Answer l1 = 217.5 and l2 = 26,406, and the estimation error settles in about 29 ms.

Worked example

With the state feedback of lesson 34 and this observer, what are the closed-loop poles?

Show the solution
  1. Separation principle. The closed-loop poles are the controller's and the observer's together: −35±j35.7−140±j143
  2. Characteristic polynomial. The fourth-order polynomial is (s2+70s+2500)×(s2+280s+40,000)
  3. Where the observer poles show. They don't appear in the response to the reference at all, since the estimation error isn't excited by r; they show up only after disturbances or a wrong initial estimate.

Answer −35 ± j35.7 from the controller and −140 ± j143 from the observer.

Worked example

A heater obeys x˙=−0.1x+0.05(u+d), where d is an unknown, constant heat loss. Only x is measured. Design an observer that also estimates d, with error poles at ωo = 1 rad/s, ζ = 0.7.

Show the solution
  1. Augment the state. Treat d as a state with d˙=0: A=(−0.10.0500)C=(10)
  2. Error polynomial. With L=(l1,l2)T: s2+(0.1+l1)s+0.05l2
  3. Match the target. For ωo = 1 rad/s and ζ = 0.7 the target is s2+1.4s+1: l1=1.3l2=20
  4. Use the estimate. Feeding −d^ forward cancels the disturbance, which gives the loop integral action without an explicit integrator.

Answer l1 = 1.3 and l2 = 20.

Check

An observer for a double integrator measuring position needs error poles at ωo = 20 rad/s, ζ = 0.6. What's l2?

Check

A servo θ¨=−10θ˙+bu measures θ. What observer gain l2 puts the error poles at ωo = 100, ζ = 1?

Check

A=(−211.5−1), C=(11). What's det⁡(CCA)?

Check

A controller places poles with ωn = 10 and an observer places its poles with ωo = 40. What's the constant term of the fourth-order closed-loop characteristic polynomial?

Check

About how long does an observer with error poles at ωo = 200 rad/s and ζ = 0.5 take for its estimates to settle within 2%?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A double-integrator observer has l1 = 8, l2 = 100. Its velocity estimate starts 1 unit off and its position estimate is right. What's the position error at t = 0.2 s?

Check

A plant x˙=−0.5x+0.05(u+d) with a constant unknown d is measured through x. An observer estimates x and d with error poles at ωo = 5 rad/s, ζ = 1.

(a)

What is l1?

(b)

What is l2?

Check

A double integrator measuring position gets an observer with error poles at ωo = w, ζ = z.

Step 1

What is l1?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does an observer need the plant's input as well as its output?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.