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

S9 · Lesson 34 · Controllability and state feedback

When an input can steer every state, the controllability matrix and its rank, placing every closed-loop pole with state feedback, Ackermann's formula, the reference gain, and adding integral action by augmenting the state

A PID controller has three knobs and works from one measured error. If you can measure every state, position and velocity, current and speed, you can do better: feed each one back with its own gain, u=−Kx, and place every closed-loop pole wherever you like. That works exactly when the input can influence every state, a property called controllability that Rudolf Kálmán made precise in 1960. This lesson tests for it and places poles.

  • A double integrator, y¨=u (a mass pushed by a force, a satellite turned by a thruster), under state feedback u=−k1y−k2y˙+k1r.
  • The closed loop is s2+k2s+k1: k1 sets the natural frequency (k1) and k2 the damping (k2/2k1). Each gain moves one coefficient.
  • With no state feedback this plant can't even be stabilized by a proportional controller on y alone: that would give s2+k1, a pure oscillator. The velocity feedback supplies the damping.

Predict

Two identical tanks, each x˙i=−xi+u, are fed by the same pump. Can state feedback place their two poles anywhere?

Name it

Controllability

x˙=Ax+Bu is controllable (reachable) if the input can drive the state from any point to any other in finite time. The test:

Wr=(BABA2B⋯An−1B) has rank n

For one input, Wr is square and the test is det⁡Wr≠0.

State feedback

With u=−Kx+krr the closed loop is x˙=(A−BK)x+Bkrr. If the system is controllable, the eigenvalues of A − BK can be placed anywhere (in complex-conjugate pairs).

In companion form (last row −a0,−a1,…, B=(0,…,0,1)T), the closed-loop polynomial's coefficients are ai+ki+1, so each gain is simply the desired coefficient minus the open-loop one. Ackermann's formula does the general case:

K=(0⋯01)Wr−1pd(A)

with pd the desired characteristic polynomial.

Reference gain

To make y settle at r, choose kr=−1/(C(A−BK)−1B).

Integral action

Add a state z=∫(r−y)dt and feed it back too: u=−Kx−kiz. The augmented system has one more pole to place and zero steady error to steps and constant disturbances, as PI control had.

Worked example

A position servo has θ¨=−62.5θ˙+1250u (the motor of lesson 2 driving a shaft angle). Place its poles at ωn = 50 rad/s, ζ = 0.7.

Show the solution
  1. State matrices. With x=(θ,θ˙): A=(010−62.5)B=(01250)
  2. Closed-loop polynomial. s2+(62.5+1250k2)s+1250k1
  3. Target polynomial. For ωn = 50 rad/s and ζ = 0.7: s2+70s+2500
  4. Match coefficients. k1=2500/1250=2V/radk2=(70−62.5)/1250=0.006V·s/rad with kr=k1 = 2 for zero steady error.
  5. Check the response. The poles are at −35 ± j35.7; the step overshoots 4.6% and settles in 0.12 s.

Answer k1 = 2 V/rad and k2 = 0.006 V·s/rad, with kr = 2, which puts the poles at −35 ± j35.7.

Worked example

Is A=(−110−2) with B=(01) controllable?

Show the solution
  1. Second column. AB=(1−2)
  2. Controllability matrix. Wr=(011−2) with determinant −1 ≠ 0: controllable.
  3. How the input reaches both states. The input drives x2 directly and x1 through the coupling term.
  4. Without the coupling. Set that coupling to zero and det⁡Wr = 0: x1 would be on its own.

Answer yes, it's controllable, since det⁡Wr=−1≠0.

Worked example

Use Ackermann's formula to place the poles of A=(−110−2), B=(01) at −4 ± j4.

Show the solution
  1. Controllability matrix and its inverse. With Wr=(BAB): Wr=(011−2)Wr−1=(2110) whose last row is (1, 0).
  2. Desired polynomial. s2+8s+32
  3. Evaluate it at A. pd(A)=A2+8A+32I=(255020)
  4. Gain. K=(10)pd(A)=(255)
  5. Check. A−BK=(−11−25−7) has trace −8 and determinant 32.

Answer K = (25, 5).

Check

A plant in companion form has characteristic polynomial s2+cs+2 and B=(0,1)T. What first gain k1 places the closed loop at ωn = 3 rad/s, ζ = 0.8?

Check

The same companion-form plant has a1 = 1. What k2 gives ωn = 5, ζ = 0.9?

Check

A=(−211.51), B=(11). What's det⁡[B,AB]?

Check

A double integrator gets state feedback placing its poles at −1 and −4. What's the velocity gain k2?

Check

A servo θ¨=−θ˙/τ+(K0/τ)u has τ = 50 ms and K0 = 5. What velocity gain k2 gives ωn = 60 rad/s and ζ = 1?

Check

A first-order plant x˙=−1x+2u gets state feedback plus integral action, u=−kx−ki∫(x−r). What ki puts the closed-loop ωn at 15 rad/s?

Check

A plant y¨+0y˙+4y=50u gets state feedback u=−k1y−k2y˙+krr for poles at ωn = 20 rad/s, ζ = 0.6.

(a)

What is k1?

(b)

What is k2?

(c)

What reference gain kr gives unit DC gain?

Check

A double integrator y¨=u gets state feedback placing its poles at −p and −q, with a reference gain for unit DC gain.

Step 1

What is the position gain k1?

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 state feedback place every pole when output feedback with a single gain can't?

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.