Control Systems Exercises
These exercises follow the course in order. Work each one by hand first, with units on every number, then check it: the program at the end verifies several answers with python-control. Each answer links back to the lesson to revisit.
Feedback and modelling
1. Sensitivity to the plant gain. A unity-feedback loop has . The plant's gain then drops by 20 %. By how much does the closed-loop DC gain change?
Answer
before, after: a change of , about 40 times smaller than the plant's 20 % (roughly of it). Review: Open and Closed Loop.
2. Mass, spring, damper. , , , force input, position output. Give the transfer function, and .
Answer
; , ; DC gain . Review: Electrical and Mechanical Models.
3. A DC motor. , , , negligible friction and inductance. Give the mechanical time constant and the no-load speed at .
Answer
; (). Review: Modelling a DC Motor.
4. A heated block. Heat capacity , thermal resistance to the room . Time constant, and the final rise with ?
Answer
; . Review: Thermal and Fluid Systems.
5. Linearising a tank. A tank of area drains through a valve with ( in m). Linearise about : time constant and gain from inflow to level.
Answer
, so : , gain (a increase raises the level by ). Review: Linearisation.
Transfer functions and block diagrams
6. One loop. in the forward path, in the feedback path (negative feedback). Closed-loop transfer function, DC gain and time constant?
Answer
: DC gain , . Review: Block-Diagram Algebra.
7. Nested loops. and in series, an inner feedback around and an outer feedback from the output to the input summing junction. Give by Mason's rule.
Answer
One forward path ; loops and , which touch each other and the path, so and : . Review: Signal-Flow Graphs and Mason's Rule.
Time response and steady-state error
8. First order. , input step of . Final value, time to 63 %, 2 % settling time?
Answer
; ; (about ). Review: First-Order Systems.
9. Second order. , . Overshoot, peak time, 2 % settling estimate?
Answer
; ; . Review: Second-Order Systems.
10. Dominant poles. Closed-loop poles at and , DC gain 1. Which poles dominate, and what overshoot do you expect?
Answer
The pair: is 10 times farther left. , overshoot about (the far pole lowers it slightly). Review: Higher-Order Systems.
11. System type. with unity feedback. Steady-state error to a unit step and to a unit ramp?
Answer
Type 1: step error 0; , ramp error . Review: Steady-State Error.
Stability and root locus
12. Routh–Hurwitz. For which is stable, and at what frequency does it oscillate at the limit?
Answer
Row : and : . At the auxiliary polynomial gives . Review: Stability and Routh–Hurwitz.
13. Root-locus sketch. . Asymptotes, breakaway point, and the gain and frequency where the locus crosses the imaginary axis.
Answer
Centroid , angles and . Breakaway from on the segment between 0 and : . Characteristic polynomial : crossing at , . Review: Root-Locus Rules.
14. Design by root locus. . Which gives , and what are and the overshoot?
Answer
: with gives , ; overshoot . Review: Design with the Root Locus.
Frequency response and compensation
15. Crossover and phase margin. . Find and the phase margin.
Answer
gives , ; . Review: Bode Plots of the Loop.
16. Nyquist with an unstable plant. . For which is the unity-feedback loop stable, and how does the Nyquist plot show it?
Answer
open-loop pole in the right half-plane, so the plot must encircle once counter-clockwise. is a circle from (at ) to the origin, which encircles once when . Closed loop: , stable for . Review: The Nyquist Criterion.
17. Delay margin. A loop crosses over at with a phase margin of . What added delay makes it unstable?
Answer
; a delay adds rad: . Review: Stability Margins.
18. Lead compensator. You need of extra phase at from . Find , and the gain the compensator adds at .
Answer
; (zero at , pole at ); gain at : (), which moves the crossover, so iterate. Review: Lead Compensation.
19. Lag compensator. A loop meets its phase margin with but needs 10 times more low-frequency gain. Sketch a lag compensator.
Answer
with and the zero a decade below crossover, (, pole at ), then multiply the controller gain by 10. It costs about of phase at . Review: Lag and Lead-Lag Compensation.
PID control
20. Ziegler–Nichols from a relay test. A relay test gives and . Give the classic PID settings.
Answer
, , . Expect a lively loop (quarter-decay intent). Review: Ziegler–Nichols Methods, Nonlinearities for the relay test.
21. Lambda tuning. FOPDT model , , ; you want a closed-loop time constant . Give the PI.
Answer
, . Review: Model-Based Tuning.
22. Derivative filter. A PID has , and a derivative filter with . Filter time constant and high-frequency gain of the D term?
Answer
; at high frequency the D term gives instead of growing without limit. Review: Practical PID.
23. Windup. A PI heater loop starts with a error and the heater saturates at full power for ; . Roughly how much does an unprotected integrator accumulate if the error averages in that time, and why is that a problem?
Answer
of integral, four times the heater's range: after the setpoint is reached the integral must unwind through a long period of negative error, i.e. a large overshoot. Clamping or back-calculation stops it. Review: Anti-Windup.
State space
24. Pole placement. , . Find for poles at .
Answer
; desired : . Review: Pole Placement.
25. Observer. Same , . Find for both observer poles at .
Answer
; desired : , . Review: Observers.
26. Scalar LQR. (unstable), , . Solve the Riccati equation.
Answer
, (the positive root), , closed-loop pole . Review: LQR.
27. Controllability. Is the pair in exercise 24 controllable? Is with observable?
Answer
, rank 2: yes. , rank 1: no. The mode at (eigenvector ) is invisible to . Review: Controllability and Observability.
Digital control
28. ZOH discretisation. Discretise with a zero-order hold at .
Answer
: the pole maps by . Review: Sampled-Data Loops.
29. A discrete PI. Write the update for of a PI with , , (backward-Euler integral), and compute the first three outputs for a constant error .
Answer
, : . Review: Discrete PID.
30. z-plane stability. Is stable?
Answer
Poles , : stable. Review: Design in the z-Plane.
Nonlinearities, structures and automation
31. Relay limit cycle. A relay drives a plant with at its phase crossover. Predicted oscillation amplitude?
Answer
. Review: Nonlinearities.
32. Cascade. An outer temperature loop has a bandwidth of . What bandwidth should an inner heater-power loop have?
Answer
At least 3 to 10 times faster: to or more (a power loop is usually far faster anyway). Review: Cascade, Feedforward and Ratio Control.
33. 4–20 mA. A level transmitter spans . What does mean, and what current corresponds to ?
Answer
; . Review: Sensors and Actuators.
34. Scan time. A PLC scans every with a input filter and output delay. Worst-case response, and which pulses can it miss?
Answer
; pulses shorter than can be missed. Review: PLCs and the Scan Cycle.
35. Ladder to text. Write in Structured Text: the fan runs when the temperature switch is on or the manual switch is on, but never when the door is open (Door_Closed is TRUE when closed).
Answer
Fan := (Temp_Switch OR Manual) AND Door_Closed; Review: IEC 61131-3 Languages.
36. Probability of failure on demand. A 1oo1 trip with is proof-tested every two years. and SIL band?
Answer
, between and : the SIL 2 band by PFD alone, close to its upper edge (architectural constraints may limit the claim). Review: Interlocks, Safety PLCs, SCADA.
37. Starting current (calculation only). A motor with draws 6 times direct on line. Line current with star-delta starting?
Answer
, with one third of the torque. Review: Motor Control.
Check several answers in Python
import numpy as np
import control as ct
print(f"11: Kv = {ct.dcgain(ct.tf([20], [1, 5])):.2f} 1/s, ramp error {1 / 4:.2f}")
print("12: poles at K = 20:", np.round(np.roots([1, 4, 5, 20]), 3))
print("13: poles at K = 48:", np.round(np.roots([1, 6, 8, 48]), 3))
gm, pm, wpc, wgc = ct.margin(ct.tf([100], [1, 10, 0]))
print(f"15: crossover {wgc:.3f} rad/s, phase margin {pm:.1f} deg")
A = np.array([[0, 1], [-2, -3]]); B = np.array([[0], [1]]); C = np.array([[1, 0]])
print("24: K =", np.round(ct.place(A, B, [-4 + 4j, -4 - 4j]), 3))
print("25: L =", np.round(ct.acker(A.T, C.T, [-10, -10]).T.ravel(), 3))
K, P, E = ct.lqr(np.array([[1.0]]), np.array([[1.0]]), 3.0, 1.0)
print(f"26: K = {K.item():.3f}, closed-loop pole {E.real.item():.3f}")
Gz = ct.c2d(ct.tf([1], [1, 1]), 0.1, method="zoh")
print(f"28: G(z) = {Gz.num[0][0][0]:.4f} / (z - {-Gz.den[0][0][1]:.4f})")
print("30: |poles| =", np.round(np.abs(np.roots([1, -1.2, 0.5])), 4))11: Kv = 4.00 1/s, ramp error 0.25
12: poles at K = 20: [-4.+0.j 0.+2.236j 0.-2.236j]
13: poles at K = 48: [-6.+0.j 0.+2.828j 0.-2.828j]
15: crossover 7.862 rad/s, phase margin 51.8 deg
24: K = [[30. 5.]]
25: L = [17. 47.]
26: K = 3.000, closed-loop pole -2.000
28: G(z) = 0.0952 / (z - 0.9048)
30: |poles| = [0.7071 0.7071]
Test yourself
A unity-feedback loop with has when is
- 4
- 8
- 16
- 32
A loop with a phase margin at tolerates an extra delay of about
The ZOH discretisation of at has its pole at
Classic Ziegler–Nichols PID from , gives =
- 3.6
- 4.0
- 4.8
- 8.0