JPB Process Calcs

Strategy 19 of 24 · Advanced & Supervisory · Advanced

Model Predictive Control

The Chess Player

Model predictive control uses a model to plan several moves ahead and respect limits. It sits on top of base loops that must already work.

US and SI units 10 moves and 15 limits: up to 150 models

The setup

Model predictive control, usually shortened to MPC, uses a mathematical model of the process to predict where each controlled variable will go over a future time window. It then picks a series of moves for all the manipulated variables that keeps the predictions on target while staying inside every limit. Only the first move is sent. At the next cycle it measures again and plans again.

MPCPV1PV2PV3MV1MV2
A block MPC reads three process variables and sets two manipulated variables, which go to two control valves on the process line.

It is used where several variables interact and several limits matter at once, such as a column that has a feed limit, a reboiler limit and two product specifications.

The reality

MPC needs a model from every manipulated variable to every controlled variable and constraint. If there are 10 moves and 15 variables to watch, there can be up to 150 individual models. Many of them are close to zero, but each one has to be identified or checked. Getting the models is most of the work, and it takes step tests that disturb the plant.

The prediction window has to be long enough to see the slowest response. If the slowest variable takes two hours to settle, the horizon must be at least that long. A horizon that is too short makes the controller act on a partial picture.

MPC sits above the base layer. It sends setpoints to ordinary loops for flow, pressure and temperature. If those loops are poorly tuned or the valves stick, the model no longer describes reality, and the MPC performs badly. Fix the base loops first.

It also keeps the process near limits on purpose, because that is where the money is. That makes honest limits and honest measurements more important, not less. A wrong limit is pushed against every cycle.

An MPC also needs ongoing care. Models age as equipment fouls and feeds change. A controller that was well tuned at start-up can drift into poor behavior within a year if nobody looks after it. The silo solution pitfall describes what happens when the project stops at the edge of one unit, and the steady state mirage pitfall shows why tests during steady running are not enough. This card names no vendor or package, because the ideas are the same everywhere.

Run the numbers

A distillation column has 10 manipulated variables and 15 controlled variables and constraints. The slowest response takes 2 hours to settle.

US units:

SI units:

Where it goes wrong

Models built from poor step tests give poor predictions.

Base loops that stick or cycle make every model wrong.

A horizon that is too short misses the slow responses.

Models that are not updated as equipment fouls lose accuracy.

Limits entered wrongly are pushed to every cycle.

What to check in the field

  • Confirm that the base loops are tuned and the valves move smoothly before trusting the MPC
  • Compare model predictions with what the plant actually did after a known move
  • Check that the horizon covers the slowest response
  • Review each limit and the measurement behind it, and keep a plain way for operators to switch the MPC off and return to base loops

Control Strategies are for awareness and training. Check real control designs against the process, the instrument data and a qualified control engineer.