Techniquecore
Internal model control
Also called IMC.
A controller structure that runs a model of the plant in parallel and inverts its invertible part with a filter, which gives PID tuning rules.
Internal model control (IMC) is a controller structure in which the controller contains a model of the plant. The model gets the same input as the plant, and the controller acts on the difference between the measured output and the model output. Do not confuse it with the internal model principle: that principle says a regulator must contain a model of the signals it rejects (for example an integrator for steps), while IMC puts a model of the plant into the controller. With an exact model, the loop has the simple closed-loop map , so the design is an inversion of the plant with a low-pass filter. One tuning parameter, the filter time constant , trades speed for robustness, and for simple models the result is a PI or PID controller.
In plain words
The controller keeps a copy of the plant in its memory and feeds it the same commands as the real plant. If the copy is perfect and nothing disturbs the plant, the real output and the copy agree, and the controller only has to send the right command, which it gets by running the plant backward. A disturbance makes the real output differ from the copy, and the controller sees exactly the effect of the disturbance and acts on it. Running a plant backward is not always possible: a delay cannot be undone, and some plants first move the wrong way. The method keeps those parts and inverts the rest. A filter slows the result, and its single time constant is the tuning knob. For many common plants the result is a normal PI or PID controller with simple formulas.
When it applies
- The plant is BIBO stable, or it can be made so by an inner loop, and a model with a gain, time constants and a delay is known.
- One parameter for tuning is wanted, with a direct meaning: is about the closed-loop time constant.
- PI or PID settings are wanted from a first or second order model with delay. The IMC rules and the SIMC rules of Skogestad (2003) come from this structure.
- The plant has a long delay. With a delay in the model, IMC is the Smith predictor.
The template
- Model. Choose a BIBO stable model .
- Factor. Write . The factor holds the delay and the zeros in the right half-plane as an all-pass part with , for example or . The factor is minimum phase.
- Invert and filter. Set
with the smallest that makes proper.
- Implement. Either run the IMC structure, , or use the equivalent classical controller
- Tune . Start near the delay or near the dominant time constant, and increase until the robustness test below holds for the expected model error.
Why it works (theorems). With an exact model , the signal equals the output disturbance , so the loop has
For a BIBO stable plant and an exact model, the loop is internally stable if and only if is BIBO stable. This is why must not invert : the inverse of a zero in the right half-plane gives a pole of there, and the inverse of a delay is not causal. Since and , and , so the steady-state error to a step is zero. For a model error with BIBO stable, the loop is in feedback with . By the small gain theorem it stays internally stable if
A larger makes smaller at high frequencies, where is large, so it buys robustness. For a BIBO stable plant, is the Youla parametrization of all controllers that make the loop internally stable.
Classic examples
A first order plant gives a PI controller. Let . Then , , and
a PI controller with and .
A delay gives the Smith predictor or a PI approximation. Let . Then , is the same as above, and . The exact is the Smith predictor around the PI controller , . If in the denominator of , then and
This is the PI rule of Rivera et al. (1986) and the first part of the SIMC rule; SIMC adds (Skogestad 2003). Measurements for , a sampled loop with s, a unit set-point step and a unit load step at the plant input:
| exact IMC: settling time (2 percent) | PI approximation: overshoot, settling time | integral of the load error, both | peak of the load error: IMC, PI | first plant delay that fails: IMC, PI | |
|---|---|---|---|---|---|
| 0.5 s | 2.93 s | 0.179, 7.48 s | 1.5 | 0.667, 0.709 | 2.15 s, 1.85 s |
| 1 s | 4.88 s | 0.043, 6.14 s | 2.0 | 0.694, 0.726 | 2.55 s, 2.35 s |
| 2 s | 8.79 s | 0, 7.81 s | 3.0 | 0.732, 0.753 | 3.30 s, 3.10 s |
The exact IMC loop has no overshoot. Its settling time is near the formula (2.956 s, 4.912 s and 8.824 s), and the sampled loop is a little faster. The integral of the load error is in both loops, as theory says: for the PI loop it is , and for the IMC loop it is , as on the Smith predictor page. In the last column the model delay stays 1 s, the plant delay grows in steps of 0.05 s, and the entry is the first value at which the loop does not converge. A larger accepts a larger delay error, as the robustness test says.
A zero in the right half-plane gives a PID controller. Let . Then , , and . The equivalent controller is
a PID controller in series form with gain , and a derivative filter with time constant . The inverse response of remains: no BIBO stable removes it.
Variations
- IMC-PID rules. Rivera et al. (1986) give PI and PID settings from IMC for first and second order models, with and without delay.
- SIMC. Skogestad (2003) reduces a model to first or second order with delay by the half rule and uses with . The choice is a rule of thumb for a good balance of speed and robustness.
- Smith predictor. For a model with delay, the exact IMC controller is the Smith predictor.
- Two degrees of freedom. Use one filter for the set point and another for the disturbance, which is a two-degree-of-freedom design.
- Plants that are not BIBO stable. The IMC structure needs a BIBO stable model. For an integrating plant or a pole in the right half-plane, design with extra interpolation conditions and implement the classical only.
- Constraints. If the model gets the limited actuator signal and the model is exact, the feedback signal is and does not depend on the limit, so acts in open loop and nothing winds up. With a model error this is only an approximation. Model predictive control puts the limits into an optimization and uses the same idea of a model running in parallel.
- Multivariable plants. The same factorization and filter apply to a transfer function matrix, with more care in the choice of (Morari and Zafiriou 1989).
Pitfalls
- Slow load response. The PI rule with cancels the plant pole. With and , the map from a load at the plant input to the output is , which still has the pole . For a load decays slowly. This is why SIMC limits to .
- Inverting the wrong part. Putting a zero in the right half-plane into gives a with a pole there, and the loop is not internally stable even with an exact model.
- Too small . The robustness test fails when is small compared with the model error, mostly the error in the delay. The table shows that the PI approximation also loses some delay margin.
- Running the structure on an integrating plant. The model output then drifts with any offset in the actuator signal. Use the classical form .
- Noise. A with a high order of inversion has a high gain at high frequencies when is small. Choose and with the noise in mind.
Exercises
- Give the IMC PI settings for with s. (Answer: , s.)
- Give the PI approximation for with s, and check the SIMC limit on . (Answer: , s.)
- Derive for and . (Answer: , so .)
- Why is not allowed for the plant of Exercise 3? (Answer: has the pole , so it is not BIBO stable and the loop is not internally stable.)
- With an exact model and , when does the step response enter the 2 percent band? (Answer: , so .)
References
- Carlos E. Garcia and Manfred Morari, Internal model control. 1. A unifying review and some new results, Industrial and Engineering Chemistry Process Design and Development 21(2) (1982) 308-323, the whole paper (the structure, the stability result and the design by inversion with a filter)
- Daniel E. Rivera, Manfred Morari and Sigurd Skogestad, Internal model control: PID controller design, Industrial and Engineering Chemistry Process Design and Development 25(1) (1986) 252-265, the whole paper (PID settings from IMC)
- Manfred Morari and Evanthia Zafiriou, Robust Process Control, Prentice Hall, 1989, the whole book (IMC design and robustness for single and multivariable plants)
- Sigurd Skogestad, Simple analytic rules for model reduction and PID controller tuning, Journal of Process Control 13(4) (2003) 291-309, the whole paper (the SIMC rules)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag AJSRRM Edit this page History Report an error Markdown