Model-based Predictive Control (MPC)

Slides:



Advertisements
Similar presentations
PROCESS INTEGRATED DESIGN WITHIN A MODEL PREDICTIVE CONTROL FRAMEWORK Mario Francisco, Pastora Vega, Omar Pérez University of Salamanca – Spain University.
Advertisements

280 SYSTEM IDENTIFICATION The System Identification Problem is to estimate a model of a system based on input-output data. Basic Configuration continuous.
INTEGRATED DESIGN OF WASTEWATER TREATMENT PROCESSES USING MODEL PREDICTIVE CONTROL Mario Francisco, Pastora Vega University of Salamanca – Spain European.
A COMPUTER BASED TOOL FOR THE SIMULATION, INTEGRATED DESIGN, AND CONTROL OF WASTEWATER TREAMENT PROCESSES By P. Vega, F. Alawneh, L. González, M. Francisco,
NORM BASED APPROACHES FOR AUTOMATIC TUNING OF MODEL BASED PREDICTIVE CONTROL Pastora Vega, Mario Francisco, Eladio Sanz University of Salamanca – Spain.
Model Predictive Controller Emad Ali Chemical Engineering Department King Saud University.
Estimation and the Kalman Filter David Johnson. The Mean of a Discrete Distribution “I have more legs than average”
Course AE4-T40 Lecture 5: Control Apllication
Overall Objectives of Model Predictive Control
Industrial Process Modelling and Control Ton Backx Emeritaatsviering Joos Vandewalle.
Chapter 6 Control Using Wireless Throttling Valves.
Offset Free Tracking with MPC under Uncertainty: Experimental Verification Audun Faanes * and Sigurd Skogestad † Department of Chemical Engineering Norwegian.
Temperature Controller A model predictive controller (MPC) based on the controller proposed by Muske and Rawlings (1993) is used. For the predictions we.
Chapter 20 1 Overall Objectives of Model Predictive Control 1.Prevent violations of input and output constraints. 2.Drive some output variables to their.
NCAF Manchester July 2000 Graham Hesketh Information Engineering Group Rolls-Royce Strategic Research Centre.
MPC in Statoil. 2 In-house tool Septic, Statoil Estimation and Prediction Tool for Identification and Control Developed and maintained by the process.
Matlab Tutorial for State Space Analysis and System Identification
Controllability Analysis for Process and Control System Design
MPC in Statoil Stig Strand, specialist MPC Statoil Research Center 93  SINTEF Automatic Control Dr. ing 1991: Dynamic Optimisation in State Space.
CY3A2 System identification Input signals Signals need to be realisable, and excite the typical modes of the system. Ideally the signal should be persistent.
Chapter 20 Model Predictive Control
1 Chapter 20 Model Predictive Control Model Predictive Control (MPC) – regulatory controls that use an explicit dynamic model of the response of process.
2/25/2001Industrial Process Control1 Dynamic Matrix Control - Introduction Developed at Shell in the mid 1970’s Evolved from representing process dynamics.
ChE 433 DPCL Model Based Control Smith Predictors.
Cascade Control Systems (串级控制系统)
Chapter 20 Model Predictive Control (MPC) from Seborg, Edgar, Mellichamp, Process Dynamics and Control, 2nd Ed 1 rev. 2.1 of May 4, 2016.
Process Dynamics and Operations Group (DYN) TU-Dortmund
Model Predictive Control
Presentation at NI Day April 2010 Lillestrøm, Norway
Model-based Predictive Control (MPC)
Mathematical Models for Simulation, Control and Testing
Introduction to process control
Course PEF3006 Process Control Fall 2017 Lecture: Process dynamics
Course PEF3006 Process Control Fall 2017 Actuators By Finn Haugen
Course IIA1117 Control Engineering Fall 2017 Plant-wide control
State estimation (Kalman filter)
Model-based Predictive Control (MPC)
Tuning of PID controllers
Overall Objectives of Model Predictive Control
سمینار درس کنترل پیش بین
Course PEF3006 Process Control Fall 2018 Feedforward Control
Tuning of PID controllers
Changing between Active Constraint Regions for Optimal Operation: Classical Advanced Control versus Model Predictive Control Adriana Reyes-Lúa, Cristina.
PID controller: Reverse or direct action?
Model-based Predictive Control (MPC)
Course PEF3006 Process Control Fall 2018 Lecture: Process dynamics
Course PEF3006 Process Control Fall 2018 PID Control
State estimation (Kalman filter)
Christoph J. Backi and Sigurd Skogestad
Introduction to process control
IA3112 Automatiseringsteknikk Høsten 2018
IA3112 Automatiseringsteknikk Høsten 2017
Estimation Error and Portfolio Optimization
Averaging (or equalizing) level control
Course IIA1117 Control Engineering Fall 2018 Plant-wide control
Course PEF3006 Process Control Fall 2017 Cascade control
Course PEF3006 Process Control Fall 2017 Feedforward Control
How a control system may become unstable
Averaging (or equalizing) level control
Course IIA1117 Control Engineering Fall 2018 Ratio control
Course IIA1117 Control Engineering Fall 2017 Ratio control
On-Off Control (alternative to PID)
Averaging (or equalizing) level control
Course PEF3006 Process Control Fall 2018 Cascade control
NONLINEAR AND ADAPTIVE SIGNAL ESTIMATION
On-Off Control (alternative to PID)
How a control system may become unstable
NONLINEAR AND ADAPTIVE SIGNAL ESTIMATION
PID controller: Reverse or direct action?
Course PEF3006 Process Control Fall 2017 PID Control
Presentation transcript:

Model-based Predictive Control (MPC) Course PEF3006 Process Control Fall 2018 Model-based Predictive Control (MPC) By Finn Aakre Haugen (finn.haugen@usn.no) USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. "MPC is the only advanced control technique that is more advanced than standard PID to have a significant and widespread impact on industrial process control." J. M. Maciejowski in Predictive Control with Constraints (2002). USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. History Cutler and Ramaker (Shell Oil), 1973: DMC (Dynamic Matrix Control). 1983: QDMC (Quadratic DMC). Application to furnace temperature control. Richalet et al., 1976: Algorithm: MPHC (Model predictive heuristic control). Software: IDCOM (Identification and Command). Applied to a fluid catalytic cracking unit and a PVC plant. USN. PEF3006 Process Control. Haugen. 2018.

Some (very few) MPC products DeltaV (Emerson Process Partner) 800xA APC (ABB) Matlab MPC Toolbox, also for Simulink LabVIEW Predictive Control palette in Control Design toolkit Septic (Statoil, no external use) . USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. What is MPC? USN. PEF3006 Process Control. Haugen. 2018.

ySP ypred u The optimal control signal applied to the actuator. Calculated, but not applied to the process. ySP The optimal control sequence is calculated by the MPC. ypred u(2) u u(0) u(1) Now! Future For example: Np = 20 (samples) USN. PEF3006 Process Control. Haugen. 2018.

MPC as a mathematical problem: Prediction horizon Costs Control error = Setpoint - Meas Control signal change t = time now! This is a QP problem! (Quadratic Programming = quadratic optimization) Question: Is this particular criterion fobj reasonable? Q: Is ySP known? Q: How to calculate ypred? Q: Do we need the present state of the process? Q: If so, how can we get it? USN. PEF3006 Process Control. Haugen. 2018.

[fobjmin,uopt] = fmincon(fobj,uguess,...) Generally speaking (actually, not thinking about MPC here): Minimization with Matlab: Resulting minimum of fobj Resulting optimal variable Optim variables (their optimal values is to be found) Optim objective (to be minimized) [fobjmin,uopt] = fmincon(fobj,uguess,...) fmincon selects a proper optim algorithm automatically, e.g. SQP (Sequential Quadratic Programming). fmincon searches for the to uopt using a number of iterations of its algorithm. At each iteration f is coming closer to fmin, i.e. u is coming closer to uopt. USN. PEF3006 Process Control. Haugen. 2018.

f = Sum{ [e(k)]^2 + Cdu*[Δu(k)]^2 } fmincon-formulation of the MPC problem: f = Sum{ [e(k)]^2 + Cdu*[Δu(k)]^2 } u = {u(0), u(1),...,u(N)} fmincon finds the optimal control sequence, u_opt = {u(0), u(1),...,u(N)}, from a number of simulations of the process model. At each iteration in the search for u_opt, fmincon simulates the process. fmincon decides itself how many iterations (simulations) are needed to find u_opt (the number of iterations is not in advance). Once fmincon has found u_opt, u(0) (the first element in u_opt) is applied to the process. The aboove procedure is repeated at each point of time (i.e., at each time step). USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Often, a state estimator in the form of a Kalman Filter algorithm is used to provide the present state value and other "soft" measurements for the MPC: MPC Process Kalman Filter USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Summary of MPC: The MPC is a model-based controller that, continuously predicts the optimal future control sequence using the following information: An optimization criterion that typically consists of a sum of future (predicted) squared control errors and quadratic control signal changes. A process model The current process state obtained from measurements and/or state estimates from a state estimator which typically is in the form of a Kalman filter. Current, and, if available, future setpoint values and process disturbance values. Constraints (max and min values) of the control signal and the process variable. From the optimal future control sequence, the first element is picked out and applied as control signal to the process. Some versions of the MPC assume linear process models, while others are based on nonlinear process models. The models may be multivariable and contain time delays. USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Application: MPC for averaging level control of the inlet magazine upstreams the VEAS wrrf (water resource recovery facility), Slemmestad, Norway USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Combined sewage system of Oslo and surroundings: Oslo Vækerø VEAS WRRF at Slemmestad USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. The WRRF at Slemmestad (in the Bjerkås mountain): USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Some facts about VEAS VEAS is Norway's largest WRRF Serves approx. 700.000 pe (person equivalents). Treats 3,5 m³/s in average. Retention time in the WRRF: 3 – 4 hours. USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. The inlet magazine: 16 USN. PEF3006 Process Control. Haugen. 2018.

Compliant level control @ Normally low load (tunnel flow) Operation mode #1 Compliant level control @ Normally low load (tunnel flow) 17 Constraints in this mode: 1. Smooth pump flow. Specifically, d(F_in)/dt <= 20 (L/s)/min 2. Pump flow, F_in, between 8000 and 0 L/s. 3. Level between soft limits of 1.5 m and 2.5 m, with 1.8 m as the nominal level setpoint. (Lately, these limits have been changed to 1.6 m and 2.8 m, respectively, with setpoint 2.3 m. Both the above sets of specifications are used in this article.) USN. PEF3006 Process Control. Haugen. 2018.

Mathematical model of liquid level of inlet basin 18 Mathematical model of liquid level of inlet basin (needed in simulator, PI tuning, MPC and Kalman Filter): USN. PEF3006 Process Control. Haugen. 2018.

The level control system: 19 The level control system: Inflow to WWTP Tunnel Inlet basin Controller (PI, MPC) USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. PI controller Skogestad tuning: Controller: Process model: PI settings: USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. MPC including EKF (Extended Kalman Filter): (impl. with fmincon in MATLAB) Model used in EKF: USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Results USN. PEF3006 Process Control. Haugen. 2018.

Practical results before improvements: PI control with original, aggressive PI settings Level: Pump flow: Rate of change of pump flow: USN. PEF3006 Process Control. Haugen. 2018.

PI control with Skogestad settings (Tc = 1000 s), and MPC Simulations: PI control with Skogestad settings (Tc = 1000 s), and MPC Level: Pump flow: Rate of change of pump flow: MPC: Blue. PI: Magenta USN. PEF3006 Process Control. Haugen. 2018.

PI control with Skogestad settings (Tc = 2000 s) Practical result: PI control with Skogestad settings (Tc = 2000 s) Level: Pump flow: Rate of change of pump flow: USN. PEF3006 Process Control. Haugen. 2018.

Practical result: MPC - somewhat poor; before improved simulated MPC Level: Pump flow: Rate of change of pump flow: MPC (somewhat poor) USN. PEF3006 Process Control. Haugen. 2018.

USN. PEF3006 Process Control. Haugen. 2018. Conclusions Specifically: An important level control problem in a wastewater treatment plant has been solved using modeling and simulation. Generally: It is confirmed in an important practical application that basic mechanistic modeling can be very useful for: PI controller tuning (Skogestad) State estimation Optimal control (with MPC) Simulator-based testing of the above USN. PEF3006 Process Control. Haugen. 2018.