Techniqueadvanced
Offset-free MPC
Also called disturbance model MPC.
Adds integrating disturbance states, estimated by an observer, so that a converging MPC loop has no steady-state error under constant disturbances and model error.
Offset-free MPC is the standard way to give a state-space model predictive controller integral action. Plain linear MPC drives the model to the setpoint; if the plant differs from the model or a constant disturbance acts on it, the real output settles at the wrong value. Offset-free MPC adds constant disturbance states to the model, estimates them together with the state by an observer, and computes at each sampling instant a steady-state target that puts the output on the setpoint for the estimated disturbance. MPC then regulates the state to this target. If the augmented model is detectable, the number of disturbances equals the number of measured outputs, and the closed loop converges, the output reaches the setpoint with no offset, whatever the cause of the mismatch. The constant output disturbance of DMC is a special case.
In plain words
A model is never exact, and the plant feels forces that the model does not know. A plain predictive controller trusts its model, so it settles where the model says the output is right, not where it really is. Offset-free MPC adds to the model an unknown constant push, and an estimator learns its size from the gap between the measured and the predicted output. As long as the gap stays, the estimate keeps changing. At each tick the controller asks where it must hold the inputs so that the output is right with the push included, and it steers there. When everything settles, the gap must be zero, so the real output is at the setpoint. This is the same idea as the integral term of a PID controller, built into the model.
When it applies
- A linear (or linearized) model , , with measured outputs, used by an MPC that tracks setpoints for some controlled outputs .
- The plant differs from the model, or constant or slowly varying disturbances act on it, and the controlled outputs must settle exactly at the setpoints.
- The setpoints are reachable at steady state within the constraints. If a constraint is active at steady state, some output cannot reach its setpoint, whatever the controller does.
The template
- Augment the model with integrating disturbances:
and choose where the disturbances enter: at the inputs (, ), at the outputs (, ), or in between.
- Check detectability (theorem, Muske and Badgwell 2002; Pannocchia and Rawlings 2003). The augmented pair is detectable if and only if is detectable and
The matrix has rows, so this needs . Choose for offset-free control.
-
Estimate with an observer for the augmented model, for example a steady-state Kalman filter or a Luenberger observer, such that the estimation error dynamics are Schur.
-
Compute the target at each sampling instant from and :
or, with constraints or more inputs than controlled outputs, a small QP that finds the closest admissible steady state.
- Regulate with MPC on the deviations , , starting from , with the disturbance in the prediction model, and apply the first input.
Offset-free theorem (Pannocchia and Rawlings 2003). Suppose , the augmented model is detectable, the observer is Schur, the target problem is feasible, and the closed loop of plant, observer and MPC converges to a steady state with no constraint active, under constant and constant disturbances. Then at the steady state. Proof sketch: at steady state the observer update must be zero, , and for a Schur observer has a nonsingular , so . With no active constraint, MPC stops at its target, , and then by the target equations. The plant model is not used in the argument, so any model error that keeps the loop convergent is allowed.
Cost per sampling instant. One observer update, ; one target computation, a linear solve or a small QP in variables; and the MPC QP of linear MPC, with variables and rows, solved by an active set or interior point method.
Classic examples
Model error on a scalar plant (measurement with a short script). The model is , (gain 1); the plant has instead of (gain 1.25). The unconstrained MPC uses and the Riccati terminal cost, so it is the LQR law with . The setpoint is from .
- Plain MPC uses the target , of the model. The output settles at : an offset of 17 percent.
- Offset-free MPC with an output disturbance (, , so ). The rank matrix is , of rank 2, so the model is detectable. The observer corrects only , with gain 1, so with the model output, exactly the DMC estimate. The target is , .
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
|---|---|---|---|---|---|---|---|---|
| plain MPC | 0.3377 | 0.5782 | 0.7496 | 0.8716 | 0.9586 | 1.0205 | 1.0646 | 1.1738 |
| offset-free MPC | 0.3377 | 0.5614 | 0.7095 | 0.8076 | 0.8726 | 0.9156 | 0.9441 | 1 |
The input of the offset-free loop settles at , the input that the real plant needs. With the observer gain 0.5 instead of 1 the output also settles at 1.
The output disturbance fails for an integrator (theorem). For , , and , , the rank matrix is , of rank : a constant output offset and a constant state offset give the same measurements, so cannot be estimated. The input disturbance , gives , of rank 2, and works. This is one reason why the constant output disturbance of DMC does not suit integrating plants.
Industrial MPC. DMC and the products based on it use a constant output disturbance, the difference between the measured and the model output (Qin and Badgwell 2003).
Variations
- Input disturbance models () work for integrating plants. Rule of thumb: they also reject disturbances that enter at the inputs faster than an output disturbance model does.
- Velocity form. Writing the model in the increments and also removes offset, without a separate disturbance state; GPC gets its integral action this way, from the factor in its model.
- Target QP. With constraints or extra inputs, the target is the solution of a QP that minimizes the distance to the setpoints or to preferred input values; this layer is often called steady-state target optimization.
- Nonlinear offset-free MPC. The same augmentation works for a nonlinear model , with an extended Kalman filter or moving horizon estimation; see nonlinear MPC.
- Disturbance observers in classical control estimate a lumped disturbance at the input for the same purpose; see disturbance observer.
Pitfalls
- Too few disturbances. With , some measured output has no disturbance to absorb its mismatch, and in general that output has an offset.
- A model that is not detectable. If the rank test fails, no observer is Schur. Check the rank before tuning, as in the integrator example.
- Infeasible targets. If the setpoint cannot be held within the input limits for the estimated disturbance, the target equations have no admissible solution. Use a target QP that moves the target to the closest admissible point.
- Slow observer, slow rejection. The disturbance estimate sets how fast offsets vanish. A gain that is too large amplifies measurement noise. Rule of thumb: tune the disturbance part of the observer like the integral action of a PI controller.
- Not a stability guarantee. The offset-free theorem assumes that the loop converges. Model error can still make the loop lose asymptotic stability; check robustness separately.
- Unmeasured controlled outputs. The theorem is about the measured outputs. A controlled output that is not measured can still have an offset.
Exercises
- Prove the detectability condition: the augmented pair is detectable if and only if is detectable and the rank condition holds. Use the PBH test at the eigenvalue 1.
- For the scalar example, find the offset of plain MPC as a function of the plant gain , and check the value 1.1738 for .
- Show that with and a Schur observer the gain is nonsingular.
- For , , , use the input disturbance model and write the target equations. What are and for a setpoint and an estimate ?
- A plant has two outputs and one input. Explain why at most one controlled output can be offset-free, whatever the disturbance model.
References
- Kenneth R. Muske and Thomas A. Badgwell, Disturbance modeling for offset-free linear model predictive control, Journal of Process Control 12(5), 617-632, 2002, the augmented disturbance model, the detectability condition, and the conditions for offset-free control
- Gabriele Pannocchia and James B. Rawlings, Disturbance models for offset-free model-predictive control, AIChE Journal 49(2), 426-437, 2003, the detectability rank condition, the choice of as many disturbances as measured outputs, the target calculation and the offset-free theorem
- James B. Rawlings, David Q. Mayne and Moritz M. Diehl, Model Predictive Control, Theory, Computation, and Design, 2nd edition, Nob Hill Publishing, 2017, the treatment of disturbance models, target calculation and offset-free MPC
- S. Joe Qin and Thomas A. Badgwell, A survey of industrial model predictive control technology, Control Engineering Practice 11(7), 733-764, 2003, the constant output disturbance of industrial MPC products
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 400TZ1 Edit this page History Report an error Markdown