Explicit MPC in Mechatronics Industry:

Similar documents
Controlling Hybrid Systems

Explicit Model Predictive Control by A. Bemporad Controllo di Processo e dei Sistemi di Produzione A.a. 2008/09 1/54

Complexity Reduction of Explicit Model Predictive Control via Combining Separator Function and Binary Search Trees

Outline. Robust MPC and multiparametric convex programming. A. Bemporad C. Filippi. Motivation: Robust MPC. Multiparametric convex programming

Introduction to Control Systems Design

qpoases - Online Active Set Strategy for Fast Linear MPC

Approximate nonlinear explicit MPC based on reachability analysis

A set-based approach to robust control and verification of piecewise affine systems subject to safety specifications

Efficient Mode Enumeration of Compositional Hybrid Models

Multi-Parametric Toolbox 3.0

Modeling and Control of Hybrid Systems

Robotics: Science and Systems

Mission Overview Cal Poly s Design Current and future work

New paradigm for MEMS+IC Co-development

Real-time MPC Stability through Robust MPC design

Piecewise Quadratic Optimal Control

RELATIVELY OPTIMAL CONTROL: THE STATIC SOLUTION

Efficient implementation of Constrained Min-Max Model Predictive Control with Bounded Uncertainties

Model Predictive Control System Design and Implementation Using MATLAB

Closing the loop in engine control by virtual sensors

Infinite Time Optimal Control of Hybrid Systems with a Linear Performance Index

Embedded Optimization for Mixed Logic Dynamical Systems

WORHP Lab The Graphical User Interface for Optimisation and Optimal Control

Simplification of Explicit MPC Feedback Laws via Separation Functions

EEMBC s Automotive/Industrial Microprocessor Benchmarks. June 4, 2004

Partitioned Control Challenge Problem

Presentation Outline

The Facet-to-Facet Property of Solutions to Convex Parametric Quadratic Programs and a new Exploration Strategy

Explicit Nonlinear Model Predictive Control of the Air Path of a Turbocharged Spark-Ignited Engine

Optimization Techniques for Design Space Exploration

On the Complexity of Explicit MPC Laws

Control Systems. Introduction to Control System.

SHIP heading control, also known as course keeping, has

Workflow for Control System Design and Implementation

Robust Control Design. for the VEGA Launch Vehicle. during atmospheric flight

Slovak University of Technology in Bratislava Institute of Information Engineering, Automation, and Mathematics PROCEEDINGS

Research Topics (Baotic, Bemporad, Borrelli, Ferrari-Trecate, Geyer, Grieder, Mignone, Torrisi, Morari)

Fast Model Predictive Control for Magnetic Plasma Control Kick-off Meeting. Samo Gerkšič Jožef Stefan Institute

Understanding Concepts of Optimization and Optimal Control with WORHP Lab

Concurrent Design of Embedded Control Software

Real-time Model Predictive Control

A Longitudinal Control Algorithm for Smart Cruise Control with Virtual Parameters

GNCDE: AN INTEGRATED GNC DEVELOPMENT ENVIRONMENT FOR ATTITUDE AND ORBIT CONTROL SYSTEMS

On the facet-to-facet property of solutions to convex parametric quadratic programs

Adaptive QoS Control Beyond Embedded Systems

Tracking and compression techniques

Mechatronic Design Approach D R. T A R E K A. T U T U N J I P H I L A D E L P H I A U N I V E R S I T Y, J O R D A N

Networked Cyber-Physical Systems

Instantaneous Cylinder Pressure Estimation

SCT 3000 Smartline Configuration Toolkit Model SCT 101 Specifications

Introduction to Computational Mathematics

DARPA Investments in GEO Robotics

Algorithm Enhancements for the SS-411 Digital Sun Sensor

Pattern Recognition Technique Based Active Set QP Strategy Applied to MPC for a Driving Cycle Test

Hvordan tænker vi uddannelse i industriel IT?

Improving Reliability of Partition Computation in Explicit MPC with MPT Toolbox

Trajectory Optimization for. Robots

Controller Calibration using a Global Dynamic Engine Model

Model Based Systems Engineering Engine Control: from concept to validation. Jan Smolders Technical Account Manager

Recent developments in simulation, optimization and control of flexible multibody systems

How Combustion CFD Makes Design More Robust and Reduces Costs

System Theory, Modeling and Controls

1st International Round Table on Intelligent Control for Space Missions

Development of a Ground Based Cooperating Spacecraft Testbed for Research and Education

Flexible Visual Inspection. IAS-13 Industrial Forum Horizon 2020 Dr. Eng. Stefano Tonello - CEO

Motivation Thermal Modeling

Machine Learning for Software Engineering

Applying Supervised Learning

Knowledge-based Systems for Industrial Applications

Responsive Flight Software Development & Verification Techniques for Small Satellites

A NOUVELLE MOTION STATE-FEEDBACK CONTROL SCHEME FOR RIGID ROBOTIC MANIPULATORS

EARLY INTERIOR-POINT METHODS

Efficient On-Line Computation of Constrained Optimal Control

Keck-Voon LING School of Electrical and Electronic Engineering Nanyang Technological University (NTU), Singapore

State of the Art Motion Control Solutions for 450mm Wafer Inspection Jason Goerges

Hardware Implementation of a Model Predictive Controller for Hybrid Systems

Fluent User Services Center

Computation of Voronoi Diagrams and Delaunay Triangulation via Parametric Linear Programming

Model Predictive Control Design: New Trends and Tools

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

EE282 Computer Architecture. Lecture 1: What is Computer Architecture?

LISA - Status at ESA. Oliver Jennrich LISA Project Scientist, ESA

Verification, Validation, and Test with Model-Based Design

Computation of the Constrained Infinite Time Linear Quadratic Optimal Control Problem

Exploiting a database to predict the in-flight stability of the F-16

VIDEO COMPRESSION STANDARDS

Attitude Control for Small Satellites using Control Moment Gyros

Demonstration of the DoE Process with Software Tools

Hybrid Model Predictive Control Application Towards Optimal Semi-Active Suspension

Handling Challenges of Multi-Core Technology in Automotive Software Engineering

Real Time Testing of PMSM Controller using xpc Target Turnkey solution

Outline. CGAL par l exemplel. Current Partners. The CGAL Project.

Continuous Curvature Path Planning for Semi-Autonomous Vehicle Maneuvers Using RRT*

Leveraging Integrated Concurrent Engineering for vehicle dynamics simulation. Manuel CHENE MSC.Software France

ME 555: Distributed Optimization

CHAPTER 1 INTRODUCTION

Experimental Verification of Stability Region of Balancing a Single-wheel Robot: an Inverted Stick Model Approach

Commercial Implementations of Optimization Software and its Application to Fluid Dynamics Problems

CONTROL MOMENT GYRO CMG S : A compact CMG product for agile satellites in the one ton class

Real-Time Optimization for Fast Nonlinear MPC: Algorithms, Theory, and Applications

Transcription:

European Control Conference, July 8 th, 23 Zurich, CH MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts Explicit MPC in Mechatronics Industry: Technology Transfer Potential and Limitations Dr. Stefano Di Cairano, Mechatronics, MERL MERL

Mechatronics Industry Applications Factory automation Building systems Automotive Transportation systems Constrained, multivariable, optimal control problems MPC a natural candidate but computing resources are limited MERL7/8/23 /2

MPC in Mass Production Applications We would like to solve: at high rates (>Hz) in: low computing power, fixed-point arithmetic (some), limited RAM, small ROM, low power consumption MERL7/8/23 2/2

Smart Algorithm Balance Sheet For mass production devices the balance sheet is fundamental Scenario: M devices/year, 5 years. CPU++ = +$ 5M$ (parts) smart algorithm 5M$ (5 researchers) Result: 9% cost reduction (and happy researchers) MERL7/8/23 3/2

Analysis, Verification, Transfer but in mass production applications there is more application runs unsupervised Simulation model, system specs. Prediction model design Prediction model based on simulation model Model order, Specs Model and specs assessment. Horizon, perf. weights. Controller design Controller design based on simulation model all admissible operating conditions will occur (sooner or later) Model params, perf. weights, filter weights. Perf. weights, filter weights. Performance and complexity assessment. Sensor in-the-loop. Controller Refinement Prediction model and controller refined by experimental data. Estimator tuning. Sensitivity assessment. Controller in-the-loop. Validation On-the-car calibration. Robustness assessment. researchers are not in charge for final product implementation Need a final algorithm: -analyzable -verifiable -understandable MERL7/8/23 4/2

Impact of Explict MPC for MPC Implementation Simple solution of a complex problem (by a complex algorithm) Bemporad, Morari, Borrelli, Kvasnica, Jones, that can run in minimal hardware reg=; r=; notfound=true while(r<=nr & notfound){ r++; i=; while(i<nineq[r]&& allsat){ if(h[r][i][]x[]+ +H[r][i][n]x[n]> K[r][i]) allsat=false MERL7/8/23 5/2 } i++;} if(allsat){ reg = r; notfound = False;} for(i=;i++;i<=n) /* Region search */ /* Input computation */ u[i]=f[reg][i][]x[]+ +F[reg][i][n]x[n]+ G[reg][i]

Explicit MPC Capabilities: Easy Implementation HEV energy management Coordinate the action of combustion engine and electric machines to minimize fuel consumption Power smoothing approach by MPC Di Cairano, et al. ' Implemented by explicit MPC (4 th order, 3 inputs, 8 constraints) MERL7/8/23 6/2

HEV Energy Management Implementation Implementation of HEV energy management (>6k lines of code) Target: production ECU, 6MHz, <32kB RAM, <2MB room 3k more in external ROM,.5% External ROM 35% 65% External ROM Internal ROM External RAM 4% 34% Used Free Used 4% Internal ROM 86% Free 66% 86% VCS + MPC Used Free VCS + Baseline Used Free Almost no addition usage of RAM External RAM DATA BELOW NOT FOR 67% 33% UNRESTRICTED Used Free 7% Internal RAM 7% 93% Internal RAM 33% Used Free 67% 93% DISTRIBUTION Used Free Used Free 2 MB 52 kb 64 kb 32 kb MERL7/8/23 7/2

Explicit MPC Capabilities: Easy to Analyze & Verify Stability analysis is difficult for implicit MPC (with restriction on CPU), but can be assessed for the explicit feedback law. Speed control for SI engines Multivariable: spark, airflow Time delays: asymmetric Constraints: actuators, torque, speed Nonlinearities: multiplicative input-state Upper bounds on CPU time can be easily computed (but are not tight) Stability margins and disturbance gains analyzed by Local stability in Global stability: PWQ-LF (large LMI) MERL7/8/23 8/2

Stable Explicit MPC for SI Engine Speed Control A/C on, with full PS PID SISO-MPC MIMO-MPC Idle speed control Di Cairano, et al. '8-'2 Deceleration control (dynamic idle) Di Cairano, et al. '2 Stability guaranteed. Chronometrics & memory verified. MERL7/8/23 9/2

Explicit MPC Capabilities: Ease of Integration Different operating modes require different controllers. But for analysis and implementation a single controller is desired. Yaw Stability control Rear Front In different modes the objectives are different Di Cairano, et al. '-'3 Tire forces (PWA approx.) Design 4 MPC then merge the explicits: A single explicit that contains them all MERL7/8/23 /2

Switched Explicit MPC for Stability Control When applied to yaw stability control stable region.4.3.2. r -. -.2 -.3 -.4 -.4 -.3 -.2 -...2.3.4 f transient regions critical regions By explicit MPC combine: expert knowledge, constrained optimization, closed-loop analysis, in a single control function (no logics required, ) MERL7/8/23 /2

Double Lane Change: MPC & Driver Experimental testing Normal driver f, r, p f, p r [rad] Yaw, Yaw ref [rad/s].5 -.5 -.5 Yr ref Yr 4 5 6 7 8 9 2 3 4 t [s] alphaf alphar Y 6 4 2-2 -4-6 - 2 3 4 5 6 7 8 9 X Normal driver+mpc f, r, p f, p r [rad] Yaw, Yaw ref [rad/s] -.5.5 -.5.2. -. 4 5 6 7 8 9 2 3 4 t [s] 4 5 6 7 8 9 t [s] Yr ref Yr alphaf alphar Y 6 4 2-2 -4-6 - 2 3 4 5 6 7 X Expert driver Normal driver+mpc = Expert driver f, r, p f, p r [rad] Yaw, Yaw ref [rad/s] -.2.5.5 -.5.2 -.2 -.4 -.6 4 5 6 7 8 9 t [s] 4 5 6 7 8 9 t [s] 4 5 6 7 8 9 t [s] Yr ref Yr alphaf alphar Y 6 4 2-2 -4-6 - 2 3 4 5 6 7 X MERL7/8/23 2/2

Explicit MPC Capabilities: Explicit xpc Same principle of explicit MPC can be applied to other control designs (with even simpler results) ESC AFS Example: virtual state governor. Integrate existing controllers with constraint enforcement and guaranteed stability. Di Cairano, Kolmanovsky, 2 yaw stability control ISS re-orbiting Constraint satisfaction and AS guaranteed! Finite time (minimum) usage of a specific actuator MERL7/8/23 3/2

Explicit Virtual State Governor Use parametric maximum admissible sets to modulate the controllers. VSG control law can be explicitly computed Attitude control of a spacecraft by thrusters and momentum wheels.5 -.5 vsg base.25.2.5..5-2 3 4 5 6 v 2 -.5 -..5 -.5-2 3 4 5 6 Constraint satisfaction and AS guaranteed! -.5 -.4 -.3 -.2 -...2.3.4.5 MERL7/8/23 4/2 u2 u -.5 -.2 -.25 p 2 8 constraints 424 regions

Explicit MPC Limitations. Non-tight CPU-time bound (in practice). 2. Number of regions grows exponentially with constraints. 3. MPC problem is fixed (constraints, dynamics cannot be updated). 4. May need large storage. Problem Size Prize winner Iterative methods Interior point, Active set Parametric Programming Try harder Platform Capabilities MERL7/8/23 5/2

Explicit MPC vs Customized Solvers for MPC For larger problems optimization may be faster than explicit MPC and reduce memory (at the price of more complex operations). Multiplicative update projection-free iteration (in dual problem) Brand et. al, 2, Di Cairano, Brand, 22 Servomotor control Explicit MPC: 2MB PQPMPC: 45KB Advanced algorithms for search may improve performance but at the price of complexity and code verifiability Memory is often more limiting than chronometrics. MERL7/8/23 6/2

Example: Memory Reduction by Learning run simulations for reference tracking with random reference amplitude. 3 2.5 2.5.5 -.5 - -.5 Record gain usage (6/). Select 8 gains. Suboptimal MPC with 2 Regions 4 5 6 7 3 3 2 - -2 y[rad] 2 - -2 Polyhedral partition - regions 2 4 6 8 2 4 6 8 2 t[s] u[v] 4 2-2 -4 2 4 6 8 2 4 6 8 2 t[s] -2-2.5 - -.8 -.6 -.4 -.2.2.4.6.8 2-3 -.5 - -.5.5.5 2 Test reduced controller Formal techniques are still need especially for tracking MPC y[rad] y[rad].5.5 -.5 - -.5 2 4 6 8 2 4 6 8 2 t[s].5.5 -.5 - -.5 2 4 6 8 2 4 6 8 2 t[s] Bemporad, Di Cairano, 2 all gains available, no difference gain missing, nearest neighbor approximation used (saturated) MERL7/8/23 7/2

Still an open problem. MITSUBISHI ELECTRIC RESEARCH LABORATORIES Memory Reduction By Merging Many regions may have the same control law but merging them is not easy due to convexity requirement VSG example In VSG the controller needs only part of the optimization variables (as in MPC) Spacecraft Attitude control.3.2. v 2 -. v 2 6 4 2-2 2nd order system with 2 controllers v 2 6 4 2-2 v 2 -.2 -.5 p 2.5.3.2. -4-4 -6-4 -2 p 2 4 2-6 -4-2 p 2 4 2 Merging by Geyer-Torrisi (MPT) algorithm -. -.2 -.5 p 2.5 MERL7/8/23 8/2

Fixed-point Microprocessors Despite continuity of control law finite precision may cause a significant loss of precision. Floating point Servo with Torque constraints y 5 5-5 pos tq Re-centering can help 8bits (fract.) 6bits (fract.) -5 2 3 4 5 6 t MERL7/8/23 9/2 y y - -5 2 3 4 5 6 t 5 5-5 - -5 2 3 4 5 6 t 5 5-5 - pos tq pos tq

Conclusions Explicit MPC is attractive because of its simplicity in -analysis -implementation -verification Major challenges are on numerical robustness and memory reduction There is a trade off between achieving speed up of the algorithm and making it to complicated. This induces a boundary on the actual size of significant problems MERL7/8/23 2/2

European Control Conference, July 8 th, 23 Zurich, CH MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts Explicit MPC in Mechatronics Industry: Technology Transfer Potential and Limitations Dr. Stefano Di Cairano, Mechatronics, MERL MERL