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, , 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, (a mass pushed by a force, a satellite turned by a thruster), under state feedback .
- The closed loop is : sets the natural frequency () and the damping (). 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 , a pure oscillator. The velocity feedback supplies the damping.
Predict
Two identical tanks, each , are fed by the same pump. Can state feedback place their two poles anywhere?
The difference obeys , with no input in it. The controllability matrix has rank 1: one mode is uncontrollable, and its pole stays at −1.
Name it
Controllability
is controllable (reachable) if the input can drive the state from any point to any other in finite time. The test:
For one input, is square and the test is .
State feedback
With the closed loop is . If the system is controllable, the eigenvalues of A − BK can be placed anywhere (in complex-conjugate pairs).
In companion form (last row , ), the closed-loop polynomial's coefficients are , so each gain is simply the desired coefficient minus the open-loop one. Ackermann's formula does the general case:
with the desired characteristic polynomial.
Reference gain
To make y settle at r, choose .
Integral action
Add a state and feed it back too: . 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 (the motor of lesson 2 driving a shaft angle). Place its poles at = 50 rad/s, ζ = 0.7.
Show the solution
- State matrices. With :
- Closed-loop polynomial.
- Target polynomial. For = 50 rad/s and ζ = 0.7:
- Match coefficients. with = 2 for zero steady error.
- Check the response. The poles are at −35 ± j35.7; the step overshoots 4.6% and settles in 0.12 s.
Answer = 2 V/rad and = 0.006 V·s/rad, with = 2, which puts the poles at −35 ± j35.7.
Worked example
Is with controllable?
Show the solution
- Second column.
- Controllability matrix. with determinant −1 ≠ 0: controllable.
- How the input reaches both states. The input drives directly and through the coupling term.
- Without the coupling. Set that coupling to zero and = 0: would be on its own.
Answer yes, it's controllable, since .
Worked example
Use Ackermann's formula to place the poles of , at −4 ± j4.
Show the solution
- Controllability matrix and its inverse. With : whose last row is (1, 0).
- Desired polynomial.
- Evaluate it at A.
- Gain.
- Check. has trace −8 and determinant 32.
Answer K = (25, 5).
Check
A plant in companion form has characteristic polynomial and . What first gain places the closed loop at = 3 rad/s, ζ = 0.8?
Check
The same companion-form plant has = 1. What gives = 5, ζ = 0.9?
Check
, . What's ?
Check
A double integrator gets state feedback placing its poles at −1 and −4. What's the velocity gain ?
Check
A servo has τ = 50 ms and = 5. What velocity gain gives = 60 rad/s and ζ = 1?
Check
A first-order plant gets state feedback plus integral action, . What puts the closed-loop at 15 rad/s?
Check
A plant gets state feedback for poles at = 20 rad/s, ζ = 0.6.
(a)
What is ?
(b)
What is ?
(c)
What reference gain gives unit DC gain?
Check
A double integrator 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 ?
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 the velocity gain ?
Step 3
What is ?
Explain why
Why does state feedback place every pole when output feedback with a single gain can't?
A single gain on one output moves the closed-loop poles along a one-dimensional path, the root locus, so you get to choose one point on it and nothing more. State feedback has a separate gain for every state, n knobs for n poles. For a controllable system written in companion form, each gain adds directly to one coefficient of the characteristic polynomial, so any set of coefficients, and so any set of poles, is reachable. What you pay for this is knowing every state, which needs either a sensor for each one or an estimator that reconstructs them from the measurements, the subject of lesson 37.
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.