Model Predictive Control (MPC) Principles & Dynamic Matrix Control (DMC)
Introduces Model Predictive Control (MPC) and Dynamic Matrix Control (DMC), analyzing step-response convolution models, receding horizon principles, quadratic programming optimization, and hard constraint handling.
1. Theoretical Foundations & Engineering Mechanics
Principles of Model Predictive Control (MPC)
Traditional multi-loop PID control degrades significantly when applied to multi-variable units exhibiting severe cross-coupling, large dead times, and tight operating constraints. Model Predictive Control (MPC) is the dominant advanced control technology in petroleum refining and petrochemical plants.
MPC operates on the receding horizon principle:
- At each discrete sample execution $k$, an explicit dynamic process model predicts future plant outputs $\mathbf{\hat{y}}$ over a finite prediction horizon ($P$).
- An online optimization algorithm solves a Quadratic Program (QP) to compute a trajectory of future manipulated variable moves $\Delta\mathbf{u}$ over a control horizon ($M$) ($M \le P$) that minimizes tracking error while respecting constraints.
- Only the very first control move $\Delta u(k)$ is implemented on the physical plant.
- At the next sample time $(k+1)$, new sensor measurements are acquired, the state estimate is corrected, the horizon recedes forward by one time step, and the optimization is repeated.
Dynamic Matrix Control (DMC) Mathematical Formulation
Classic Cutler-Ramaker DMC represents linear SISO or MIMO processes using discrete step-response convolution models ($a_1, a_2, \dots, a_N$):
$$\hat{y}(k+j) = y_{free}(k+j) + \sum_{i=1}^j a_{j-i+1} \Delta u(k+i-1)$$
In matrix notation over prediction horizon $P$ and control horizon $M$:
$$\mathbf{\hat{y}} = \mathbf{y}_{free} + \mathbf{A} \Delta\mathbf{u}$$
Where $\mathbf{A} \in \mathbb{R}^{P \times M}$ is the lower-triangular Toeplitz Dynamic Matrix:
$$\mathbf{A} = \begin{bmatrix} a_1 & 0 & \dots & 0 \\ a_2 & a_1 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ a_M & a_{M-1} & \dots & a_1 \\ \vdots & \vdots & \ddots & \vdots \\ a_P & a_{P-1} & \dots & a_{P-M+1} \end{bmatrix}$$
Objective Function & Unconstrained Analytical Solution
The quadratic performance index balances setpoint tracking error against control effort chatter:
$$J = (\mathbf{r} - \mathbf{\hat{y}})^T \mathbf{Q} (\mathbf{r} - \mathbf{\hat{y}}) + \Delta\mathbf{u}^T \mathbf{R} \Delta\mathbf{u}$$
Where $\mathbf{Q}$ is the tracking error weight matrix, and $\mathbf{R}$ is the move suppression weight matrix.
Setting the gradient $\nabla_{\Delta\mathbf{u}} J = 0$ yields the unconstrained optimal control law:
$$\Delta\mathbf{u} = (\mathbf{A}^T \mathbf{Q} \mathbf{A} + \mathbf{R})^{-1} \mathbf{A}^T \mathbf{Q} (\mathbf{r} - \mathbf{y}_{free})$$
When constraints on actuator position ($u_{min} \le u \le u_{max}$), slew rate ($|\Delta u| \le \Delta u_{max}$), or controlled variables are active, the problem is solved at each cycle via real-time Quadratic Programming (QP).
2. Governing Equations & Mathematical Formulation
$$\mathbf{\hat{y}} = \mathbf{y}_{free} + \mathbf{A} \Delta\mathbf{u}$$
$$J = \|\mathbf{r} - \mathbf{\hat{y}}\|_{\mathbf{Q}}^2 + \|\Delta\mathbf{u}\|_{\mathbf{R}}^2$$
$$\Delta\mathbf{u} = (\mathbf{A}^T \mathbf{Q} \mathbf{A} + \mathbf{R})^{-1} \mathbf{A}^T \mathbf{Q} \mathbf{e}_{free}$$
$$u(k) = u(k-1) + \Delta u_1$$
$$\mathbf{u}_{min} \le \mathbf{u} \le \mathbf{u}_{max}, \quad |\Delta\mathbf{u}| \le \Delta\mathbf{u}_{max}$$
• Step response coefficients are linear and time-invariant.
• No hard actuator constraints are active on this step.
• Disturbance free response is zero.
• Unconstrained analytical solution applies.
• Confusing the control horizon $M$ with prediction horizon $P$.
• Inverting $\mathbf{A}$ directly instead of $(\mathbf{A}^T\mathbf{A} + \mathbf{R})$.
• Implementing all moves in $\Delta\mathbf{u}$ instead of only the first move $\Delta u(k)$.
• Forgetting the move suppression term $\mathbf{R}$.
3. Applied Engineering Worked Example
Standard industrial operating and sizing conditions.
Step-by-Step Analytical Solution:
-
Dynamic Matrix $\mathbf{A}$ ($P=3, M=2$):
$$\mathbf{A} = \begin{bmatrix} a_1 & 0 \\ a_2 & a_1 \\ a_3 & a_2 \end{bmatrix} = \begin{bmatrix} 0.40 & 0 \\ 0.70 & 0.40 \\ 0.90 & 0.70 \end{bmatrix}$$ -
Computing $\mathbf{A}^T\mathbf{A}$ and regularized matrix:
$$\mathbf{A}^T = \begin{bmatrix} 0.40 & 0.70 & 0.90 \\ 0 & 0.40 & 0.70 \end{bmatrix}$$
$$\mathbf{A}^T \mathbf{A} = \begin{bmatrix} (0.40^2 + 0.70^2 + 0.90^2) & (0.70 \times 0.40 + 0.90 \times 0.70) \\ (0.70 \times 0.40 + 0.90 \times 0.70) & (0.40^2 + 0.70^2) \end{bmatrix}$$
$$\mathbf{A}^T \mathbf{A} = \begin{bmatrix} 0.16 + 0.49 + 0.81 & 0.28 + 0.63 \\ 0.28 + 0.63 & 0.16 + 0.49 \end{bmatrix} = \begin{bmatrix} 1.46 & 0.91 \\ 0.91 & 0.65 \end{bmatrix}$$
Adding move suppression $\mathbf{R} = \begin{bmatrix} 0.20 & 0 \\ 0 & 0.20 \end{bmatrix}$:
$$\mathbf{H} = \mathbf{A}^T \mathbf{A} + \mathbf{R} = \begin{bmatrix} 1.46 + 0.20 & 0.91 \\ 0.91 & 0.65 + 0.20 \end{bmatrix} = \begin{bmatrix} 1.66 & 0.91 \\ 0.91 & 0.85 \end{bmatrix}$$ -
Inverting $\mathbf{H}$ and calculating move vector:
$$\det(\mathbf{H}) = (1.66)(0.85) - (0.91)^2 = 1.4110 - 0.8281 = 0.5829$$
$$\mathbf{H}^{-1} = \frac{1}{0.5829} \begin{bmatrix} 0.85 & -0.91 \\ -0.91 & 1.66 \end{bmatrix} = \begin{bmatrix} 1.4582 & -1.5612 \\ -1.5612 & 2.8478 \end{bmatrix}$$
Error vector $\mathbf{e} = \mathbf{r} - \mathbf{y}_{free} = \begin{bmatrix} 1.0 \\ 1.0 \\ 1.0 \end{bmatrix}$:
$$\mathbf{A}^T \mathbf{e} = \begin{bmatrix} 0.40(1) + 0.70(1) + 0.90(1) \\ 0(1) + 0.40(1) + 0.70(1) \end{bmatrix} = \begin{bmatrix} 2.00 \\ 1.10 \end{bmatrix}$$
$$\Delta\mathbf{u} = \mathbf{H}^{-1} (\mathbf{A}^T \mathbf{e}) = \begin{bmatrix} 1.4582 & -1.5612 \\ -1.5612 & 2.8478 \end{bmatrix} \begin{bmatrix} 2.00 \\ 1.10 \end{bmatrix}$$
$$\Delta u(k) = (1.4582)(2.00) + (-1.5612)(1.10) = 2.9164 - 1.7173 = \mathbf{+1.1991}$$
$$\Delta u(k+1) = (-1.5612)(2.00) + (2.8478)(1.10) = -3.1224 + 3.1326 = \mathbf{+0.0102}$$ -
Implemented control move:
By the receding horizon principle, only the first calculated move is executed:
$$\Delta u_{applied} = \mathbf{+1.20}$$
Interactive Practice Drill: Model Predictive Control (MPC) Principles & Dynamic Matrix Control (DMC)
Completed this lesson?
Record your study progress, build your daily streak, and unlock +25 XP toward your next engineering tier.
Connected ChemProCal Tool
Performs shortcut multi-component distillation column sizing (Fenske-Underwood-Gilliland & Fair flooding) for Deethanizers, Depropanizers, and Debutanizers in …