TExcelTAD
Home › Control Systems & Automation › Model-Based Tuning: Cohen–Coon, IMC and Lambda

Model-Based Tuning: Cohen–Coon, IMC and Lambda

The Ziegler–Nichols recipes give aggressive loops and no knob to make them calmer. In practice you want to choose the speed: a heater that settles in two minutes without overshoot, a level loop that absorbs inflow surges gently, a speed loop as fast as the motor allows. Model-based rules start from the same first-order-plus-dead-time (FOPDT) model, G(s)=Ke−θsTs+1G(s) = \frac{K e^{-\theta s}}{T s + 1}, and add exactly that knob: a desired closed-loop time constant. This lesson covers Cohen–Coon (1953), the IMC family with its practical form, lambda tuning, and Skogestad's SIMC rules, and finishes the roadmap project of comparing tuning methods.

Getting the model

Fit KK, TT and θ\theta from an open-loop step: the tangent method of the previous lesson, or better a least-squares fit of the FOPDT step response to the logged data (two-point methods use the times to 28.3 % and 63.2 % of the change: T=1.5(t63−t28)T = 1.5(t_{63} - t_{28}), θ=t63−T\theta = t_{63} - T). A higher-order model can be reduced with Skogestad's half rule: of the largest neglected time constant, half goes to the delay and half to the next-largest time constant. For the PID lab's plant 1(s+1)(0.5s+1)\frac{1}{(s + 1)(0.5 s + 1)}: T=1+0.25=1.25 sT = 1 + 0.25 = 1.25\ \text{s}, θ=0.25 s\theta = 0.25\ \text{s}.

The rules

Rule PI PID Knob
Cohen–Coon Kp=TKθ(0.9+θ12T)K_p = \frac{T}{K\theta}\left(0.9 + \frac{\theta}{12 T}\right), Ti=θ 30+3θ/T9+20θ/TT_i = \theta\,\frac{30 + 3\theta/T}{9 + 20\theta/T} Kp=TKθ(43+θ4T)K_p = \frac{T}{K\theta}\left(\frac{4}{3} + \frac{\theta}{4T}\right), Ti=θ 32+6θ/T13+8θ/TT_i = \theta\,\frac{32 + 6\theta/T}{13 + 8\theta/T}, Td=4θ11+2θ/TT_d = \frac{4\theta}{11 + 2\theta/T} none (targets quarter decay)
Lambda (IMC-PI) Kp=TK(λ+θ)K_p = \frac{T}{K(\lambda + \theta)}, Ti=TT_i = T — λ\lambda: desired closed-loop time constant
SIMC (Skogestad 2003) Kp=TK(τc+θ)K_p = \frac{T}{K(\tau_c + \theta)}, Ti=min⁡(T, 4(τc+θ))T_i = \min(T,\ 4(\tau_c + \theta)) for second-order plants (series form), TdT_d = second time constant τc\tau_c; τc=θ\tau_c = \theta is the recommended "tight but robust" choice

Where IMC comes from. Internal Model Control asks for the closed loop T(s)=e−θsλs+1T(s) = \frac{e^{-\theta s}}{\lambda s + 1}: the plant's delay cannot be removed, but everything else is replaced by a first-order response of time constant λ\lambda. Solving for the controller and approximating the delay gives a PI whose zero cancels the plant pole (Ti=TT_i = T) and whose gain is set by λ\lambda. Larger λ\lambda: slower, calmer, more robust. A common industrial choice is λ\lambda between θ\theta and 3T3T; for loops in series (cascades, interacting tanks) λ\lambda is chosen so the loops do not fight. SIMC keeps the IMC gain but shortens TiT_i for slow (lag-dominant) plants, where Ti=TT_i = T would reject load disturbances very slowly.

Worked example: four tunings of the heater

Given: the heater block with a sensor delay, G(s)=4 e−10s300s+1G(s) = \frac{4\,e^{-10 s}}{300 s + 1} (K/W).

Find: Ziegler–Nichols (step), Cohen–Coon PID, lambda PI (λ=30 s\lambda = 30\ \text{s}) and SIMC PI (τc=θ=10 s\tau_c = \theta = 10\ \text{s}), and compare a 1 K1\ \text{K} setpoint step and a −1 W-1\ \text{W} load step (a draught).

Solve: K=4K = 4, T=300T = 300, θ=10\theta = 10, θ/T=0.0333\theta/T = 0.0333.

  • ZN step PID: Kp=1.2×300/(4×10)=9.0 W/KK_p = 1.2 \times 300/(4 \times 10) = 9.0\ \text{W/K}, Ti=20 sT_i = 20\ \text{s}, Td=5 sT_d = 5\ \text{s}.
  • Cohen–Coon PID: Kp=7.5×(1.3333+0.0083)=10.06 W/KK_p = 7.5 \times (1.3333 + 0.0083) = 10.06\ \text{W/K}, Ti=10×32.213.27=24.3 sT_i = 10 \times \frac{32.2}{13.27} = 24.3\ \text{s}, Td=4011.07=3.61 sT_d = \frac{40}{11.07} = 3.61\ \text{s}.
  • Lambda PI: Kp=300/(4×40)=1.875 W/KK_p = 300/(4 \times 40) = 1.875\ \text{W/K}, Ti=300 sT_i = 300\ \text{s}.
  • SIMC PI: Kp=300/(4×20)=3.75 W/KK_p = 300/(4 \times 20) = 3.75\ \text{W/K}, Ti=min⁡(300,80)=80 sT_i = \min(300, 80) = 80\ \text{s}.

Check: the program simulates all four (derivative filtered with N=10N = 10, delay as a 6th-order Padé model):

python · try it yourself
import numpy as np
import control as ct

K, T, th = 4.0, 300.0, 10.0
G = ct.tf([K], [T, 1]) * ct.tf(*ct.pade(th, 6))

def pid(Kp, Ti, Td=0.0, N=10):
    C = ct.tf([Kp * Ti, Kp], [Ti, 0])
    if Td:
        C = C + ct.tf([Kp * Td, 0], [Td / N, 1])
    return C

r = th / T
tunings = {
    "ZN step PID": pid(1.2 * T / (K * th), 2 * th, 0.5 * th),
    "Cohen-Coon PID": pid(T / (K * th) * (4 / 3 + r / 4), th * (32 + 6 * r) / (13 + 8 * r), 4 * th / (11 + 2 * r)),
    "lambda PI (30 s)": pid(T / (K * (30 + th)), T),
    "SIMC PI (tc = 10 s)": pid(T / (K * 2 * th), min(T, 8 * th)),
}
t = np.linspace(0, 600, 60001)
for name, C in tunings.items():
    Tr = ct.feedback(C * G, 1)
    info = ct.step_info(Tr, T=t)
    _, u = ct.step_response(ct.feedback(C, G), T=t)          # controller output for the setpoint step
    _, yd = ct.step_response(-ct.feedback(G, C), T=t)        # temperature after a -1 W load step
    iae = np.trapezoid(abs(yd), t)
    gm, pm, _, _ = ct.margin(C * G)
    print(f"{name:20s}: overshoot {info['Overshoot']:5.1f} %, settling {info['SettlingTime']:5.0f} s, "
          f"max u {max(abs(u)):5.1f} W | load: dip {min(yd):.3f} K, IAE {iae:6.1f} K*s | PM {pm:4.1f} deg")
ZN step PID         : overshoot  97.2 %, settling   110 s, max u  99.0 W | load: dip -0.142 K, IAE    2.8 K*s | PM 31.4 deg
Cohen-Coon PID      : overshoot  99.4 %, settling   123 s, max u 110.7 W | load: dip -0.144 K, IAE    3.0 K*s | PM 22.6 deg
lambda PI (30 s)    : overshoot   0.0 %, settling   122 s, max u   1.9 W | load: dip -0.417 K, IAE  135.2 K*s | PM 75.7 deg
SIMC PI (tc = 10 s) : overshoot  20.5 %, settling   187 s, max u   4.2 W | load: dip -0.248 K, IAE   21.3 K*s | PM 50.6 deg

The numbers tell the trade-offs at a glance. The two "quarter-decay" rules (ZN and Cohen–Coon) reject a draught best (dip 0.14 K0.14\ \text{K}, IAE about 3 K⋅s3\ \text{K} \cdot \text{s}) but overshoot a setpoint step by almost 100 %: their integral time of 20–24 s is tiny next to the plant's 300 s300\ \text{s}, so the integral keeps pushing long after the error has gone. Their phase margins are only 23∘23^\circ to 31∘31^\circ, and with derivative action a 1 K1\ \text{K} step asks for about 100 W100\ \text{W} from a 14.4 W14.4\ \text{W} heater: on the real block they would saturate and wind up. Lambda tuning is the calmest (no overshoot, 1.9 W1.9\ \text{W} peak, 76∘76^\circ margin) but lets a draught linger: IAE 135 K⋅s135\ \text{K} \cdot \text{s}. SIMC sits in between: a 51∘51^\circ margin, six times better load rejection than lambda, and a setpoint overshoot of 20.5 %20.5\,\% that setpoint weighting removes without touching the load response (Practical PID). For this lag-dominant plant SIMC is the sensible default; lambda is right when the actuator must be treated gently.

Lab: half rule and SIMC on the PID lab

The lab's default plant reduces by the half rule to T=1.25 sT = 1.25\ \text{s}, θ=0.25 s\theta = 0.25\ \text{s}. SIMC with τc=θ\tau_c = \theta: Kp=1.250.5=2.5K_p = \frac{1.25}{0.5} = 2.5, Ti=min⁡(1.25,2)=1.25 sT_i = \min(1.25, 2) = 1.25\ \text{s}, Ki=2.0 s−1K_i = 2.0\ \text{s}^{-1}. The lab (with Kd=0K_d = 0) reads an overshoot of 13.81 %13.81\,\% and a settling time of 3.652 s3.652\ \text{s}. A lambda PI with λ=1 s\lambda = 1\ \text{s} (Kp=1.0K_p = 1.0, Ki=0.8K_i = 0.8) gives no overshoot, a rise time of 1.868 s1.868\ \text{s} and a settling time of 3.480 s3.480\ \text{s}: slower to rise, no faster to settle, much gentler on the actuator.

r = 1+C(s): Kp 2.5, Ki 2, Kd 0P(s) = 1/((1s+1)(0.5s+1))y-T(s) = (2.500 s + 2.000) / (0.500 s^3 + 1.500 s^2 + 3.500 s + 2.000)closed-loop poles: -0.75, -1.12+j2.01, -1.12-j2.010.00.51.001 s2 s3 s4 s5 sty(t)t_s 3.65 s+13.8 %y(t)setpoint10-90 % rise

Guided lab: compare tuning methods on the heater (roadmap project)

Hand calculation. Fit KK, TT, θ\theta to an open-loop step of your block (e.g. 3→6 W3 \to 6\ \text{W}). Compute ZN, Cohen–Coon, lambda (λ=T/5\lambda = T/5 and λ=T/10\lambda = T/10) and SIMC gains.

Simulation. Replace the model numbers in the program; check max u against your heater's PmaxP_\text{max} and choose a setpoint step small enough to stay linear (or add the saturation of Anti-Windup).

What you would measure. For each tuning, a 2 K2\ \text{K} setpoint step and a disturbance (a small 5 V fan switched on for 5 minutes). Record overshoot, 2 % settling time, the peak dip and the integral of absolute error from the log. Put the results in a table next to the simulated values. Expect the ranking of the methods to match the simulation even if individual numbers differ by 20–30 % (the FOPDT fit is approximate, and the heater's loss changes with temperature).

Hazards and safe setup. Block at most 60 ∘C60\,^\circ\text{C}, thermal fuse or software cut-off at 70 ∘C70\,^\circ\text{C}, current-limited 12 V12\ \text{V} supply (about 1.5 A1.5\ \text{A}), fan with a finger guard, never unattended.

Pitfalls

  • Fitting the model at one operating point and using it at another (heater losses grow with temperature).
  • Choosing λ\lambda smaller than θ\theta: the IMC derivation then promises more than the delay allows, and the loop rings.
  • Using Ti=TT_i = T (lambda) on a slow plant with frequent load changes: disturbances linger; prefer SIMC's shorter TiT_i.
  • Forgetting the derivative filter when a rule gives TdT_d.

Practice

  1. A plant has K=2K = 2, T=20 sT = 20\ \text{s}, θ=4 s\theta = 4\ \text{s}. Give the lambda PI for λ=8 s\lambda = 8\ \text{s} and the SIMC PI for τc=θ\tau_c = \theta.
  2. Reduce 1(10s+1)(4s+1)(1s+1)\frac{1}{(10 s + 1)(4 s + 1)(1 s + 1)} to FOPDT with the half rule.
  3. Why does SIMC shorten TiT_i to 4(τc+θ)4(\tau_c + \theta) for a slow plant?
Answer
  1. Lambda: Kp=20/(2×12)=0.833K_p = 20/(2 \times 12) = 0.833, Ti=20 sT_i = 20\ \text{s}. SIMC: Kp=20/(2×8)=1.25K_p = 20/(2 \times 8) = 1.25, Ti=min⁡(20,32)=20 sT_i = \min(20, 32) = 20\ \text{s}.
  2. Half of the 4 s4\ \text{s} lag goes to the delay and half to TT: T=10+2=12 sT = 10 + 2 = 12\ \text{s}, θ=2+1=3 s\theta = 2 + 1 = 3\ \text{s}.
  3. With Ti=TT_i = T large, the integral removes a load disturbance only on the plant's slow time scale; a shorter TiT_i rejects it faster while keeping enough margin.

Test yourself

In lambda (IMC-PI) tuning of an FOPDT plant, the integral time is

  1. λ\lambda
  2. the plant time constant TT
  3. 2θ2\theta
  4. 4(λ+θ)4(\lambda + \theta)

Increasing λ\lambda in lambda tuning makes the loop

  1. faster and less robust
  2. slower and more robust
  3. unstable
  4. lose integral action

By the half rule, 1(s+1)(0.5s+1)\frac{1}{(s+1)(0.5s+1)} becomes an FOPDT model with

  1. T=1T = 1, θ=0.5\theta = 0.5
  2. T=1.25T = 1.25, θ=0.25\theta = 0.25
  3. T=1.5T = 1.5, θ=0\theta = 0
  4. T=0.5T = 0.5, θ=1\theta = 1

Which tuning gave the heater the smallest dip after a draught, at the price of large setpoint overshoot?

  1. lambda PI
  2. SIMC PI
  3. the quarter-decay rules (ZN, Cohen–Coon)
  4. none of them