Nonlinear Model Predictive Control Tools (NMPC Tools)

Size: px
Start display at page:

Download "Nonlinear Model Predictive Control Tools (NMPC Tools)"

Transcription

1 Nonlinear Model Predictive Control Tools (NMPC Tools) Rishi Amrit, James B. Rawlings April 5, Formulation We consider a control system composed of three parts([2]). Estimator Target calculator Regulator Sensor Noise Unmeasured Disturbances Regulator u k Process x k+1 = Ax k + Bu k +Gw k v k Sensor y k = Cx k + v k Process Measurements y k x t u t ˆx k Target Calculation y set u set Setpoints Estimator State Estimate ˆx k p k Integrating Disturbance The first part, the state estimator, deteres an approximate current state of the system, knowing the history of injected inputs and measured amrit@wisc.edu rawlings@engr.wisc.edu 1

2 outputs. The state estimator is also used to estimate the integrating disturbance state. The second part is the steady-state target calculation, which adjusts the state and input targets to account for the integrated disturbance. The final part, the MPC regulator, is responsible for finding the best control profile given steady-state targets for the states and inputs. In some formulations, the regulator may instead be used to track a dynamic output trajectory. 1.1 Disturbance Model We wish to provide the user with flexibility of defining the disturbance model. For the same reason, we define the disturbance model by specifying two matrices, B d and C d. The augmented model becomes: [ ] x p k+1 }{{} ˆx k+1 = y k = [ A Bd 0 I ] [ ] x + p k }{{} ˆx k ] [C [ ] x C d p k + v k [ ] B u 0 k + [ G 0 0 Φ ] [ ] w ξ k }{{} ŵ k in which the index k represents the current sampling time, x k is the state of the system, u k is the input, w k is the stochastic noise variable, and t k is the time. We assume that w k is normally distributed and has a zero mean. The term B d p k is the integrated input disturbance. In cases of plant/model mismatch or nonzero mean disturbances, this term is nonzero; however, in the noal case in which the plant and model are identical, this term vanishes. y k is the measurement at time t k. ξ k is a normally distributed zero-mean vector. v k is a stochastic Gaussian zero-mean noise term. ˆx k and ŵ k are the augmented state and disturbance vectors. Hence the model in terms of augmented state and disturbance vectors is: ˆx k+1 = ˆx k + ˆBu k + Ĝŵ k y k = Ĉ ˆx k + v k 2

3 2 Moving Horizon Estimation Modules: lmhe, nmhe Linear MHE (Module: lmhe) lmhe solves the following MHE problem. The model is linear and the user provides the model matrices. w aug,v,x aug N 1 k=0 ( 1 2 (w k Q kw k +v k R kv k +x k Θ kx k +2x k L kw k +ɛ k Z kɛ k +ξ k Ψ kξ k ) + q k w k + r k v k + θ k x k) + z k ɛ k + ψ k ξ k ρ P N ρ + p N ρ in which ˆx 0 = x 0 + ρ [ ] [ ] [ ] x A Bd x = + p 0 I p k+1 k }{{}}{{} ˆx k+1 ˆx k ] y k = [C [ ] x C d p S k w k + E fk ˆx k s k H k ˆx k ɛ k h k ɛ k 0 Γ k v k ξ k γ k ξ k 0 S ρ ρ s ρ k + v k [ ] B u 0 k + x 0 is the a priori estimate of the initial state [ G 0 0 I ] [ ] w ξ k }{{} ŵ k Optional constraints on state and state noise (specified by matrices S k, Ef k and s k ) are hard constraints. State constraint (specified by H k and h k ) are softened The module returns the estimated states, optimal ρ and the predicted state and measurement noise vectors. 3

4 2.1 Nonlinear MHE (Module: nmhe) nmhe solves the following nonlinear MHE problem. N 1 w,v,x k=0 ( 1 2 (w k Q kw k + v k R kv k ) ρ N P Nρ N + p N ρ N x 0 = x 0 + ρ x k+1 = F(x k, u k ) + G k w k + B d p k y k = g(x k ) + v k + C d p k p k+1 = p k + ξ k H k x k h k (constraint is softened) S k w k s k (constraint is softened) G k v k g k The user provides the system model as a system of ordinary differential equations dx dt = f (x, u, t) This model is integrated to yield the function F(x k, u k ) (See Appendix A). 3 Linear MPC 3.1 Target calculation Depending on the number of inputs and outputs, the setpoint of the system may or may not be reachable. For cases when the system cannot achieve a steady state at the desired setpoint, a target steady state closest to the setpoint is estimated in a least squares sense. Instead of solving separate problems to establish the target, a single formulation is preferred. The target tracking problem is formulated as a single quadratic program [1], that achieves the output target, if possible, and relaxes the the problem if the target is infeasible. For this purpose a soft constraint is formulated as follows: y sp Cx s X y p η y sp Cx s X y p η η 0 4

5 The constraint y sp = Cx s + X y p is relaxed by using the slack variable η. By suitably penalizing η, we guarantee that the relaxed constraint is binding when it is feasible. The penalty is chosen to be a combination of a linear penalty q s η and a quadratic penalty η Q s η, in which the elements of q s are strictly non negative and Q s is positive definite. By choosing a sufficiently large q s, the soft constraint can be guaranteed to be exact. Module: ltarget: Solves the linear MPC target problem where: 1 x s,u s,η 2 (η Q s η + (u s u sp ) R s (u s u sp )) + q sη (I A)x s = Bu s + B d p η y sp Cx s + C d p η y sp Cx s + C d p η 0 Du Hx d 3.2 Regulator In the regulation problem, we assume the stochastic variables w k and v k take on their mean values. Module: lmpc: Solves the linear MPC problem x,ũ,ɛ N 1 k=0 ( 1 2 ( x k Q k x k +ũ k R kũ k +2 x k M kũ k +ɛ k Z kɛ k )+q k x k+r kũk+z k ɛ k) + 1/2( x N P x N + ɛ N Z Nɛ N ) + p x N + z N ɛ N x k+1 = A k x k + B k ũ k + F k k = 0,..., N 1 D k ũ k G k x k d k k = 0,..., N 1 H k x k ɛ k h k ɛ k 0 k = 0,..., N k = 0,..., N In all the Linear MPC modules, the user defines the problem matrices. 5

6 3.3 Quadratic teral constraint regulator Module: lmpc term: Solves the linear MPC problem with a quadratic teral constraint x,ũ,ɛ N 1 k=0 ( 1 2 ( x k Q k x k +ũ k R kũ k +2 x k M kũ k +ɛ k Z kɛ k )+q k x k+r kũk+z k ɛ k) + 1/2( x N P x N + ɛ N Z Nɛ N ) + p x N + z N ɛ N x k+1 = A k x k + B k ũ k + F k k = 0,..., N 1 D k ũ k G k x k d k k = 0,..., N 1 H k x k ɛ k h k ɛ k 0 k = 0,..., N k = 0,..., N ( x N a T ) π( x N a T ) b T (1) The quadratic constraint defined by equation (1), ensures that the teral state resulting from the regulation optimization, lies within the specified region (elliptical in this case as the constraint is quadratic) around the final target. 4 Nonlinear MPC 4.1 Disturbance model formulation The toolbox provides a flexible interface such that a wide variety of models can be simulated. The nonlinear modules require the user to specify the process model as a set of differential equations, which they use for sensitivity calculations. Also, this allows the user to specify disturbance models of their choice. The user defined differential equations are of the form: dx dt = f (x, u, t) The user has a choice of either pre-augmenting the integrating disturbance or specifying the linear disturbance multiplier in the following discrete time representation of the model: x k+1 = F(x k, u k ) + B d p k The relationship between F(x k, u k ) and f (x, u, t) is given in Appendix A. To demonstrate the disturbance model formulation using the above methodology, we now show formulations of the two common disturbance models, namely the input disturbance model and the output disturbace model. 6

7 4.1.1 Output disturbance model The parameter B d is 0 and C d is identity. The user input takes the following form: ẋ = f (x, u, t) y = g(x) + C d p When the module discretizes this model, the following discrete time representation is obtained: x k+1 = F(x k, u k ) + Gw k p k+1 = p k + ξ k Input disturbance model Augment the state and the disturbance ad define the system as following: [ẋ ] = ṗ }{{} x [ ] f (x, u + Xu p, t) } 0 {{ } f ( x,u) Note that the parameter B d is set 0 as the disturbance has been augmented. When the module discretizes this model, the following discrete time representation is obtained: [ xk+1 p k+1 } {{ } x k+1 ] [ ] F(xk, u k + X u p k ) = + p k } {{ } f ( x k,u k ) [ G I ] [ ] wk ξ k }{{} Stochastic term 4.2 Target calculation Same idea applies for target calculation in non linear systems as explained for linear systems. The model in this case is a nonlinear function of states and inputs. Module: ntarget: Solves the nonlinear MPC target problem 1 x s,u s,η 2 (η Q s η + (u s u sp ) R s (u s u sp )) + q sη F(x s, u s ) = 0 η y sp y(x) η y sp y(x) η 0 Du Hx d 7

8 The user provides the system model as a system of ordinary differential equations. dx dt = f (x, u, t) This model is integrated to yield the function F(x k, u k ) (See Appendix A). The user also provides the nonlinear function describing the dependence of output on the states. y k = g(x k ) 4.3 Controller Module: nmpc: Solves the nonlinear MPC problem x,u ((1/2)((x k x set ) Q k (x k x set ) + (u k u set ) R k (u k u set )+ (u k u k 1 ) S(u k u k 1 )) + (1/2)(x N x set ) P(x N x set )) x k+1 = F(x k, u k ) + G k w k + B d p k y k = g(x k ) + v k + C d p k p k+1 = p k + ξ k H k x k h k (constraint is softened) E k y k e k (constraint is softened) D k ũ k d k G k (ũ k ũ k 1 ) g k The user provides the system model as a system of ordinary differential equations. dx dt = f (x, u, t) This model is integrated to yield the function F(x k, u k ) (See Appendix A). The user also provides the nonlinear function describing the dependence of output on the states. y k = g(x k ) 8

9 A Discrete time model from a system of ODE s In the nonlinear modules of the package, the user interface allows the user to provide the system model as a set of ordinary differential equations dx dt = f (x, u) x(t 0 ) = x 0 Let S(t, x 0, u c ) be the solution to the model with input u(t) = u c, where u c is a constant on the interval [0, t]. Then the model function in discrete time is given by where is the sampling time. F(x k, u k ) = S(, x k, u k ) B Quadratic teral constraint problem B.1 Problem formulation The linear problem regulator solves a quadratic objective satisfying linear constraints. To account for a quadratic teral constraint, we add a teral cost in the objective and increase it until the teral constraint is satisfied. The problem formulation becomes: x,ũ,ɛ N 1 k=0 ( 1 2 ( x k Q k x k +ũ k R kũ k +2 x k M kũ k +ɛ k Z kɛ k )+q k x k+r kũk+z k ɛ k) + 1/2( x N P x N + ɛ N Z Nɛ N ) + p x N + z N ɛ N + λ( x N a T ) π N ( x N a T ) x k+1 = A k x k + B k ũ k + F k k = 0,..., N 1 D k ũ k G k x k d k k = 0,..., N 1 H k x k ɛ k h k ɛ k 0 k = 0,..., N k = 0,..., N Under appropriate convexity assumptions, ( x N a T ) π N ( x N a T ) is a nonincreasing function of λ for λ 0. In the above objective, λ is varied until following constraint is satisfied ( x N a T ) π N ( x N a T ) b T 9

10 B.2 Algorithm If the solution corresponding to λ = 0 does not satisfy the constraint, the algorithm then looks for a higher value of λ for which the constraint is satisfied. The module provides a calling sequence in which the user can pass a value of λ from the previous MPC iteration. Then a sufficiently big value of λ is searched. This is done by doubling the value until the constraint is satisfied. Bisection method is then applied to estimate the value of λ corresponding to which the solution satisfies the tolerances according to the following equation. b T (1 + tol A ) ( x N a T ) π N ( x N a T ) b T (1 + tol A ) where tol A is the tolerance specified by the user. The flow of the algorithm is given in Algorithm 1. Algorithm 1 Quadratic teral constraint regulator Evaluate x for λ = 0 if ( x N a T ) π N ( x N a T ) > b T then if λ g not provided by user then Initialize λ g end if Evaluate x for λ = λ g while ( x N a T ) π N ( x N a T ) > b T do λ g 2λ g Evaluate x for λ = λ g end while λ L 0, λ R λ g λ C (λ L + λ R )/2 Evaluate x C for λ = λ C while ( x N C a T ) π N ( x N C a b T ) [ T (1+tol A ), b T (1 + tol A )] do if ( x N C a T ) π N ( x N C a T ) b T then λ R λ C else λ L λ C end if λ C (λ L + λ R )/2 Evaluate x C for λ = λ C end while else x already satisfies constraint end if 10

11 B.3 Example A two state one input example was simulated to test the above algorithm. [ ] [ ] 4/3 2/3 1 [ ] A =, B =, C = 2/3 1 (2) The controller objective matrices were chosen as: Q = I, R = I, N = 4 (3) The input was constrained by u 1, and the initial state was set to [3, 3]. The following quadratic constraint matrices were chosen: [ ] 70 0 π T =, b 0 70 T = 0.2 (4) The following teral cost profiles were obtained for first 3 consecutive regulator optimizations. The optimal value of λ corresponds to x N π N x N = b T = 0.2 ( x N a T ) pin( x N a T ) Time step 1 Time step 2 Time step 3 b T λ Optimal solution corresponding to λ = 0 satisfies the constraint in all the optimizations at the following time steps, signifying that the state of the system was then close enough to the origin for the teral state to lie in the desired teral region. 11

12 References [1] James B. Rawlings. Tutorial: Model predictive control technology. In Proceedings of the American Control Conference, San Diego, CA, pages , [2] M. Tenny. Computational Strategies for Nonlinear Model Predictive Control. PhD thesis, University of Wisconsin Madison,

Course on Model Predictive Control Part II Linear MPC design

Course on Model Predictive Control Part II Linear MPC design Course on Model Predictive Control Part II Linear MPC design Gabriele Pannocchia Department of Chemical Engineering, University of Pisa, Italy Email: g.pannocchia@diccism.unipi.it Facoltà di Ingegneria,

More information

Theory in Model Predictive Control :" Constraint Satisfaction and Stability!

Theory in Model Predictive Control : Constraint Satisfaction and Stability! Theory in Model Predictive Control :" Constraint Satisfaction and Stability Colin Jones, Melanie Zeilinger Automatic Control Laboratory, EPFL Example: Cessna Citation Aircraft Linearized continuous-time

More information

Optimizing Economic Performance using Model Predictive Control

Optimizing Economic Performance using Model Predictive Control Optimizing Economic Performance using Model Predictive Control James B. Rawlings Department of Chemical and Biological Engineering Second Workshop on Computational Issues in Nonlinear Control Monterey,

More information

Quis custodiet ipsos custodes?

Quis custodiet ipsos custodes? Quis custodiet ipsos custodes? James B. Rawlings, Megan Zagrobelny, Luo Ji Dept. of Chemical and Biological Engineering, Univ. of Wisconsin-Madison, WI, USA IFAC Conference on Nonlinear Model Predictive

More information

MPC Infeasibility Handling

MPC Infeasibility Handling MPC Handling Thomas Wiese, TU Munich, KU Leuven supervised by H.J. Ferreau, Prof. M. Diehl (both KUL) and Dr. H. Gräb (TUM) October 9, 2008 1 / 42 MPC General MPC Strategies 2 / 42 Linear Discrete-Time

More information

Overview of Models for Automated Process Control

Overview of Models for Automated Process Control Overview of Models for Automated Process Control James B. Rawlings Department of Chemical and Biological Engineering April 29, 29 Utilization of Process Modeling and Advanced Process Control in QbD based

More information

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

A FAST, EASILY TUNED, SISO, MODEL PREDICTIVE CONTROLLER. Gabriele Pannocchia,1 Nabil Laachi James B. Rawlings A FAST, EASILY TUNED, SISO, MODEL PREDICTIVE CONTROLLER Gabriele Pannocchia, Nabil Laachi James B. Rawlings Department of Chemical Engineering Univ. of Pisa Via Diotisalvi 2, 5626 Pisa (Italy) Department

More information

Online monitoring of MPC disturbance models using closed-loop data

Online monitoring of MPC disturbance models using closed-loop data Online monitoring of MPC disturbance models using closed-loop data Brian J. Odelson and James B. Rawlings Department of Chemical Engineering University of Wisconsin-Madison Online Optimization Based Identification

More information

Industrial Model Predictive Control

Industrial Model Predictive Control Industrial Model Predictive Control Emil Schultz Christensen Kongens Lyngby 2013 DTU Compute-M.Sc.-2013-49 Technical University of Denmark DTU Compute Matematiktovet, Building 303B, DK-2800 Kongens Lyngby,

More information

Postface to Model Predictive Control: Theory and Design

Postface to Model Predictive Control: Theory and Design Postface to Model Predictive Control: Theory and Design J. B. Rawlings and D. Q. Mayne August 19, 2012 The goal of this postface is to point out and comment upon recent MPC papers and issues pertaining

More information

HPMPC - A new software package with efficient solvers for Model Predictive Control

HPMPC - A new software package with efficient solvers for Model Predictive Control - A new software package with efficient solvers for Model Predictive Control Technical University of Denmark CITIES Second General Consortium Meeting, DTU, Lyngby Campus, 26-27 May 2015 Introduction Model

More information

Algorithms for constrained local optimization

Algorithms for constrained local optimization Algorithms for constrained local optimization Fabio Schoen 2008 http://gol.dsi.unifi.it/users/schoen Algorithms for constrained local optimization p. Feasible direction methods Algorithms for constrained

More information

In search of the unreachable setpoint

In search of the unreachable setpoint In search of the unreachable setpoint Adventures with Prof. Sten Bay Jørgensen James B. Rawlings Department of Chemical and Biological Engineering June 19, 2009 Seminar Honoring Prof. Sten Bay Jørgensen

More information

Outline. 1 Linear Quadratic Problem. 2 Constraints. 3 Dynamic Programming Solution. 4 The Infinite Horizon LQ Problem.

Outline. 1 Linear Quadratic Problem. 2 Constraints. 3 Dynamic Programming Solution. 4 The Infinite Horizon LQ Problem. Model Predictive Control Short Course Regulation James B. Rawlings Michael J. Risbeck Nishith R. Patel Department of Chemical and Biological Engineering Copyright c 217 by James B. Rawlings Outline 1 Linear

More information

Machine Learning. Support Vector Machines. Fabio Vandin November 20, 2017

Machine Learning. Support Vector Machines. Fabio Vandin November 20, 2017 Machine Learning Support Vector Machines Fabio Vandin November 20, 2017 1 Classification and Margin Consider a classification problem with two classes: instance set X = R d label set Y = { 1, 1}. Training

More information

Outline. Linear regulation and state estimation (LQR and LQE) Linear differential equations. Discrete time linear difference equations

Outline. Linear regulation and state estimation (LQR and LQE) Linear differential equations. Discrete time linear difference equations Outline Linear regulation and state estimation (LQR and LQE) James B. Rawlings Department of Chemical and Biological Engineering 1 Linear Quadratic Regulator Constraints The Infinite Horizon LQ Problem

More information

SIMULATION OF TURNING RATES IN TRAFFIC SYSTEMS

SIMULATION OF TURNING RATES IN TRAFFIC SYSTEMS SIMULATION OF TURNING RATES IN TRAFFIC SYSTEMS Balázs KULCSÁR István VARGA Department of Transport Automation, Budapest University of Technology and Economics Budapest, H-, Bertalan L. u. 2., Hungary e-mail:

More information

Appendix A Solving Linear Matrix Inequality (LMI) Problems

Appendix A Solving Linear Matrix Inequality (LMI) Problems Appendix A Solving Linear Matrix Inequality (LMI) Problems In this section, we present a brief introduction about linear matrix inequalities which have been used extensively to solve the FDI problems described

More information

Closed-loop Behavior of Nonlinear Model Predictive Control

Closed-loop Behavior of Nonlinear Model Predictive Control 2 TWMCC Texas-Wisconsin Modeling and Control Consortium 1 Technical report number 2002-04 Closed-loop Behavior of Nonlinear Model Predictive Control Matthew J. Tenny and James B. Rawlings Department of

More information

Numerical Methods for Model Predictive Control. Jing Yang

Numerical Methods for Model Predictive Control. Jing Yang Numerical Methods for Model Predictive Control Jing Yang Kongens Lyngby February 26, 2008 Technical University of Denmark Informatics and Mathematical Modelling Building 321, DK-2800 Kongens Lyngby, Denmark

More information

Optimization Problems in Model Predictive Control

Optimization Problems in Model Predictive Control Optimization Problems in Model Predictive Control Stephen Wright Jim Rawlings, Matt Tenny, Gabriele Pannocchia University of Wisconsin-Madison FoCM 02 Minneapolis August 6, 2002 1 reminder! Send your new

More information

Homework Solution # 3

Homework Solution # 3 ECSE 644 Optimal Control Feb, 4 Due: Feb 17, 4 (Tuesday) Homework Solution # 3 1 (5%) Consider the discrete nonlinear control system in Homework # For the optimal control and trajectory that you have found

More information

State estimation and the Kalman filter

State estimation and the Kalman filter State estimation and the Kalman filter PhD, David Di Ruscio Telemark university college Department of Technology Systems and Control Engineering N-3914 Porsgrunn, Norway Fax: +47 35 57 52 50 Tel: +47 35

More information

UCLA Chemical Engineering. Process & Control Systems Engineering Laboratory

UCLA Chemical Engineering. Process & Control Systems Engineering Laboratory Constrained Innite-time Optimal Control Donald J. Chmielewski Chemical Engineering Department University of California Los Angeles February 23, 2000 Stochastic Formulation - Min Max Formulation - UCLA

More information

Nonlinear Stochastic Modeling and State Estimation of Weakly Observable Systems: Application to Industrial Polymerization Processes

Nonlinear Stochastic Modeling and State Estimation of Weakly Observable Systems: Application to Industrial Polymerization Processes Nonlinear Stochastic Modeling and State Estimation of Weakly Observable Systems: Application to Industrial Polymerization Processes Fernando V. Lima, James B. Rawlings and Tyler A. Soderstrom Department

More information

5 Handling Constraints

5 Handling Constraints 5 Handling Constraints Engineering design optimization problems are very rarely unconstrained. Moreover, the constraints that appear in these problems are typically nonlinear. This motivates our interest

More information

MPC: Tracking, Soft Constraints, Move-Blocking

MPC: Tracking, Soft Constraints, Move-Blocking MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger Institut für Automatik, ETH Zürich Institute for Dynamic Systems and Control, ETH Zürich UC Berkeley EPFL Spring

More information

A tutorial overview on theory and design of offset-free MPC algorithms

A tutorial overview on theory and design of offset-free MPC algorithms A tutorial overview on theory and design of offset-free MPC algorithms Gabriele Pannocchia Dept. of Civil and Industrial Engineering University of Pisa November 24, 2015 Introduction to offset-free MPC

More information

4F3 - Predictive Control

4F3 - Predictive Control 4F3 Predictive Control - Lecture 2 p 1/23 4F3 - Predictive Control Lecture 2 - Unconstrained Predictive Control Jan Maciejowski jmm@engcamacuk 4F3 Predictive Control - Lecture 2 p 2/23 References Predictive

More information

Distributed and Real-time Predictive Control

Distributed and Real-time Predictive Control Distributed and Real-time Predictive Control Melanie Zeilinger Christian Conte (ETH) Alexander Domahidi (ETH) Ye Pu (EPFL) Colin Jones (EPFL) Challenges in modern control systems Power system: - Frequency

More information

Convex Optimization and Support Vector Machine

Convex Optimization and Support Vector Machine Convex Optimization and Support Vector Machine Problem 0. Consider a two-class classification problem. The training data is L n = {(x 1, t 1 ),..., (x n, t n )}, where each t i { 1, 1} and x i R p. We

More information

Duality and dynamics in Hamilton-Jacobi theory for fully convex problems of control

Duality and dynamics in Hamilton-Jacobi theory for fully convex problems of control Duality and dynamics in Hamilton-Jacobi theory for fully convex problems of control RTyrrell Rockafellar and Peter R Wolenski Abstract This paper describes some recent results in Hamilton- Jacobi theory

More information

Model Predictive Control Short Course Regulation

Model Predictive Control Short Course Regulation Model Predictive Control Short Course Regulation James B. Rawlings Michael J. Risbeck Nishith R. Patel Department of Chemical and Biological Engineering Copyright c 2017 by James B. Rawlings Milwaukee,

More information

MATH4406 (Control Theory) Unit 6: The Linear Quadratic Regulator (LQR) and Model Predictive Control (MPC) Prepared by Yoni Nazarathy, Artem

MATH4406 (Control Theory) Unit 6: The Linear Quadratic Regulator (LQR) and Model Predictive Control (MPC) Prepared by Yoni Nazarathy, Artem MATH4406 (Control Theory) Unit 6: The Linear Quadratic Regulator (LQR) and Model Predictive Control (MPC) Prepared by Yoni Nazarathy, Artem Pulemotov, September 12, 2012 Unit Outline Goal 1: Outline linear

More information

Whither discrete time model predictive control?

Whither discrete time model predictive control? TWCCC Texas Wisconsin California Control Consortium Technical report number 214-1 Whither discrete time model predictive control? Gabriele Pannocchia Dept. of Civil and Industrial Engineering (DICI) Univ.

More information

CONTROL DESIGN FOR SET POINT TRACKING

CONTROL DESIGN FOR SET POINT TRACKING Chapter 5 CONTROL DESIGN FOR SET POINT TRACKING In this chapter, we extend the pole placement, observer-based output feedback design to solve tracking problems. By tracking we mean that the output is commanded

More information

EE221A Linear System Theory Final Exam

EE221A Linear System Theory Final Exam EE221A Linear System Theory Final Exam Professor C. Tomlin Department of Electrical Engineering and Computer Sciences, UC Berkeley Fall 2016 12/16/16, 8-11am Your answers must be supported by analysis,

More information

minimize x subject to (x 2)(x 4) u,

minimize x subject to (x 2)(x 4) u, Math 6366/6367: Optimization and Variational Methods Sample Preliminary Exam Questions 1. Suppose that f : [, L] R is a C 2 -function with f () on (, L) and that you have explicit formulae for

More information

Linear-Quadratic Optimal Control: Full-State Feedback

Linear-Quadratic Optimal Control: Full-State Feedback Chapter 4 Linear-Quadratic Optimal Control: Full-State Feedback 1 Linear quadratic optimization is a basic method for designing controllers for linear (and often nonlinear) dynamical systems and is actually

More information

Part II: Model Predictive Control

Part II: Model Predictive Control Part II: Model Predictive Control Manfred Morari Alberto Bemporad Francesco Borrelli Unconstrained Optimal Control Unconstrained infinite time optimal control V (x 0 )= inf U k=0 [ x k Qx k + u k Ru k]

More information

Outline. Model Predictive Control: Current Status and Future Challenges. Separation of the control problem. Separation of the control problem

Outline. Model Predictive Control: Current Status and Future Challenges. Separation of the control problem. Separation of the control problem Otline Model Predictive Control: Crrent Stats and Ftre Challenges James B. Rawlings Department of Chemical and Biological Engineering University of Wisconsin Madison UCLA Control Symposim May, 6 Overview

More information

1. Type your solutions. This homework is mainly a programming assignment.

1. Type your solutions. This homework is mainly a programming assignment. THE UNIVERSITY OF TEXAS AT SAN ANTONIO EE 5243 INTRODUCTION TO CYBER-PHYSICAL SYSTEMS H O M E W O R K S # 6 + 7 Ahmad F. Taha October 22, 2015 READ Homework Instructions: 1. Type your solutions. This homework

More information

4F3 - Predictive Control

4F3 - Predictive Control 4F3 Predictive Control - Lecture 3 p 1/21 4F3 - Predictive Control Lecture 3 - Predictive Control with Constraints Jan Maciejowski jmm@engcamacuk 4F3 Predictive Control - Lecture 3 p 2/21 Constraints on

More information

Stochastic Optimization with Inequality Constraints Using Simultaneous Perturbations and Penalty Functions

Stochastic Optimization with Inequality Constraints Using Simultaneous Perturbations and Penalty Functions International Journal of Control Vol. 00, No. 00, January 2007, 1 10 Stochastic Optimization with Inequality Constraints Using Simultaneous Perturbations and Penalty Functions I-JENG WANG and JAMES C.

More information

Stability of Parameter Adaptation Algorithms. Big picture

Stability of Parameter Adaptation Algorithms. Big picture ME5895, UConn, Fall 215 Prof. Xu Chen Big picture For ˆθ (k + 1) = ˆθ (k) + [correction term] we haven t talked about whether ˆθ(k) will converge to the true value θ if k. We haven t even talked about

More information

IEOR 265 Lecture 14 (Robust) Linear Tube MPC

IEOR 265 Lecture 14 (Robust) Linear Tube MPC IEOR 265 Lecture 14 (Robust) Linear Tube MPC 1 LTI System with Uncertainty Suppose we have an LTI system in discrete time with disturbance: x n+1 = Ax n + Bu n + d n, where d n W for a bounded polytope

More information

A Crash Course on Kalman Filtering

A Crash Course on Kalman Filtering A Crash Course on Kalman Filtering Dan Simon Cleveland State University Fall 2014 1 / 64 Outline Linear Systems Probability State Means and Covariances Least Squares Estimation The Kalman Filter Unknown

More information

An Adaptive Partition-based Approach for Solving Two-stage Stochastic Programs with Fixed Recourse

An Adaptive Partition-based Approach for Solving Two-stage Stochastic Programs with Fixed Recourse An Adaptive Partition-based Approach for Solving Two-stage Stochastic Programs with Fixed Recourse Yongjia Song, James Luedtke Virginia Commonwealth University, Richmond, VA, ysong3@vcu.edu University

More information

Linear Discrete-time State Space Realization of a Modified Quadruple Tank System with State Estimation using Kalman Filter

Linear Discrete-time State Space Realization of a Modified Quadruple Tank System with State Estimation using Kalman Filter Journal of Physics: Conference Series PAPER OPEN ACCESS Linear Discrete-time State Space Realization of a Modified Quadruple Tank System with State Estimation using Kalman Filter To cite this article:

More information

Penalty and Barrier Methods General classical constrained minimization problem minimize f(x) subject to g(x) 0 h(x) =0 Penalty methods are motivated by the desire to use unconstrained optimization techniques

More information

Learning Model Predictive Control for Iterative Tasks: A Computationally Efficient Approach for Linear System

Learning Model Predictive Control for Iterative Tasks: A Computationally Efficient Approach for Linear System Learning Model Predictive Control for Iterative Tasks: A Computationally Efficient Approach for Linear System Ugo Rosolia Francesco Borrelli University of California at Berkeley, Berkeley, CA 94701, USA

More information

CHAPTER 3 THE MAXIMUM PRINCIPLE: MIXED INEQUALITY CONSTRAINTS. p. 1/73

CHAPTER 3 THE MAXIMUM PRINCIPLE: MIXED INEQUALITY CONSTRAINTS. p. 1/73 CHAPTER 3 THE MAXIMUM PRINCIPLE: MIXED INEQUALITY CONSTRAINTS p. 1/73 THE MAXIMUM PRINCIPLE: MIXED INEQUALITY CONSTRAINTS Mixed Inequality Constraints: Inequality constraints involving control and possibly

More information

Optimal dynamic operation of chemical processes: Assessment of the last 20 years and current research opportunities

Optimal dynamic operation of chemical processes: Assessment of the last 20 years and current research opportunities Optimal dynamic operation of chemical processes: Assessment of the last 2 years and current research opportunities James B. Rawlings Department of Chemical and Biological Engineering April 3, 2 Department

More information

A New Penalty-SQP Method

A New Penalty-SQP Method Background and Motivation Illustration of Numerical Results Final Remarks Frank E. Curtis Informs Annual Meeting, October 2008 Background and Motivation Illustration of Numerical Results Final Remarks

More information

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules Advanced Control State Regulator Scope design of controllers using pole placement and LQ design rules Keywords pole placement, optimal control, LQ regulator, weighting matrixes Prerequisites Contact state

More information

Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science : MULTIVARIABLE CONTROL SYSTEMS by A.

Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science : MULTIVARIABLE CONTROL SYSTEMS by A. Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski Q-Parameterization 1 This lecture introduces the so-called

More information

Part 5: Penalty and augmented Lagrangian methods for equality constrained optimization. Nick Gould (RAL)

Part 5: Penalty and augmented Lagrangian methods for equality constrained optimization. Nick Gould (RAL) Part 5: Penalty and augmented Lagrangian methods for equality constrained optimization Nick Gould (RAL) x IR n f(x) subject to c(x) = Part C course on continuoue optimization CONSTRAINED MINIMIZATION x

More information

Automatic Control II Computer exercise 3. LQG Design

Automatic Control II Computer exercise 3. LQG Design Uppsala University Information Technology Systems and Control HN,FS,KN 2000-10 Last revised by HR August 16, 2017 Automatic Control II Computer exercise 3 LQG Design Preparations: Read Chapters 5 and 9

More information

Information geometry for bivariate distribution control

Information geometry for bivariate distribution control Information geometry for bivariate distribution control C.T.J.Dodson + Hong Wang Mathematics + Control Systems Centre, University of Manchester Institute of Science and Technology Optimal control of stochastic

More information

ESC794: Special Topics: Model Predictive Control

ESC794: Special Topics: Model Predictive Control ESC794: Special Topics: Model Predictive Control Nonlinear MPC Analysis : Part 1 Reference: Nonlinear Model Predictive Control (Ch.3), Grüne and Pannek Hanz Richter, Professor Mechanical Engineering Department

More information

EE C128 / ME C134 Feedback Control Systems

EE C128 / ME C134 Feedback Control Systems EE C128 / ME C134 Feedback Control Systems Lecture Additional Material Introduction to Model Predictive Control Maximilian Balandat Department of Electrical Engineering & Computer Science University of

More information

Optimal Control. Lecture 18. Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen. March 29, Ref: Bryson & Ho Chapter 4.

Optimal Control. Lecture 18. Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen. March 29, Ref: Bryson & Ho Chapter 4. Optimal Control Lecture 18 Hamilton-Jacobi-Bellman Equation, Cont. John T. Wen Ref: Bryson & Ho Chapter 4. March 29, 2004 Outline Hamilton-Jacobi-Bellman (HJB) Equation Iterative solution of HJB Equation

More information

A STABILIZED SQP METHOD: GLOBAL CONVERGENCE

A STABILIZED SQP METHOD: GLOBAL CONVERGENCE A STABILIZED SQP METHOD: GLOBAL CONVERGENCE Philip E. Gill Vyacheslav Kungurtsev Daniel P. Robinson UCSD Center for Computational Mathematics Technical Report CCoM-13-4 Revised July 18, 2014, June 23,

More information

State Estimation using Moving Horizon Estimation and Particle Filtering

State Estimation using Moving Horizon Estimation and Particle Filtering State Estimation using Moving Horizon Estimation and Particle Filtering James B. Rawlings Department of Chemical and Biological Engineering UW Math Probability Seminar Spring 2009 Rawlings MHE & PF 1 /

More information

Outline. 1 Full information estimation. 2 Moving horizon estimation - zero prior weighting. 3 Moving horizon estimation - nonzero prior weighting

Outline. 1 Full information estimation. 2 Moving horizon estimation - zero prior weighting. 3 Moving horizon estimation - nonzero prior weighting Outline Moving Horizon Estimation MHE James B. Rawlings Department of Chemical and Biological Engineering University of Wisconsin Madison SADCO Summer School and Workshop on Optimal and Model Predictive

More information

Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction

Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction Lecture 8 Receding Horizon Temporal Logic Planning & Finite-State Abstraction Ufuk Topcu Nok Wongpiromsarn Richard M. Murray AFRL, 26 April 2012 Contents of the lecture: Intro: Incorporating continuous

More information

Moving Horizon Estimation (MHE)

Moving Horizon Estimation (MHE) Moving Horizon Estimation (MHE) James B. Rawlings Department of Chemical and Biological Engineering University of Wisconsin Madison Insitut für Systemtheorie und Regelungstechnik Universität Stuttgart

More information

Model predictive control of industrial processes. Vitali Vansovitš

Model predictive control of industrial processes. Vitali Vansovitš Model predictive control of industrial processes Vitali Vansovitš Contents Industrial process (Iru Power Plant) Neural networ identification Process identification linear model Model predictive controller

More information

Alberto Bressan. Department of Mathematics, Penn State University

Alberto Bressan. Department of Mathematics, Penn State University Non-cooperative Differential Games A Homotopy Approach Alberto Bressan Department of Mathematics, Penn State University 1 Differential Games d dt x(t) = G(x(t), u 1(t), u 2 (t)), x(0) = y, u i (t) U i

More information

Aalborg Universitet. Published in: Proceedings of European Control Conference ECC' 07. Publication date: 2007

Aalborg Universitet. Published in: Proceedings of European Control Conference ECC' 07. Publication date: 2007 Aalborg Universitet Model Predictive Control of Thermal Comfort and Indoor Air Quality in Livestock Stable Wu, Zhuang; Rajamani, Murali R; Rawlings, James B; Stoustrup, Jakob Published in: Proceedings

More information

NEW DEVELOPMENTS IN PREDICTIVE CONTROL FOR NONLINEAR SYSTEMS

NEW DEVELOPMENTS IN PREDICTIVE CONTROL FOR NONLINEAR SYSTEMS NEW DEVELOPMENTS IN PREDICTIVE CONTROL FOR NONLINEAR SYSTEMS M. J. Grimble, A. Ordys, A. Dutka, P. Majecki University of Strathclyde Glasgow Scotland, U.K Introduction Model Predictive Control (MPC) is

More information

LQ Control of a Two Wheeled Inverted Pendulum Process

LQ Control of a Two Wheeled Inverted Pendulum Process Uppsala University Information Technology Dept. of Systems and Control KN,HN,FS 2000-10 Last rev. September 12, 2017 by HR Reglerteknik II Instruction to the laboratory work LQ Control of a Two Wheeled

More information

Moving Horizon Control and Estimation of Livestock Ventilation Systems and Indoor Climate

Moving Horizon Control and Estimation of Livestock Ventilation Systems and Indoor Climate Proceedings of the 17th World Congress The International Federation of Automatic Control Seoul, Korea, July -11, Moving Horizon Control and Estimation of Livestock Ventilation Systems and Indoor Climate

More information

Economic Nonlinear Model Predictive Control

Economic Nonlinear Model Predictive Control Economic Nonlinear Model Predictive Control Timm Faulwasser Karlsruhe Institute of Technology (KIT) timm.faulwasser@kit.edu Lars Grüne University of Bayreuth lars.gruene@uni-bayreuth.de Matthias A. Müller

More information

Giulio Betti, Marcello Farina and Riccardo Scattolini

Giulio Betti, Marcello Farina and Riccardo Scattolini 1 Dipartimento di Elettronica e Informazione, Politecnico di Milano Rapporto Tecnico 2012.29 An MPC algorithm for offset-free tracking of constant reference signals Giulio Betti, Marcello Farina and Riccardo

More information

Linear Quadratic Zero-Sum Two-Person Differential Games Pierre Bernhard June 15, 2013

Linear Quadratic Zero-Sum Two-Person Differential Games Pierre Bernhard June 15, 2013 Linear Quadratic Zero-Sum Two-Person Differential Games Pierre Bernhard June 15, 2013 Abstract As in optimal control theory, linear quadratic (LQ) differential games (DG) can be solved, even in high dimension,

More information

Application of Autocovariance Least-Squares Methods to Laboratory Data

Application of Autocovariance Least-Squares Methods to Laboratory Data 2 TWMCC Texas-Wisconsin Modeling and Control Consortium 1 Technical report number 23-3 Application of Autocovariance Least-Squares Methods to Laboratory Data Brian J. Odelson, Alexander Lutz, and James

More information

1 Kalman Filter Introduction

1 Kalman Filter Introduction 1 Kalman Filter Introduction You should first read Chapter 1 of Stochastic models, estimation, and control: Volume 1 by Peter S. Maybec (available here). 1.1 Explanation of Equations (1-3) and (1-4) Equation

More information

Linear & nonlinear classifiers

Linear & nonlinear classifiers Linear & nonlinear classifiers Machine Learning Hamid Beigy Sharif University of Technology Fall 1396 Hamid Beigy (Sharif University of Technology) Linear & nonlinear classifiers Fall 1396 1 / 44 Table

More information

Control engineering sample exam paper - Model answers

Control engineering sample exam paper - Model answers Question Control engineering sample exam paper - Model answers a) By a direct computation we obtain x() =, x(2) =, x(3) =, x(4) = = x(). This trajectory is sketched in Figure (left). Note that A 2 = I

More information

Practical Implementations of Advanced Process Control for Linear Systems

Practical Implementations of Advanced Process Control for Linear Systems Downloaded from orbitdtudk on: Jul 01, 2018 Practical Implementations of Advanced Process Control for Linear Systems Knudsen, Jørgen K H ; Huusom, Jakob Kjøbsted; Jørgensen, John Bagterp Published in:

More information

Sparse quadratic regulator

Sparse quadratic regulator 213 European Control Conference ECC) July 17-19, 213, Zürich, Switzerland. Sparse quadratic regulator Mihailo R. Jovanović and Fu Lin Abstract We consider a control design problem aimed at balancing quadratic

More information

2.3 Linear Programming

2.3 Linear Programming 2.3 Linear Programming Linear Programming (LP) is the term used to define a wide range of optimization problems in which the objective function is linear in the unknown variables and the constraints are

More information

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30

Optimization. Escuela de Ingeniería Informática de Oviedo. (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30 Optimization Escuela de Ingeniería Informática de Oviedo (Dpto. de Matemáticas-UniOvi) Numerical Computation Optimization 1 / 30 Unconstrained optimization Outline 1 Unconstrained optimization 2 Constrained

More information

Control Systems Design, SC4026. SC4026 Fall 2010, dr. A. Abate, DCSC, TU Delft

Control Systems Design, SC4026. SC4026 Fall 2010, dr. A. Abate, DCSC, TU Delft Control Systems Design, SC426 SC426 Fall 2, dr A Abate, DCSC, TU Delft Lecture 5 Controllable Canonical and Observable Canonical Forms Stabilization by State Feedback State Estimation, Observer Design

More information

Support Vector Machine (continued)

Support Vector Machine (continued) Support Vector Machine continued) Overlapping class distribution: In practice the class-conditional distributions may overlap, so that the training data points are no longer linearly separable. We need

More information

Chapter 2 Optimal Control Problem

Chapter 2 Optimal Control Problem Chapter 2 Optimal Control Problem Optimal control of any process can be achieved either in open or closed loop. In the following two chapters we concentrate mainly on the first class. The first chapter

More information

8.3 Partial Fraction Decomposition

8.3 Partial Fraction Decomposition 8.3 partial fraction decomposition 575 8.3 Partial Fraction Decomposition Rational functions (polynomials divided by polynomials) and their integrals play important roles in mathematics and applications,

More information

4TE3/6TE3. Algorithms for. Continuous Optimization

4TE3/6TE3. Algorithms for. Continuous Optimization 4TE3/6TE3 Algorithms for Continuous Optimization (Algorithms for Constrained Nonlinear Optimization Problems) Tamás TERLAKY Computing and Software McMaster University Hamilton, November 2005 terlaky@mcmaster.ca

More information

Algorithms for Constrained Optimization

Algorithms for Constrained Optimization 1 / 42 Algorithms for Constrained Optimization ME598/494 Lecture Max Yi Ren Department of Mechanical Engineering, Arizona State University April 19, 2015 2 / 42 Outline 1. Convergence 2. Sequential quadratic

More information

Model Predictive Control

Model Predictive Control Model Predictive Control Linear time-varying and nonlinear MPC Alberto Bemporad http://cse.lab.imtlucca.it/~bemporad 2018 A. Bemporad - "Model Predictive Control" 1/30 Course structure Linear model predictive

More information

Inexact Newton Methods and Nonlinear Constrained Optimization

Inexact Newton Methods and Nonlinear Constrained Optimization Inexact Newton Methods and Nonlinear Constrained Optimization Frank E. Curtis EPSRC Symposium Capstone Conference Warwick Mathematics Institute July 2, 2009 Outline PDE-Constrained Optimization Newton

More information

Topic # Feedback Control Systems

Topic # Feedback Control Systems Topic #17 16.31 Feedback Control Systems Deterministic LQR Optimal control and the Riccati equation Weight Selection Fall 2007 16.31 17 1 Linear Quadratic Regulator (LQR) Have seen the solutions to the

More information

CS6375: Machine Learning Gautam Kunapuli. Support Vector Machines

CS6375: Machine Learning Gautam Kunapuli. Support Vector Machines Gautam Kunapuli Example: Text Categorization Example: Develop a model to classify news stories into various categories based on their content. sports politics Use the bag-of-words representation for this

More information

Model Predictive Controller of Boost Converter with RLE Load

Model Predictive Controller of Boost Converter with RLE Load Model Predictive Controller of Boost Converter with RLE Load N. Murali K.V.Shriram S.Muthukumar Nizwa College of Vellore Institute of Nizwa College of Technology Technology University Technology Ministry

More information

Lecture: Convex Optimization Problems

Lecture: Convex Optimization Problems 1/36 Lecture: Convex Optimization Problems http://bicmr.pku.edu.cn/~wenzw/opt-2015-fall.html Acknowledgement: this slides is based on Prof. Lieven Vandenberghe s lecture notes Introduction 2/36 optimization

More information

Convex Optimization and SVM

Convex Optimization and SVM Convex Optimization and SVM Problem 0. Cf lecture notes pages 12 to 18. Problem 1. (i) A slab is an intersection of two half spaces, hence convex. (ii) A wedge is an intersection of two half spaces, hence

More information

Linear-Quadratic-Gaussian (LQG) Controllers and Kalman Filters

Linear-Quadratic-Gaussian (LQG) Controllers and Kalman Filters Linear-Quadratic-Gaussian (LQG) Controllers and Kalman Filters Emo Todorov Applied Mathematics and Computer Science & Engineering University of Washington Winter 204 Emo Todorov (UW) AMATH/CSE 579, Winter

More information

Infeasibility Detection and an Inexact Active-Set Method for Large-Scale Nonlinear Optimization

Infeasibility Detection and an Inexact Active-Set Method for Large-Scale Nonlinear Optimization Infeasibility Detection and an Inexact Active-Set Method for Large-Scale Nonlinear Optimization Frank E. Curtis, Lehigh University involving joint work with James V. Burke, University of Washington Daniel

More information

1. Find the solution of the following uncontrolled linear system. 2 α 1 1

1. Find the solution of the following uncontrolled linear system. 2 α 1 1 Appendix B Revision Problems 1. Find the solution of the following uncontrolled linear system 0 1 1 ẋ = x, x(0) =. 2 3 1 Class test, August 1998 2. Given the linear system described by 2 α 1 1 ẋ = x +

More information