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 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 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 , 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 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?
With k = 1.5 and = 2 (so that 4 × 2/(2 + 4 × 1.5) = 1), the real plant settles at . Feedback divided the 20% gain error by about 4.6, but didn't remove it. An integrator on the error would keep pushing until the error is zero.
Name it
The augmented system
Add the state , so . The control law becomes
and the closed loop is
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 . 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 is no longer needed.
Two examples
- First-order plant : the closed loop is , so and .
- Double integrator with : . Three poles at −p give , , .
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 .
Worked example
A plant needs integral state feedback with closed-loop poles at = 5 rad/s, ζ = 0.8.
Show the solution
- Closed-loop polynomial.
- Target. For = 5 rad/s and ζ = 0.8:
- Match coefficients.
- Compare without the integrator. The same k with = 2 would put a single pole at −8.
- 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 = 6.25.
Worked example
A double integrator needs integral state feedback with all three poles at −10. Find the gains.
Show the solution
- Closed-loop polynomial.
- Target.
- Match coefficients.
- 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 .
Answer = 30, = 300 and = 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
- Without the integrator. With , the disturbance adds to , shifting the steady state by an error of half the setpoint for a unit disturbance.
- 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 gets integral state feedback with poles at = 10 rad/s, ζ = 0.9.
(a)
What is k?
(b)
What is ?
Check
A double integrator gets integral state feedback with all three closed-loop poles at −5.
(a)
What is the position gain ?
(b)
The velocity gain ?
(c)
The integral gain ?
Check
A plant runs under 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 with k = 3 was designed for , with set for unit DC gain; the real input gain is 20% different.
(a)
What is ?
(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 = 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 gets integral state feedback with closed-loop poles at = 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°.
Step 2
What is ?
Check
Write settle(b_true, d, integral, T, dt): simulate from rest with a unit step reference, using the design k = 1.5, = 2 when integral is False, or k = 1.5, = 6.25 with 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?
The integral state is the accumulated error between the reference and the measured output, and it feeds the plant input through its own gain. In any stable steady state all derivatives are zero, including the integral state's derivative, which is the error itself, so the closed loop can only come to rest with the output exactly at the reference. That holds whatever the plant's true gain is and whatever constant disturbance acts on it, because the integrator keeps adjusting the input until the measured error disappears. The design cost is one more pole to place and some extra overshoot, and the integrator must be protected against windup when the actuator saturates.
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.