PID tuning methods: which one to use when?
Ziegler Nichols, Cohen Coon, CHR, Tyreus Luyben, Lambda and IMC side by side: what each PID tuning method needs, how the loop behaves with it and which process it suits. With the formulas.
By Brent Zwart, Process Control Engineer
There are dozens of methods for tuning a PID controller, and none of them is always the best. Which method fits depends on three questions: what do you know about the process, what are you allowed to do with the process, and what does the control loop need to achieve? A fast flow loop, a slow temperature loop and a level loop on a buffer vessel each call for a different approach.
That the choice matters is clear from research into control loops in practice: only a quarter to a third actually control the process well. In this article we put the best-known methods side by side: first when to use which, then for each method how it works, when it fits and which formulas it uses.
Which tuning method when?
Each method in brief: what you need, how the loop behaves and which process it suits.
Ziegler Nichols. Needs: a step response, or the ultimate gain Ku and ultimate period Pu. Behaviour: fast, but aggressive and oscillatory. Suits: a first starting point for a process that can tolerate some unrest.
Cohen Coon. Needs: a step response. Behaviour: aggressive, but better at handling dead time than Ziegler Nichols. Suits: self-regulating processes with relatively large dead time.
Chien Hrones Reswick (CHR). Needs: a step response. Behaviour: you choose between 0% and 20% overshoot, and between setpoint tracking and disturbance rejection. Suits: control loops where you know exactly what the loop mainly needs to do.
Tyreus Luyben. Needs: Ku and Pu. Behaviour: calm, robust and somewhat slower. Suits: processes where no step test is allowed and calm matters more than speed.
Lambda tuning. Needs: a process model. Behaviour: you choose how fast the loop may be. Suits: most process control loops, including integrating level loops.
Internal Model Control (IMC). Needs: a process model. Behaviour: adjustable like Lambda, and dead time is taken into account better. Suits: processes with a lot of dead time, and when you want a PID controller with D action.
Choosing in five situations
You have a step response or trend data with clear steps. Then you can determine a process model, and Lambda and IMC are usually the best choice. Ziegler Nichols, Cohen Coon and CHR work with the same data, but give fixed and often more aggressive settings.
You cannot do a step test, but you may let the process oscillate briefly. Determine Ku and Pu, preferably with a relay feedback test, and use Tyreus Luyben for calm control.
The process is integrating, like most level loops. Use formulas for integrating processes, such as the Lambda variant for them. Formulas for self-regulating processes often give settings that oscillate slowly here.
The process has a lot of dead time relative to the time constant. Avoid Ziegler Nichols and choose Lambda or IMC with a generous lambda.
Disturbances matter more than setpoint changes, which is almost always the case in the process industry. Choose a variant tuned for disturbances, such as the CHR disturbance rejection variants, and judge the result on a real disturbance, not only on a setpoint step.
What you need before you start calculating
Most methods work with a simple process model: the process gain Kproc, the time constant τ and the dead time θ. What these three mean and how to derive them from a step response is explained in PID controller explained. The Ziegler Nichols closed loop method and Tyreus Luyben use Ku and Pu instead.
All formulas assume the standard form of the PID controller (ISA, non-interacting): the proportional gain Kp, the integral time Ti and the derivative time Td, with times in the same unit as τ and θ. Many DCS and PLC systems use a different form, a proportional band or times in minutes. So always convert the result to your own system, for example with the PID converter. We leave out the pure P controller: it is rarely used in the process industry.
Ziegler Nichols tuning
The best-known tuning method, from 1942. Ziegler and Nichols described two variants: the open loop method, which works with the step response, and the closed loop method, which works with the ultimate gain and ultimate period. Both give settings aimed at a fast response.
When do you use Ziegler Nichols?
As a quick starting point for a process with a clear, reproducible step response, or where a controlled oscillation is acceptable. The method needs no complex process model.
Not as an end point: the settings often turn out aggressive, with overshoot and oscillations. With a lot of dead time, strong disturbances or critical processes the method is less suitable. The closed loop test also deliberately takes the process to the stability limit.
Open loop method
With the controller in manual, apply a controlled step to the controller output (MV) and determine Kproc, τ and θ from the response of the process value (PV).
PI controller
PID controller
Closed loop method
Set the controller up as a pure P controller and raise the gain step by step until the process oscillates continuously, with a constant amplitude. That gain is Ku, the period of the oscillation is Pu.
PI controller
PID controller
Origin of the tuning factors
John G. Ziegler and Nathaniel B. Nichols determined the factors empirically, with control experiments and the quarter amplitude decay criterion: each oscillation is about a quarter the size of the previous one. That explains why the settings are aggressive. Damping to a quarter per period is more oscillation than most industrial control loops want.
Cohen Coon tuning
An open loop method from 1953 that works with the same step response as Ziegler Nichols. The difference: the ratio of dead time to time constant appears explicitly in the formulas.
When do you use Cohen Coon?
For stable, self-regulating processes with a clear step response and relatively large dead time. There the method adapts better than Ziegler Nichols.
Not for integrating processes, strong disturbances or an uncertain process model. Cohen Coon can also give aggressive settings.
Formulas
Ratio of dead time to time constant:
PI controller
PID controller
Origin of the tuning factors
G.H. Cohen and G.A. Coon did not derive the factors from experiments, but calculated them for a first-order process with dead time, with the same quarter amplitude decay criterion as the goal.
Chien Hrones Reswick (CHR) tuning
An open loop method from 1952 that distinguishes between following setpoint changes and rejecting disturbances, each with a variant for 0% and for 20% overshoot.
When do you use CHR?
When you know what the loop mainly needs to do. In the process industry that is usually disturbance rejection: most setpoints stay unchanged for weeks, while disturbances arrive every day. The 0% overshoot variant is calmer, the 20% variant faster.
Not for strongly non-linear processes or large model uncertainty. The percentages are design criteria, not guarantees: always check the actual overshoot in practice.
Setpoint tracking with 0% overshoot
PI controller
PID controller
Setpoint tracking with 20% overshoot
PI controller
PID controller
Disturbance rejection with 0% overshoot
PI controller
PID controller
Disturbance rejection with 20% overshoot
PI controller
PID controller
Origin of the tuning factors
K.L. Chien, J.A. Hrones and J.B. Reswick built on the process reaction curve of Ziegler and Nichols. For each variant they looked for the fastest response that does not exceed the chosen overshoot, separately for setpoint changes and for disturbances.
Tyreus Luyben tuning
A closed loop method that, like Ziegler Nichols, works with Ku and Pu, but with factors for calmer and more robust control: a lower gain and a much longer integral time.
When do you use Tyreus Luyben?
When a step test is not possible or not allowed, and a well-damped loop matters more than maximum speed. Think of many temperature and level loops. Preferably determine Ku and Pu with a relay feedback test, see below.
Not when speed comes first, or for processes with a lot of dead time: there the response can become too slow.
Formulas
PI controller
PID controller
Origin of the tuning factors
Bjorn D. Tyreus and William L. Luyben published their work on PI tuning for integrating processes with dead time in 1992; in 1996 Luyben followed with work on PID tuning for these processes. The factors were chosen for more stable and robust control than Ziegler Nichols provides.
Determining Ku and Pu with relay feedback
Finding Ku and Pu by raising the gain until the process oscillates continuously is risky in a running plant: the amplitude is hard to limit. The relay feedback test by Åström and Hägglund (1984) solves this and is the basis of the autotune function in many controllers.
In this test the controller is temporarily replaced by a relay: the controller output jumps a fixed step d up or down as soon as the PV crosses the setpoint. The process then starts oscillating by itself, with an amplitude you limit through the step size. Pu is the measured period of that oscillation, and Ku follows from the amplitude a of the PV:
The approximation is most accurate when the PV oscillates in a reasonably sinusoidal way. With measurement noise, a relay with a small hysteresis is usually used.
Lambda tuning
A model-based method in which you choose how fast the closed loop may respond. That choice is called lambda (λ): the desired time constant of the closed loop. A smaller lambda gives faster control, a larger one calmer and more robust control.
When do you use Lambda tuning?
For most process control loops for which you can determine a reliable process model. The trade-off between speed and calm is explicit, the settings can be justified and the method works for self-regulating and integrating processes alike.
Less suitable if the model is uncertain and you do not compensate with a more generous lambda. With a lot of dead time relative to the time constant, the PI variant also responds slowly to disturbances at the process input; IMC is often better there.
Choosing lambda
For an approximately first-order response, lambda is the time in which the PV covers about 63% of a setpoint step, once the dead time has passed. Common choices lie between roughly one and three times the time constant of the process, and not smaller than the dead time:
Choose a larger lambda if the model is uncertain or the process changes with load.
Self-regulating first-order process (PI)
The integral time equals the time constant; lambda only determines the gain. This lets you make the loop faster or calmer without touching Ti.
Self-regulating second-order process (PID)
For a process with two time constants τ1 and τ2 and dead time:
Integrating process (PI)
In an integrating process, such as most level loops, the PV keeps changing as long as inflow and outflow are not in balance. Instead of Kproc you use the integrating process gain Kint: the change in the slope of the PV per step in the controller output.
Here lambda determines how far the level may drift after a disturbance. For a buffer vessel you often want a large lambda on purpose, so the vessel absorbs the fluctuations instead of passing them on to the next process step.
Origin of the tuning formulas
Lambda tuning goes back to the work of Erik B. Dahlin from 1968, in which the desired dynamics of the closed loop were the starting point of controller design. Unlike empirical methods, the formulas are derived mathematically from the process model and the desired response.
Internal Model Control (IMC) tuning
A model-based method closely related to Lambda tuning: an adjustable filter time (λ) sets the trade-off between speed and robustness. IMC takes the dead time itself into account in the derivation, and therefore also gives a PID variant with D action.
When do you use IMC?
For processes with relatively large dead time, where the Lambda PI formulas become slow, and when you want a well-founded PID controller with D action. As with Lambda, you need a reliable process model.
Not when the model is uncertain and you choose a tight filter time: the loop then quickly becomes too aggressive.
Process model
The formulas assume a first-order process with dead time (FOPDT):
Improved PI controller
This variant includes part of the dead time in the integral time:
PID controller with Padé approximation
Here the dead time is approximated with a first-order Padé approximation:
Choosing the filter time
Rivera, Morari and Skogestad give as a lower limit for robust control a filter time of roughly 1.7 times the dead time for the PI variant and 0.8 times the dead time for the PID variant:
With an uncertain model or a process that changes with load, a larger filter time is wise.
Origin of the tuning formulas
Daniel E. Rivera, Manfred Morari and Sigurd Skogestad worked out the IMC method for PID controllers in 1986. In their publication the filter time is called ε instead of λ.
From formula to a working controller
A tuning formula is a starting point, not an end point. Three things determine whether the settings work in practice.
The process model has to be right. An error in the dead time carries through strongly in almost every formula. So preferably determine Kproc, τ and θ from several steps or periods, and at the load at which the loop has to perform best. If the process changes with load, one set of settings will not fit everywhere.
The form and units have to match your system. A series form, a proportional band or times in minutes need converting, and this is where a lot goes wrong in practice. The PID converter converts settings between the common DCS and PLC systems.
The result has to be checked. After implementing, look at both the PV and the controller output, for a setpoint change and for a real disturbance. You can try out beforehand what a different Kp, Ti or Td does to the response in the PID simulation.
At PID Dynamics we work model-based. We determine the process dynamics from existing trend data, often without new step tests, and calculate settings that suit what the control loop needs to do. How that starts is explained on the PID Performance Scan page; how the optimisation itself works and what it delivers can be seen in our case studies.
Frequently asked questions
What is the best PID tuning method?
There is none. Model-based methods such as Lambda and IMC are usually the safest choice in the process industry, because you choose the speed of the loop yourself and the settings can be justified. They do need a reliable process model. Where that is missing, methods based on Ku and Pu are a good starting point.
Is Ziegler Nichols still useful?
As a starting point yes, as an end point rarely. The method aims for damping to a quarter per oscillation, which is too restless for most industrial control loops. In practice the calculated gain is often reduced considerably.
Which tuning method suits a level loop?
Most level loops are integrating: the level keeps rising or falling as long as inflow and outflow are not in balance. So use formulas for integrating processes, such as Lambda tuning with the integrating process gain. For a buffer vessel a large lambda is often exactly what you want.
Do I need a step test for PID tuning?
Not always. A step test gives the clearest picture of the process dynamics, but existing trend data often contains enough movement of the controller output and the PV to determine Kproc, τ and θ. The condition is that the data contains enough information, for example setpoint changes or periods when the controller was in manual.
How do I choose lambda?
Start with a lambda between one and three times the time constant of the process, and not smaller than the dead time. Choose a larger lambda if the model is uncertain, if the process changes with load or if calm matters more than speed.
Can I enter the result of a tuning formula directly into my DCS?
Only if your system uses the same form and units as the formula. The formulas here assume the standard form with a gain and times in seconds. If your system uses a series form, a proportional band or minutes, convert first with the PID converter.
Sources
- Ziegler, J.G. and Nichols, N.B. (1942). Optimum settings for automatic controllers. Transactions of the ASME, 64, 759-768.
- Chien, K.L., Hrones, J.A. and Reswick, J.B. (1952). On the automatic control of generalized passive systems. Transactions of the ASME, 74, 175-185.
- Cohen, G.H. and Coon, G.A. (1953). Theoretical consideration of retarded control. Transactions of the ASME, 75, 827-834.
- Dahlin, E.B. (1968). Designing and tuning digital controllers. Instruments and Control Systems, 41(6), 77-83.
- Åström, K.J. and Hägglund, T. (1984). Automatic tuning of simple regulators with specifications on phase and amplitude margins. Automatica, 20(5), 645-651.
- Rivera, D.E., Morari, M. and Skogestad, S. (1986). Internal model control. 4. PID controller design. Industrial & Engineering Chemistry Process Design and Development, 25(1), 252-265.
- Tyreus, B.D. and Luyben, W.L. (1992). Tuning PI controllers for integrator/dead time processes. Industrial & Engineering Chemistry Research, 31(11), 2625-2628.
- Luyben, W.L. (1996). Tuning proportional-integral-derivative controllers for integrator/deadtime processes. Industrial & Engineering Chemistry Research, 35(10), 3480-3483.
