Principles of Optimal Control Spring 2008

Similar documents
Introduction to Model Predictive Control. Dipartimento di Elettronica e Informazione

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

MODEL PREDICTIVE CONTROL FUNDAMENTALS

Further results on Robust MPC using Linear Matrix Inequalities

4F3 - Predictive Control

On robustness of suboptimal min-max model predictive control *

Decentralized and distributed control

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

Dynamic Model Predictive Control

ROBUST CONSTRAINED PREDICTIVE CONTROL OF A 3DOF HELICOPTER MODEL WITH EXTERNAL DISTURBANCES

Adaptive Nonlinear Model Predictive Control with Suboptimality and Stability Guarantees

OPTIMAL CONTROL WITH DISTURBANCE ESTIMATION

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

MPC for tracking periodic reference signals

arxiv: v1 [cs.sy] 2 Oct 2018

On the Inherent Robustness of Suboptimal Model Predictive Control

FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES. Danlei Chu, Tongwen Chen, Horacio J. Marquez

A Globally Stabilizing Receding Horizon Controller for Neutrally Stable Linear Systems with Input Constraints 1

INPUT FEEDBACK CONTROL OF MANIPULATED VARIABLES IN MODEL PREDICTIVE CONTROL. Xionglin Luo, Minghui Wei, Feng Xu, Xiaolong Zhou and Shubin Wang

LINEAR TIME VARYING TERMINAL LAWS IN MPQP

A Stable Block Model Predictive Control with Variable Implementation Horizon

Finite horizon robust model predictive control with terminal cost constraints

An Introduction to Model-based Predictive Control (MPC) by

Event-Triggered Model Predictive Control of Discrete-Time Linear Systems Subject to Disturbances

Parallel Move Blocking Model Predictive Control

4F3 - Predictive Control

COMPUTATIONAL DELAY IN NONLINEAR MODEL PREDICTIVE CONTROL. Rolf Findeisen Frank Allgöwer

Fast Model Predictive Control with Soft Constraints

Predictive control of hybrid systems: Input-to-state stability results for sub-optimal solutions

IMPROVED MPC DESIGN BASED ON SATURATING CONTROL LAWS

Disturbance Modeling and State Estimation for Predictive Control with Different State-Space Process Models

Model Predictive Controller of Boost Converter with RLE Load

arxiv: v1 [cs.sy] 28 May 2013

Model Predictive Control of Nonlinear Systems: Stability Region and Feasible Initial Control

Model Predictive Control For Interactive Thermal Process

Robustly stable feedback min-max model predictive control 1

Part II: Model Predictive Control

Course on Model Predictive Control Part II Linear MPC design

Giulio Betti, Marcello Farina and Riccardo Scattolini

Enlarged terminal sets guaranteeing stability of receding horizon control

Automatic Control 2. Model reduction. Prof. Alberto Bemporad. University of Trento. Academic year

ESTIMATES ON THE PREDICTION HORIZON LENGTH IN MODEL PREDICTIVE CONTROL

CONTROL SYSTEMS, ROBOTICS, AND AUTOMATION Vol. XI Model-Based Predictive Control - Edoardo Mosca

Stochastic Tube MPC with State Estimation

Optimal and suboptimal event-triggering in linear model predictive control

Prashant Mhaskar, Nael H. El-Farra & Panagiotis D. Christofides. Department of Chemical Engineering University of California, Los Angeles

Nonlinear Reference Tracking with Model Predictive Control: An Intuitive Approach

CONSTRAINED MODEL PREDICTIVE CONTROL ON CONVEX POLYHEDRON STOCHASTIC LINEAR PARAMETER VARYING SYSTEMS. Received October 2012; revised February 2013

6.241 Dynamic Systems and Control

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

PSO Based Predictive Nonlinear Automatic Generation Control

Disturbance Rejection and Set-point Tracking of Sinusoidal Signals using Generalized Predictive Control

EE C128 / ME C134 Feedback Control Systems

Robust stability in predictive control with soft constraints

Multirate Predictive Control of a 3DOF Helicopter Model

Postface to Model Predictive Control: Theory and Design

Model Predictive Control of Magnetic Automotive Actuators

Optimizing Control of Hot Blast Stoves in Staggered Parallel Operation

A Robust MPC/ISM Hierarchical Multi-Loop Control Scheme for Robot Manipulators

Constrained Linear Quadratic Optimal Control

Research Article Self-Triggered Model Predictive Control for Linear Systems Based on Transmission of Control Input Sequences

Control System Design

On the Inherent Robustness of Suboptimal Model Predictive Control

An SVD based strategy for receding horizon control of input constrained linear systems

Robust Model Predictive Control for Autonomous Vehicle/Self-Driving Cars

A CHANCE CONSTRAINED ROBUST MPC AND APPLICATION TO HOT ROLLING MILLS

Application of predictive control to a toy helicopter

JUSTIFICATION OF INPUT AND OUTPUT CONSTRAINTS INCORPORATION INTO PREDICTIVE CONTROL DESIGN

Predictive Control of Gyroscopic-Force Actuators for Mechanical Vibration Damping

Improved MPC Design based on Saturating Control Laws

EFFECTIVE DUAL MODE FUZZY DMC ALGORITHMS WITH ON LINE QUADRATIC OPTIMIZATION AND GUARANTEED STABILITY

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

16.30 Estimation and Control of Aerospace Systems

Decentralized and distributed control

In search of the unreachable setpoint

Nonlinear Model Predictive Control for Periodic Systems using LMIs

Online robust tube-based MPC for time-varying systems: a practical approach

4F3 - Predictive Control

Topic # Feedback Control Systems

ASSESSMENT OF DECENTRALIZED MODEL PREDICTIVE CONTROL TECHNIQUES FOR POWER NETWORKS

Predictive Control of a Single Link Flexible Joint Robot Based on Neural Network and Feedback Linearization

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

Robust Explicit MPC Based on Approximate Multi-parametric Convex Programming

Stability analysis of constrained MPC with CLF applied to discrete-time nonlinear system

Robust output feedback model predictive control of constrained linear systems

Linear Offset-Free Model Predictive Control

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

Constrained Control of Uncertain, Time-varying Linear Discrete-Time Systems Subject to Bounded Disturbances

Linear and Nonlinear MPC for track following in the design of HDD servo sytems

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

Controlling Large-Scale Systems with Distributed Model Predictive Control

MODEL PREDICTIVE SLIDING MODE CONTROL FOR CONSTRAINT SATISFACTION AND ROBUSTNESS

Integrator Backstepping using Barrier Functions for Systems with Multiple State Constraints

Linear Systems. Manfred Morari Melanie Zeilinger. Institut für Automatik, ETH Zürich Institute for Dynamic Systems and Control, ETH Zürich

Efficient robust optimization for robust control with constraints Paul Goulart, Eric Kerrigan and Danny Ralph

Temperature Control of a Mold Model using Multiple-input Multiple-output Two Degree-of-freedom Generalized Predictive Control

Model Predictive Control

PREDICTIVE COMPUTED-TORQUE CONTROL OF A PUMA 560 MANIPULATOR ROBOT. Victor M. Becerra, Steven Cook and Jiamei Deng

Available online: 29 Jun 2011

EEE582 Homework Problems

Transcription:

MIT OpenCourseWare http://ocw.mit.edu 6.33 Principles of Optimal Control Spring 8 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

6.33 Lecture 6 Model Predictive Control Allgower, F., and A. Zheng, Nonlinear Model Predictive Control, Springer-Verlag,. Camacho, E., and C. Bordons, Model Predictive Control, Springer-Verlag, 999. Kouvaritakis, B., and M. Cannon, Non-Linear Predictive Control: Theory & Practice, IEE Publishing,. Maciejowski, J., Predictive Control with Constraints, Pearson Education POD,. Rossiter, J. A., Model-Based Predictive Control: A Practical Approach, CRC Press, 3.

Spr 8 6.33 6 MPC Planning in Lecture 8 was effectively open-loop Designed the control input sequence u(t) using an assumed model and set of constraints. Issue is that with modeling error and/or disturbances, these inputs will not necessarily generate the desired system response. Need a closed-loop strategy to compensate for these errors. Approach called Model Predictive Control Also known as receding horizon control Basic strategy: At time k, use knowledge of the system model to design an input sequence u(k k), u(k + k), u(k + k), u(k + 3 k),..., u(k + N k) over a finite horizon N from the current state x(k) Implement a fraction of that input sequence, usually just first step. Repeat for time k + at state x(k + ) Reference "Optimal" future outputs Future outputs, no control Old outputs Old inputs "Optimal" future inputs Future inputs, no control Past Present Future Time MPC: basic idea (from Bo Wahlberg) Figure by MIT OpenCourseWare. June 8, 8

Spr 8 6.33 6 Note that the control algorithm is based on numerically solving an optimization problem at each step Typically a constrained optimization Main advantage of MPC: Explicitly accounts for system constraints. Doesn t just design a controller to keep the system away from them. Can easily handle nonlinear and time-varying plant dynamics, since the controller is explicitly a function of the model that can be modified in real-time (and plan time) Many commercial applications that date back to the early 97 s, see http://www.che.utexas.edu/~qin/cpcv/cpcv.html Much of this work was in process control - very nonlinear dynamics, but not particularly fast. As computer speed has increased, there has been renewed interest in applying this approach to applications with faster time-scale: trajectory design for aerospace systems. Ref Trajectory Generation u d xd Noise u du P Plant Feedback Compensation Output Ref Trajectory Generation Noise u P Plant Output Implementation architectures for MPC (from Mark Milam) Figure by MIT OpenCourseWare. June 8, 8

Basic Formulation Spr 8 6.33 6 3 Given a set of plant dynamics (assume linear for now) and a cost function x(k + ) = Ax(k) + Bu(k) z(k) = Cx(k) N J = { z(k + j k) Rzz + u(k + j k) Ruu } + F (x(k + N k)) j= z(k + j k) Rxx is just a short hand for a weighted norm of the state, and to be consistent with earlier work, would take z(k + j k) Rzz = z(k + j k) T R zz z(k + j k) F (x(k + N k)) is a terminal cost function Note that if N, and there are no additional constraints on z or u, then this is just the discrete LQR problem solved on page 3. Note that the original LQR result could have been written as just an input control sequence (feedforward), but we choose to write it as a linear state feedback. In the nominal case, there is no difference between these two implementation approaches (feedforward and feedback) But with modeling errors and disturbances, the state feedback form is much less sensitive. This is the main reason for using feedback. Issue: When limits on x and u are added, we can no longer find the general solution in analytic form must solve it numerically. June 8, 8

Spr 8 6.33 6 However, solving for a very long input sequence: Does not make sense if one expects that the model is wrong and/or there are disturbances, because it is unlikely that the end of the plan will be implemented (a new one will be made by then) Longer plans have more degrees of freedom and take much longer to compute. Typically design using a small N short plan that does not necessarily achieve all of the goals. Classical hard question is how large should N be? If plan doesn t reach the goal, then must develop an estimate of the remaining cost-to-go Typical problem statement: for finite N (F = ) s.t. N min J = { z(k + j k) Rzz + u(k + j k) Ruu } u j= x(k + j + k) = Ax(k + j k) + Bu(k + j k) x(k k) x(k) z(k + j k) = Cx(k + j k) and u(k + j k) u m June 8, 8

Spr 8 6.33 6 5 Consider converting this into a more standard optimization problem. z(k k) = Cx(k k) z(k + k) = Cx(k + k) = C(Ax(k k) + Bu(k k)) = CAx(k k) + CBu(k k) z(k + k) = Cx(k + k) = C(Ax(k + k) + Bu(k + k)) = CA(Ax(k k) + Bu(k k)) + CBu(k + k) = CA x(k k) + CABu(k k) + CBu(k + k). z(k + N k) = CA N x(k k) + CA N Bu(k k) + +CBu(k + (N ) k) Combine these equations into the following: z(k k) C z(k + k) CA z(k + k) = CA x(k k).. z(k + N k) CA N CB + CAB CB. CA N B CA N B CA N 3 B CB u(k k) u(k + k). u(k + N k) June 8, 8

Spr 8 6.33 6 6 Now define z(k k) u(k k) Z(k). U(k). z(k + N k) u(k + N k) then, with x(k k) = x(k) Note that Z(k) = Gx(k) + HU(k) N z(k + j k) T R zz z(k + j k) = Z(k) T W Z(k) j= with an obvious definition of the weighting matrix W Thus Z(k) T W Z(k) + U(k) T W U(k) = (Gx(k) + HU(k)) T W (Gx(k) + HU(k)) + U(k) T W U(k) = x(k) T H x(k) + H T U(k) + U(k) T H 3 U(k) where H = G T W G, H = (x(k) T G T W H), H 3 = (H T W H + W ) Then the MPC problem can be written as: min J = H T U(k) + U(k) T H 3 U(k) U(k) [ ] I s.t. N U(k) u I m N June 8, 8

Spr 8 Toolboxes 6.33 6 7 Key point: the MPC problem is now in the form of a standard quadratic program for which standard and efficient codes exist. QUADPROG Quadratic programming. % X=QUADPROG(H,f,A,b) attempts to solve the % quadratic programming problem: min.5*x *H*x + f *x subject to: A*x <= b x X=QUADPROG(H,f,A,b,Aeq,beq) solves the problem % above while additionally satisfying the equality% constraints Aeq*x = beq. Several Matlab toolboxes exist for testing these ideas MPC toolbox by Morari and Ricker extensive analysis and design tools. MPCtools 3 enables some MPC simulation and is free www.control.lth.se/user/johan.akesson/mpctools/ 3 Johan Akesson: MPCtools. - Reference Manual. Technical report ISRN LUTFD/TFRT 763 SE, Department of Automatic Control, Lund Institute of Technology, Sweden, January 6. June 8, 8

MPC Observations Spr 8 6.33 6 8 Current form assumes that full state is available - can hookup with an estimator Current form assumes that we can sense and apply corresponding control immediately With most control systems, that is usually a reasonably safe assumption Given that we must re-run the optimization, probably need to account for this computational delay - different form of the discrete model - see F&P (chapter ) If the constraints are not active, then the solution to the QP is that U(K) = H H 3 which can be written as: [ ] u(k k) =... (H T W H + W ) H T W Gx(k) = Kx(k) which is just a state feedback controller. Can apply this gain to the system and check the eigenvalues. June 8, 8

Spr 8 6.33 6 9 What can we say about the stability of MPC when the constraints are active? 33 Depends a lot on the terminal cost and the terminal constraints. 3 Classic result: 35 Consider a MPC algorithm for a linear system with constraints. Assume that there are terminal constraints: x(k + N k) = for predicted state x u(k + N k) = for computed future control u Then if the optimization problem is feasible at time k, x = is stable. Proof: Can use the performance index J as a Lyapunov function. Assume there exists a feasible solution at time k and cost J k Can use that solution to develop a feasible candidate at time k +, by simply adding u(k + N + ) = and x(k + N + ) =. Key point: can estimate the candidate controller performance J k+ = J k { z(k k) Rzz + u(k k) Ruu } J k { z(k k) Rzz } This candidate is suboptimal for the MPC algorithm, hence J decreases even faster J k+ J k+ Which says that J decreases if the state cost is non-zero (observability assumptions) but J is lower bounded by zero. Mayne et al. [] provides excellent review of other strategies for proving stability different terminal cost and constraint sets 33 Tutorial: model predictive control technology, Rawlings, J.B. American Control Conference, 999. pp. 66-676 3 Mayne, D.Q., J.B. Rawlings, C.V. Rao and P.O.M. Scokaert, Constrained Model Predictive Control: Stability and Optimality, Automatica, 36, 789-8 (). 35 A. Bemporad, L. Chisci, E. Mosca: On the stabilizing property of SIORHC, Automatica, vol. 3, n., pp. 3-5, 99. June 8, 8

Spr 8 Example: Helicopter 6.33 6 Consider a system similar to the Quansar helicopter 36 θ p θ r θ e Figure by MIT OpenCourseWare. There are control inputs voltage to each fan V f, V b A simple dynamics model is that: θ e = K (V f + V b ) T g /J e θ r = K sin(θ p ) θ p = K 3 (V f V b ) and there are physical limits on the elevation and pitch:.5 θ e.6 θ p Model can be linearized and then discretized T s =.sec. 8 6 State Control Time 5 5 5 N Figure 6.3: Response Summary 36 ISSN 8536 ISRN LUTFD/TFRT- -763- -SE MPCtools. Reference Manual Johan Akesson Department of Automatic Control Lund Institute of Technology January 6 June 8, 8

Spr 8..3 3 6.33 6 Elevation [rad].. Rotation [rad]. 3 3 Pitch [rad].5.5 3 t [s] V f, V b [V] 3 3 t [s]..3 Figure 6.: Response with N = 3 3 Elevation [rad].. Rotation [rad]. 3 3 Pitch [rad].5.5 3 t [s] V f, V b [V] 3 3 t [s]..3 Figure 6.5: Response with N = 3 Elevation [rad].. Rotation [rad]. 3 3 Pitch [rad].5.5 3 t [s] V f, V b [V] 3 3 t [s] June 8, 8 Figure 6.6: Response with N = 5