P vs PI vs PID Control: Steady-State Error, Overshoot and Tuning
All three are feedback controllers that decide the manipulated variable from the error e between the setpoint and the controlled variable; they differ in how many terms they use. P control outputs an action proportional to the error, PI control adds the integral of the error, and PID control also adds the derivative of the error. P (proportional) handles speed of response, I (integral) removes steady-state error and D (derivative) suppresses overshoot and oscillation. For a plant without an integrator, P control alone leaves an error. PI control removes it, but the added phase lag makes oscillation more likely, and adding D helps suppress that oscillation.
| Aspect | P control | PI control | PID control |
|---|---|---|---|
| Control law | u = Kp·e | u = Kp·e + Ki∫e dt | u = Kp·e + Ki∫e dt + Kd·de/dt |
| Steady-state error for a step setpoint (plant without an integrator) | Remains: 1/(1 + K·Kp) for a first-order plant K/(Ts + 1) | Becomes 0 | Becomes 0 |
| Speed of response | Faster as Kp is raised | Raising the integral gain Ki speeds up the rise but increases overshoot | D adds damping, making it easier to raise the gain while keeping overshoot down |
| Overshoot and oscillation | Too high a Kp makes the response oscillatory, and unstable for plants with large lags | The integral adds 90° of phase lag, so it oscillates more easily than P control | The derivative anticipates changes in the error and reduces oscillation |
| Simulator example (first-order plant with dead time, K = 1, T = 10 s, L = 2 s, Kp = 4) | Steady-state error 0.2, overshoot about 30% | With Ki = 0.4: steady-state error 0, overshoot about 30% | Adding Kd = 4: steady-state error 0, overshoot about 7% |
| Noise sensitivity | Noise is also multiplied by Kp | The high-frequency gain is Kp, about the same as P control | The derivative amplifies higher frequencies more, so it amplifies noise; it is combined with a low-pass filter (filtered derivative) |
| Actuator saturation | No integrator, so nothing winds up while the output is at its limit | The integral keeps accumulating while the output is held at its limit (integral windup); countermeasures such as stopping the integration are needed | Needs windup countermeasures like PI control; also watch for derivative kick when the setpoint changes suddenly |
| Tuning parameters and Ziegler-Nichols ultimate-gain starting values | One parameter, Kp: Kp = 0.5Ku | Two, Kp and Ti (or Ki): Kp = 0.45Ku, Ti ≈ 0.83Tu | Three, Kp, Ti and Td: Kp = 0.6Ku, Ti = 0.5Tu, Td = 0.125Tu |
| Typical uses | Control that tolerates a small error, and position control of plants that contain an integrator (no error remains for a step) | Temperature, flow, pressure, motor speed and supply voltage; in practice, many control loops use PI without D | Temperature and position control with large lags where overshoot must be kept down |
Figures are typical orders of magnitude and vary by process generation and product.