---
title: "Problem set 11: controller design problems"
heading: "Problem set 11: complete designs from specification to gains: cancellation leads and PI, PID for two-pole plants, SIMC and Ziegler–Nichols, frequency-domain lead and lag, pole placement, observers, LQR by Bryson's rule, Kalman gains, deadbeat, delay-limited loops and Smith predictors"
eyebrow: S9 · Problem set 11
type: problems
---

::: hook
Each problem here is a small design: a plant, a requirement and a method, ending in numbers you could load into a controller. They draw on every design method in the course, from root locus and PID tuning through loop shaping to state space and digital control.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 1 | 2 | 5; c = 3 | 6; w = 3 | 6

## Design a lead for $G = 1/(s(s + \given{a}))$ whose zero cancels the pole at −{a}, placing the closed-loop poles at $-\given{c} \pm j\given{w}$.

::: part
answer: 2*c
tolerance: 0.5%

### Where does the lead's pole go?

::: misses
- [any] Match $s^2 + ps + K_c$.
:::
:::

::: part
answer: c^2 + w^2
tolerance: 0.5%

### What is $K_c$?

::: misses
- [any] $c^2 + w^2$.
:::
:::

::: part
answer: 100*exp(-pi*c/w)
unit: %
tolerance: 0.5%

### What overshoot should the step response show?

::: misses
- [any] $e^{-\pi\sigma/\omega_d}$.
:::
:::
:::

::: check
kind: parts
given: K = 0.5 | 2 | 10; t = 0.01 | 0.1 | 2; c = 0.2 | 0.5

## A PI controller with $T_i$ = τ cancels the pole of $\given{K}/(\given{t}s + 1)$ to give a closed-loop time constant of {c} × τ.

::: part
answer: 1/(K*c)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $\tau_c = \tau/(K_pK)$.
:::
:::

::: part
answer: 4*c*t
unit: s
tolerance: 0.5%

### How long does a setpoint step take to settle within 2%?

::: misses
- [any] $4\tau_c$.
:::
:::
:::

::: check
kind: parts
given: K = 1 | 5; a = 2 | 10; b = 0.5 | 1; c = 0.2 | 1

## A PID cancels both poles of $\given{K}/((\given{a}s + 1)(\given{b}s + 1))$ for a closed-loop time constant of {c} s.

::: part
answer: (a + b)/(K*c)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $C = \frac{(\tau_1s + 1)(\tau_2s + 1)}{K\tau_cs}$: $K_p = (\tau_1 + \tau_2)/(K\tau_c)$.
:::
:::

::: part
answer: a + b
unit: s
tolerance: 0.5%

### What $T_i$?

::: misses
- [any] $\tau_1 + \tau_2$.
:::
:::

::: part
answer: a*b/(a + b)
unit: s
tolerance: 0.5%

### What $T_d$?

::: misses
- [any] $\tau_1\tau_2/(\tau_1 + \tau_2)$.
:::
:::
:::

::: check
kind: parts
given: K = 0.5 | 2; t = 4 | 10 | 20; h = 1 | 3

## A process $\given{K}e^{-\given{h}s}/(\given{t}s + 1)$ gets a SIMC PI with $\tau_c$ = θ.

::: part
answer: t/(2*K*h)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $\tau/(K(\tau_c + \theta))$.
:::
:::

::: part
answer: t*step(8*h - t) + 8*h*step(t - 8*h)
unit: s
tolerance: 0.5%

### What $T_i$, the smaller of τ and $4(\tau_c + \theta)$?

::: misses
- [any] Compare τ with 8θ.
:::
:::
:::

::: check
kind: parts
given: d = 0.5 | 2; a = 0.1 | 0.4; T = 2 | 10

## A relay of ±{d} drives a loop into a {T} s limit cycle of amplitude {a}. Tune a Ziegler–Nichols PID.

::: part
answer: 0.6*4*d/(pi*a)/(T/2)
tolerance: 0.5%

### What $K_i$?

::: misses
- [any] $K_p = 0.6K_u$ with $K_u = 4d/\pi a$, and $T_i = T_u/2$.
:::
:::

::: part
answer: 0.6*4*d/(pi*a)*T/8
tolerance: 0.5%

### What $K_d$?

::: misses
- [any] $K_pT_u/8$.
:::
:::
:::

::: check
kind: parts
given: f = 30 | 45 | 55; w = 10 | 100

## A lead must add {f}° at the new crossover of {w} rad/s.

::: part
answer: (1 + sin(f*pi/180))/(1 - sin(f*pi/180))
tolerance: 0.5%

### What pole-to-zero ratio α does it need?

::: misses
- [any] $\sin\phi = (\alpha - 1)/(\alpha + 1)$.
:::
:::

::: part
answer: w/sqrt((1 + sin(f*pi/180))/(1 - sin(f*pi/180)))
unit: rad/s
tolerance: 0.5%

### Where does its zero go?

::: misses
- [any] $\omega_c/\sqrt\alpha$.
:::
:::
:::

::: check
kind: parts
given: F = 3 | 5 | 10; w = 5 | 50

## A lag raises $K_v$ by {F} with its zero a decade below the {w} rad/s crossover.

::: part
answer: w/10/F
unit: rad/s
tolerance: 0.5%

### Where does its pole go?

::: misses
- [any] The zero over F.
:::
:::

::: part
answer: (atan(0.1) - atan(0.1/F))*180/pi
unit: °
tolerance: 0.5%

### How much phase does it cost at crossover?

::: misses
- [atan(0.1)*180/pi] The pole's phase partly offsets the zero's.
- [any] $\tan^{-1}(\omega_z/\omega_c) - \tan^{-1}(\omega_p/\omega_c)$.
:::
:::
:::

::: check
kind: parts
given: a = 0 | 10; c = 1 | 5; b = 5 | 100; w = 20 | 50; z = 0.7 | 0.8

## A plant $\ddot y + \given{c}\dot y + \given{a}y = \given{b}u$ gets state feedback for $\omega_n$ = {w} rad/s, ζ = {z}, and an observer three times faster with the same damping, measuring y.

::: part
answer: (w^2 - a)/b
tolerance: 0.5%

### What is $k_1$?

::: misses
- [any] $(\omega_n^2 - a_0)/b_0$.
:::
:::

::: part
answer: 2*z*3*w - c
tolerance: 0.5%

### What is the observer gain $l_1$?

::: misses
- [any] The error polynomial is $s^2 + (c + l_1)s + (a + cl_1 + l_2)$ in companion form; match its $s$ coefficient to $2\zeta\omega_o$.
:::
:::
:::

::: check
kind: parts
given: a = -2 | 0 | 1; b = 1 | 5; x = 0.01 | 0.1; u = 1 | 12

## A plant $\dot x = \given{a}x + \given{b}u$ gets an LQR with Bryson's weights: x should stay within {x} and u within {u}.

::: part
answer: u^2/x^2
tolerance: 0.5%

### What is q/r?

::: misses
- [x^2/u^2] $q = 1/x_\max^2$ and $r = 1/u_\max^2$.
- [any] $(1/x_\max^2)/(1/u_\max^2)$.
:::
:::

::: part
answer: -sqrt(a^2 + b^2*u^2/x^2)
tolerance: 0.5%

### Where is the closed-loop pole?

::: misses
- [any] $-\sqrt{a^2 + b^2q/r}$.
:::
:::
:::

::: check
kind: parts
given: Q = 0.001 | 0.01 | 0.1; R = 0.1 | 1

## A random walk with step variance {Q} is measured with noise variance {R}.

::: part
answer: ((Q + sqrt(Q^2 + 4*Q*R))/2)/((Q + sqrt(Q^2 + 4*Q*R))/2 + R)
tolerance: 0.5%

### What is the steady-state Kalman gain?

::: misses
- [any] $P^- = (Q + \sqrt{Q^2 + 4QR})/2$, $K = P^-/(P^- + R)$.
:::
:::
:::

::: check
kind: parts
given: K = 1 | 4; t = 10 | 40; T = 5 | 10

## A plant $\given{K}/(\given{t}s + 1)$ (τ in ms) is sampled every {T} ms. Design a deadbeat proportional gain.

::: part
answer: exp(-T/t)/(K*(1 - exp(-T/t)))
tolerance: 0.5%

### What $K_p$ puts the pole at z = 0?

::: misses
- [any] $\Phi/\Gamma$.
:::
:::

::: part
answer: exp(-T/t)
tolerance: 0.5%

### What fraction of the setpoint does the output reach?

::: misses
- [any] $\Gamma K_p = \Phi$.
:::
:::
:::

::: check
kind: parts
given: h = 0.05 | 0.2 | 1; P = 45 | 60

## A plant $e^{-\given{h}s}/s$ gets proportional control for a {P}° phase margin.

::: part
answer: (pi/2 - P*pi/180)/h
tolerance: 0.5%

### What gain?

::: misses
- [any] $(\pi/2 - \text{PM})/\theta$.
:::
:::

::: part
answer: pi/(2*h)/((pi/2 - P*pi/180)/h)
tolerance: 0.5%

### What gain margin does that leave, as a factor?

::: misses
- [any] $\pi/(2K\theta)$.
:::
:::
:::

::: check
kind: parts
given: K = 1 | 2; t = 2 | 10; h = 5 | 20; c = 1 | 3

## A Smith predictor controls $\given{K}e^{-\given{h}s}/(\given{t}s + 1)$ with a PI ($T_i$ = τ) designed for $\tau_c$ = {c} s on the delay-free model.

::: part
answer: t/(K*c)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $\tau/(K\tau_c)$.
:::
:::

::: part
answer: h + 4*c
unit: s
tolerance: 0.5%

### With a perfect model, when does a setpoint step settle within 2%?

::: misses
- [4*c] The delay still comes first.
- [any] θ + 4τ_c.
:::
:::
:::

::: check
kind: choice

## A design meets every specification on the model, but its loop gain crosses over just below an unmodeled structural resonance. What should be done first?

- [ ] Nothing; the specifications are met
- [x] Check robustness: estimate how large the model error near the resonance could be and whether |WT| < 1 still holds, then lower the crossover or add a notch if it doesn't
- [ ] Raise the gain to push past the resonance
- [ ] Switch to an observer

::: misses
- [1] Specifications on a model don't guarantee the real loop.
- [3] That puts more gain where the model is worst.
- [4] An observer inherits the same model error.
:::
:::
:::
