Fixed: T_p = 5 s, T_i = 5 s, u_min = −u_max, K_aw = 1/T_i, dt = 0.05 s, 0–30 s.
Top: output y(t) (red = standard PI, blue = AW PI, green dashed = ideal PI, grey dashed = setpoint r) / Bottom: control u(t) (grey horizontal = saturation limits ±u_max)
A 1st-order plant (time constant T_p, gain K_p) is driven by a PI controller whose unsaturated output u_unsat tracks the setpoint r:
$$G(s) = \frac{K_p}{T_p\,s + 1}, \qquad u_\text{unsat}(t) = K_c\,e(t) + \frac{K_c}{T_i}\int_0^t e(\tau)\,d\tau$$The actuator applies the clipped value:
$$u(t) = \mathrm{clip}\bigl(u_\text{unsat}(t),\,u_\text{min},\,u_\text{max}\bigr)$$Back-calculation anti-windup feeds the saturation gap e_aw = u − u_unsat back into the integrator:
$$\dot{I}_\text{aw}(t) = \frac{K_c}{T_i}\,e(t) + K_\text{aw}\bigl(u(t) - u_\text{unsat}(t)\bigr), \qquad K_\text{aw} = \frac{1}{T_i}$$The tighter the saturation, the more the standard PI winds up and overshoots; the AW PI stays close to the ideal unsaturated response.