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

S9 · Lesson 35 · Integral action in state feedback

Tracking without steady error: augmenting the state with an integrator, placing the extra pole, rejecting constant disturbances and model errors, and keeping the integrator from winding up

Lesson 34's state feedback places every pole where it's wanted, and a reference gain kr scales the setpoint so the output settles at exactly the right value. Exactly, that is, if the model is exact. A plant gain 20% off, or a constant load torque, and the output settles somewhere else, with nothing in the controller to notice. Classical control fixed this with the integral term of PI; state feedback fixes it the same way, by adding the integral of the error as one more state and placing one more pole.

  • The curves are the step response of the plant x˙=−2x+bu with state feedback designed for b = 4, when the real b is set by the slider.
  • With only a reference gain (solid), the output settles at bkr/(2+bk), off by several percent whenever b differs from 4.
  • With integral action (dashed), designed for the same nominal plant, the output always settles at exactly 1; a wrong b only changes how it gets there.

Predict

A state-feedback servo with reference gain kr was designed for a plant gain of 4; the real gain is 4.8. The design put the closed-loop pole at −8. Where does the output settle for a unit step?

Name it

The augmented system

Add the state z=∫(r−y)dt, so z˙=r−Cx. The control law becomes

u=−Kx+kiz

and the closed loop is

(x˙z˙)=(A−BKBki−C0)(xz)+(01)r

If the augmented pair is controllable (it is when the plant has no zero at s = 0), all n + 1 poles can be placed, by the same methods as before: matching coefficients, or Ackermann's formula on the augmented matrices.

Why the error goes to zero

In steady state every derivative is zero, including z˙=r−y. So whatever the plant's true gain, and whatever constant disturbance acts on it, the output settles at r, as long as the closed loop is stable. The reference gain kr is no longer needed.

Two examples

  • First-order plant x˙=−ax+bu: the closed loop is s2+(a+bk)s+bki, so k=(2ζωn−a)/b and ki=ωn2/b.
  • Double integrator y¨=u with u=−k1y−k2y˙+kiz: s3+k2s2+k1s+ki. Three poles at −p give k2=3p, k1=3p2, ki=p3.

Windup

When the actuator saturates, z keeps integrating an error the actuator can't correct, and the output overshoots badly once the saturation ends. The fixes are the same as for PI (lesson 15): stop integrating while saturated, or feed the difference between commanded and actual input back into z˙.

Worked example

A plant x˙=−2x+4u needs integral state feedback with closed-loop poles at ωn = 5 rad/s, ζ = 0.8.

Show the solution
  1. Closed-loop polynomial. s2+(2+4k)s+4ki
  2. Target. For ωn = 5 rad/s and ζ = 0.8: s2+8s+25
  3. Match coefficients. k=(8−2)/4=1.5ki=25/4=6.25
  4. Compare without the integrator. The same k with kr = 2 would put a single pole at −8.
  5. What the integrator costs and buys. It costs a second pole and some overshoot (ζ = 0.8 gives 1.5%), and buys zero steady error against any constant disturbance or gain error.

Answer k = 1.5 and ki = 6.25.

Worked example

A double integrator y¨=u needs integral state feedback with all three poles at −10. Find the gains.

Show the solution
  1. Closed-loop polynomial. s3+k2s2+k1s+ki
  2. Target. (s+10)3=s3+30s2+300s+1000
  3. Match coefficients. k2=30k1=300ki=1000
  4. Why the integrator matters. A position servo with these gains holds its position exactly under a constant load force, which a plain state feedback around the double integrator wouldn't: the load would leave an offset of d/k1.

Answer k2 = 30, k1 = 300 and ki = 1000.

Worked example

The plant of the first example gets a constant input disturbance d = 1. What steady error does each design leave?

Show the solution
  1. Without the integrator. With u=−1.5x+2r, the disturbance adds bd=4 to x˙, shifting the steady state by Δx=42+4×1.5=0.5 an error of half the setpoint for a unit disturbance.
  2. With the integrator. z keeps changing until the input cancels d exactly: zero steady error, reached with the closed loop's own dynamics.

Answer without the integrator the error is 0.5; with it, zero.

Check

A plant x˙=−2x+2u gets integral state feedback u=−kx+ki∫(r−x)dt with poles at ωn = 10 rad/s, ζ = 0.9.

(a)

What is k?

(b)

What is ki?

Check

A double integrator gets integral state feedback with all three closed-loop poles at −5.

(a)

What is the position gain k1?

(b)

The velocity gain k2?

(c)

The integral gain ki?

Check

A plant x˙=−1x+2(u+d) runs under u=−kx+krr with k = 3, and a constant disturbance d = 2 appears.

(a)

How far does the output shift?

(b)

And with an integral state added (any stable gains)?

Check

State feedback u=−kx+krr with k = 3 was designed for x˙=−2x+2u, with kr set for unit DC gain; the real input gain is 20% different.

(a)

What is kr?

(b)

Where does the real plant's output settle for a unit step?

Check

An integral state-feedback design places its closed-loop poles at ωn = 10 rad/s, ζ = 0.5.

(a)

About how long do disturbances take to be removed (2% settling)?

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

Check

Why must the integral state integrate the measured error r − y, rather than an error computed from the model's predicted output?

Check

A plant x˙=−ax+bu gets integral state feedback with closed-loop poles at ωn = w, ζ = z.

Step 1

What is k?

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°.

Check

Write settle(b_true, d, integral, T, dt): simulate x˙=−2x+btrue(u+d) from rest with a unit step reference, using the design k = 1.5, kr = 2 when integral is False, or k = 1.5, ki = 6.25 with z=∫(r−x) when it's True; forward Euler; return x at time T.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

How does adding an integral state make a state-feedback servo robust to constant disturbances and gain errors?

Practice

Keep practicing

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