CBE495 LECTURE IV MODEL PREDICTIVE CONTROL

Similar documents
CHBE507 LECTURE II MPC Revisited. Professor Dae Ryook Yang

Multi-Input Multi-output (MIMO) Processes CBE495 LECTURE III CONTROL OF MULTI INPUT MULTI OUTPUT PROCESSES. Professor Dae Ryook Yang

3.1 Overview 3.2 Process and control-loop interactions

MODEL PREDICTIVE CONTROL

PREDICTIVE CONTROL OF NONLINEAR SYSTEMS. Received February 2008; accepted May 2008

Introduction to. Process Control. Ahmet Palazoglu. Second Edition. Jose A. Romagnoli. CRC Press. Taylor & Francis Group. Taylor & Francis Group,

Control of MIMO processes. 1. Introduction. Control of MIMO processes. Control of Multiple-Input, Multiple Output (MIMO) Processes

Feedback Control of Linear SISO systems. Process Dynamics and Control

CBE507 LECTURE III Controller Design Using State-space Methods. Professor Dae Ryook Yang

Index Accumulation, 53 Accuracy: numerical integration, sensor, 383, Adaptive tuning: expert system, 528 gain scheduling, 518, 529, 709,

Dynamic Operability for the Calculation of Transient Output Constraints for Non-Square Linear Model Predictive Controllers

System Identification for Process Control: Recent Experiences and a Personal Outlook

Design of Decentralised PI Controller using Model Reference Adaptive Control for Quadruple Tank Process

MIMO Identification and Controller design for Distillation Column

DYNAMIC SIMULATOR-BASED APC DESIGN FOR A NAPHTHA REDISTILLATION COLUMN

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

Process Unit Control System Design

DYNAMIC MATRIX CONTROL

FAULT-TOLERANT CONTROL OF CHEMICAL PROCESS SYSTEMS USING COMMUNICATION NETWORKS. Nael H. El-Farra, Adiwinata Gani & Panagiotis D.

Identification of ARX, OE, FIR models with the least squares method

EI6801 Computer Control of Processes Dept. of EIE and ICE

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

CHAPTER 6 CLOSED LOOP STUDIES

CONTROL OF MULTIVARIABLE PROCESSES

Paris'09 ECCI Eduardo F. Camacho MPC Constraints 2. Paris'09 ECCI Eduardo F. Camacho MPC Constraints 4

CHAPTER 5 ROBUSTNESS ANALYSIS OF THE CONTROLLER

Design of Multivariable Neural Controllers Using a Classical Approach

Guide to Selected Process Examples :ili3g eil;]iil

4 Arithmetic of Feedback Loops

1 Loop Control. 1.1 Open-loop. ISS0065 Control Instrumentation

Model Predictive Controller of Boost Converter with RLE Load

MIN-MAX CONTROLLER OUTPUT CONFIGURATION TO IMPROVE MULTI-MODEL PREDICTIVE CONTROL WHEN DEALING WITH DISTURBANCE REJECTION

MOST control systems are designed under the assumption

Process Control & Design

Course on Model Predictive Control Part II Linear MPC design

Progress in MPC Identification: A Case Study on Totally Closed-Loop Plant Test

Subject: Introduction to Process Control. Week 01, Lectures 01 02, Spring Content

A Tuning of the Nonlinear PI Controller and Its Experimental Application

arxiv: v1 [cs.sy] 2 Oct 2018

JUSTIFICATION OF INPUT AND OUTPUT CONSTRAINTS INCORPORATION INTO PREDICTIVE CONTROL DESIGN

EE C128 / ME C134 Feedback Control Systems

PROPORTIONAL-Integral-Derivative (PID) controllers

Real-Time Implementation of Nonlinear Predictive Control

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Mechanical Engineering 2.04A Systems and Controls Spring 2013

Optimizing Control of Hot Blast Stoves in Staggered Parallel Operation

Seminar Course 392N Spring2011. ee392n - Spring 2011 Stanford University. Intelligent Energy Systems 1

Overview of Control System Design

EL1820 Modeling of Dynamical Systems

Analysis and Synthesis of Single-Input Single-Output Control Systems

A Holistic Approach to the Application of Model Predictive Control to Batch Reactors

Real-Time Optimization (RTO)

Index. INDEX_p /15/02 3:08 PM Page 765

MODEL PREDICTIVE CONTROL and optimization

Lyapunov Stability of Linear Predictor Feedback for Distributed Input Delays

inputs. The velocity form is used in the digital implementation to avoid wind-up [7]. The unified LQR scheme has been developed due to several reasons

Principles and Practice of Automatic Process Control

Design of Nonlinear Control Systems with the Highest Derivative in Feedback

Model predictive control of industrial processes. Vitali Vansovitš

IMPLEMENTATIONS OF TRACKING MULTIPARAMETRIC PREDICTIVE CONTROLLER. Pregelj Boštjan, Gerkšič Samo. Jozef Stefan Institute, Ljubljana, Slovenia

Simulation Study on Pressure Control using Nonlinear Input/Output Linearization Method and Classical PID Approach

The Simplex Method: An Example

Adaptive Robust Control

Dynamic Matrix controller based on Sliding Mode Control.

A New Internal Model Control Method for MIMO Over-Actuated Systems

CONTROL. J.S. Senent M. Martnez J. Sanchis. Departamento de Ingeniera de Sistemas y Automatica. Universidad Politecnica de Valencia.

Dynamic Modeling, Simulation and Control of MIMO Systems

Predictive Functionnal Control of a Sendzimir cold rolling mill

Model Predictive Control Design for Nonlinear Process Control Reactor Case Study: CSTR (Continuous Stirred Tank Reactor)

Likelihood Bounds for Constrained Estimation with Uncertainty

Linear State Feedback Controller Design

Economic Model Predictive Control Historical Perspective and Recent Developments and Industrial Examples

Process Modelling, Identification, and Control

Chapter 7 Interconnected Systems and Feedback: Well-Posedness, Stability, and Performance 7. Introduction Feedback control is a powerful approach to o

CM 3310 Process Control, Spring Lecture 21

6.435, System Identification

CHAPTER 3 TUNING METHODS OF CONTROLLER

Real-Time Feasibility of Nonlinear Predictive Control for Semi-batch Reactors

Pass Balancing Switching Control of a Four-passes Furnace System

Control-Oriented Approaches to Inventory Management in Semiconductor Manufacturing Supply Chains

Process Identification for an SOPDT Model Using Rectangular Pulse Input

Identification and Control of Mechatronic Systems

(Refer Slide Time: 1:42)

Lecture 19 IIR Filters

An Adaptive LQG Combined With the MRAS Based LFFC for Motion Control Systems

Closed-loop system 2/1/2016. Generally MIMO case. Two-degrees-of-freedom (2 DOF) control structure. (2 DOF structure) The closed loop equations become

Click to edit Master title style

Control Configuration Selection for Multivariable Descriptor Systems

Chapter 2 Review of Linear and Nonlinear Controller Designs

THE REACTION WHEEL PENDULUM

Reprinted from February Hydrocarbon

Process Control Hardware Fundamentals

Generalized Autoregressive Score Models

A FAST, EASILY TUNED, SISO, MODEL PREDICTIVE CONTROLLER. Gabriele Pannocchia,1 Nabil Laachi James B. Rawlings

APPLICATION OF MULTIVARIABLE PREDICTIVE CONTROL IN A DEBUTANIZER DISTILLATION COLUMN. Department of Electrical Engineering

GAIN SCHEDULING CONTROL WITH MULTI-LOOP PID FOR 2- DOF ARM ROBOT TRAJECTORY CONTROL

DESIGN OF AN ON-LINE TITRATOR FOR NONLINEAR ph CONTROL

CHBE320 LECTURE V LAPLACE TRANSFORM AND TRANSFER FUNCTION. Professor Dae Ryook Yang

Control Introduction. Gustaf Olsson IEA Lund University.

Model structure. Lecture Note #3 (Chap.6) Identification of time series model. ARMAX Models and Difference Equations

Control System Design

Transcription:

What is Model Predictive Control (MPC)? CBE495 LECTURE IV MODEL PREDICTIVE CONTROL Professor Dae Ryook Yang Fall 2013 Dept. of Chemical and Biological Engineering Korea University * Some parts are from Jay H. Lee s lecture notes Korea University IV -1 Multivariable control Calculate all the MV s at the same time based on all PV values Not like multiloop control, no decoupling scheme is needed More complicated Constraints handling Process industry requires many constraints Safety Operational limitations Product quality No previous methodology handles constraints explicitly Flexible formulation Many control objectives can be formulated as the objective function and constraints Korea University IV -2 Features Computer control: sampled-data control Model-based control: dynamic model is required Fundamental model Empirical model (usually step response based) Predictive: adjust process based on the future prediction Not just based on the current error Optimization-based: no explicit control law Formulated with objective function and constraints Optimization is solved at each sampling time Integrated: constraints and economic handling Optimizing control Servo or regulatory control Receding horizon control: future window is moving forward Repeat the prediction and optimization at each sample time Update the input based on the new measurement Similarity to human decision-making Sense: collect new information Assess: update the memories Predict: forecast the outcome for a variety of possible decisions Optimize: determine the best decision for given objective and constraints Implement: the action for this time is imposed Repeat: information collection, update and optimization done every so often Korea University IV -3 Korea University IV -4 1

Exemplary Algorithm Model Predictive Control Originated in 1980 Techniques developed by industry: Dynamic Matrix Control (DMC) Shell Development Co., Cutler and Ramaker (1980) Cutler later formed DMC, Inc. DMC acquired by Aspentech in1997 Model Algorithmic Control (MAC) ADERSA/GERBIOS, Richalet et al (1978) Objective function Constraints Over 4500 applications of MPC by the end of 1999 since 1980 (Qin and Badgwell, 2003) Predominantly in the oil and petrochemical industries but the range of applications is expanding. Models used are predominantly empirical models developed through plant testing. Technology is used not only for multivariable control, but for most economic operation within constraint boundaries. Korea University IV -5 Korea University IV -6 Reason for Popularity (1) Example 1: Blending control system MPC provides a systematic, consistent, and integrated solution to process control problems with complex features: Delays, inverse responses and other complex dynamics. Strong interactions (e.g., large RGA) Constraints (e.g., actuator limits, output limits) Korea University IV -7 Korea University IV -8 2

Example 2: Heavy Oil Fractionator Advantages of MPC over Traditional APC Integrated solution automatic constraint handling Feedforward/feedback No need for decoupling or delay compensation Efficient Utilization of degrees of freedom Can handle nonsquare systems (e.g., more MVs and CVs) Assignable priorities, ideal settling values for MVs Consistent, systematic methodology Realized benefits Higher on-line times Cheaper implementation Easier maintenance Korea University IV -9 Korea University IV -10 Reason for Popularity (2) Synergy Between Optimization and Control Emerging popularity of on-line optimization Process optimization and control are often conflicting objectives Optimization pushes the process to the boundary of constraints. Quality of control determines how close one can push the process to the boundary. Implications for process control High performance control is needed to realize on-line optimization. Constraint handling is a must. The appropriate tradeoff between optimization and control is time-varying and is best handled within a single framework Korea University IV -11 Korea University IV -12 3

Control Hierarchy Regulatory and basic control PID control loops, cascade loops, Computer Integrated Manufacturing independent actuators, etc. Plant-wide Optimization The set point of each loop are given by advanced control Advanced Control Fast sampling time and response (seconds or less) Regulatory and Basic Control Advanced control Plant Such as MPC Manipulates the set points of the regulatory and basic controls Higher-level set points are given by the plant-wide optimizer Sampling time (seconds to minutes) Plant-wide optimization Calculate the optimum steady-states operating conditions based on the strategy from CIM Sampling time (hours) CIM (Computer Integrated Manufacturing) Reflect corporate strategy and market condition Production schedule Sampling time (months) Korea University IV -13 Return on Investment (ROI) for APC Korea University IV -14 Importance of Modeling Almost all models used in MPC are typically empirical models identified through plant tests rather than first-principles models. Step responses, pulse responses from plant tests. Transfer function models fitted to plant test data. Up to 80% of time and expense involved in designing and installing a MPC is attributed to modeling/system identification. should be improved. Keep in mind that obtained models are imperfect (both in terms of structure and parameters). Importance of feedback update of the model. Penalize excessive input movements. Korea University IV -15 Design effort Korea University IV -16 4

Challenges Efficient identification of control-relevant model Managing the sometimes exorbitant on-line computational load Nonlinear models Nonlinear Programs (NLP) Hybrid system models (continuous dynamics + discrete events or switches, e.g., pressure swing adsorption) Mixed Integer Programs (MINLP) Difficult to solve these reliably on-line for large-scale problems. How do we design model, estimator (of model parameters and state), and optimization algorithm as an integrated system - that are simultaneously optimized - rather than disparate components? Long-term maintenance of control system. Korea University IV -17 Current Status on MPC MPC is the established advanced multivariable control technique for the process industry. It is already an indispensable tool and its importance is continuing to grow. It can be formulated to perform some economic optimization and can also be interfaced with a larger-scale (e.g., plant-wide) optimization scheme. Obtaining an accurate model and having reliable sensors for key parameters are key bottlenecks. A number of challenges remain to improve its use and performance. Korea University IV -18 Process Models Transfer function models Fixed order and structure Parametric: few parameters to identify Need very high order model for unusual behavior Convolution models Continuous form Step Response Model From open-loop step test Sampling time: Step response coefficients: a i Read the values of the unit step response FSR model Finite step response (FSR) Discrete form Impulse response Using superposition principle for arbitrary input changes Many parameters, but easily obtained from the step or impulse response Korea University IV -19 Korea University IV -20 5

After, the step response reaches steady state at least 99% Impulse Response Model Impulse response coefficients 0 0 (FSR Model) If there is a delay, the FSR coefficients during the delay will be zero. (FIR Model) Korea University IV -21 Korea University IV -22 Matrix Form of the Predictive Model Single-Step Prediction Horizons Model horizon: T (number of model coefficients) Control horizon: U (number of control moves) Prediction horizon: V (number of predictions in the future) From the FIR model (Recursive prediction) Corrected prediction based on the measurement Assume the error between the model prediction and the measurement will present in the future with same magnitude A: Dynamic matrix Korea University IV -23 Korea University IV -24 6

Multi-Step Prediction From the single-step prediction (j-step prediction) where Matrix form when V U Dynamic Matrix, A S j : the incremental effect of the past (previously implemented) movements of input on the (n+j)-th future output prediction (where n is current time) P i : the projection which includes future prediction of y based on all previously implemented input changes. P i and S j depend only on past input changes. If the past information is known, then the future input changes will affect the future outputs and the future outputs can be adjusted by carefully selecting the future inputs. Korea University IV -25 Korea University IV -26 Currently, n is current time and y n is measured. Controller Design Method (DMC) Objective Minimize errors between future set points and predictions where Closed-loop prediction error based only on current and future control action Solution Open-loop prediction error based only on past control action Depend on only future Depend on only past Korea University IV -27 Some inverse of A Korea University IV -28 7

If U=V and A is invertible, If U<V (A is not invertible), Optimization concept It gives no steady-state offset since it has integral action. A + :Left pseudoinverse of A A + A=I: identity matrix AA + : idempotent matrix (BB=B) Adjustable parameters of MPC (Tuning parameters) Weighting matrices If W 1 >>W 2, the most important objective is to minimize error of the process outputs and inputs will move quite freely. If W 1 <<W 2, the most important objective is to minimize the input movements and controller cares much less the errors. (almost no control) Otherwise, it depends on the relative size of the weighting matrices. If W 1 >W 2, aggressive action will be taken to reduce the error. If W 1 <W 2, conservative action will be taken to reduce the input movements while reduce the error if the action is not too aggressive. The W 2 is called input penalty or input move suppression factor. Typically, use W 1 =I and W 2 =f 2 I and adjust f. If a different weighting for outputs or inputs is required, use diagonal matrix as the weighting matrix. Korea University IV -29 Korea University IV -30 Horizons Model horizon (T) Select T such that T is typically 20 to 70. Prediction horizon (V) Increasing V results in more conservative control action, a stabilizing effect, and more computational burden. An important tuning parameter Control horizon (U) Suitable first guess is to choose U so that The larger the value of U is, the more computation time is required. Too large a value of U results in excessive control action Smaller value of U leads to a robust controller that is relatively insensitive to model error. Korea University IV -31 2x2 case where MIMO Extension General case Extend the vectors and matrices in the same manner. If the MPC is formulated in a different form such as statespace model, different form of MIMO extension is more convenient. Korea University IV -32 8

Constraints Handling Formulate and solve the MPC in an optimization framework Solve this optimization problem in QP DMC by DMCC used LP Model Algorithmic Control (MAC) Process model: based on u not Set point: First-order approach to set point Speed of response is determined by (tuning parameter) Tuning parameters Speed of desired response U=V (fixed, not used as tuning parameters) V is chosen so that Time varying weight: Solution is obtained using QP Korea University IV -33 Korea University IV -34 Comments on MPC Implementation Update the prediction model based on the current measurement. Calculate U moves from the optimization and implement the first input moves and throw out the rest. The MPC is minimizing the error between the set point and predicted output. In the prediction, the measurement is incorporated and it works as a feedback. No steady-state offset: integrator in the control law Disturbance Model can be added Known measured disturbance can be incorporated by adding disturbance model in the same manner. Example 1: Blending control system Objectives: -- Control the composition of A and B -- Control total flow if possible Constraints: -- Flow rates are limited Classical solution MPC solution Korea University IV -35 Korea University IV -36 9

Example 2: Heavy Oil Fractionator Identification of Models FSR or FIR models: use step or pulse test Assume operation at steady state Make change in input (or ) If is too small, output change may not noticeable If is too large, linearity may not hold Measure output at regular intervals The should be chosen so that T is 20-70,typically 40. Perform multiple experiments and average them and additional experiments for verification High frequency information may not be accurate for step test. Ideal pulse is hard to implement. Korea University IV -37 Korea University IV -38 Least Squares Identification Get the output using PRBS (Pseudo Random Binary Signal) Get the FIR model Minimize the error between measurements and output, Discussions Random input testing, if appropriately designed, gives better models than the step or pulse testing does since it can equally excite low to high frequency dynamics of the process. If U T U is singular, the inverse doesn't exist and identification fails. (Need persistent excitation condition) When the number of coefficients is large, U T U can be easily singular (or nearly singular). To avoid the numerical, a regularization term is added the the cost function. (ridge regression) Korea University IV -39 Korea University IV -40 10

Data Treatments The data need to be processed before they are used in identification. Spike/Outlier Removal Check plots of data and remove obvious outliers (e.g., that are impossible with respect to surrounding data points). Fill in by interpolation. After modeling, plot of actual vs. predicted output (using measured input and modeling equations) may suggest additional outliers. Remove and redo modeling, if necessary. But don't remove data unless there is a clear justification. Bias Removal and Normalization Compute the data average and subtract it to create deviation variables, i.e., Use the given steady-state values of the variables instead to compute the deviation variables, i.e., where y ss and u ss represent a priori given steady-state values of the process output and input respectively. The input/output data can be biased by the nonzero steady state and also by load disturbance effects. To remove the (timevarying) bias, differencing can be performed for the input/output data. Korea University IV -41 In all cases, the process data are conditioned by scaling before using in identification. Korea University IV -42 Prefiltering If the data contain too much frequency components over an undesired range and/or if we want to obtain a model that fits well the data over a certain frequency range, data prefiltering (via digital filters) can be done. Korea University IV -43 11