Fast Nonlinear Model Predictive Control Algorithms and Applications - - PowerPoint PPT Presentation

fast nonlinear model predictive control algorithms and
SMART_READER_LITE
LIVE PREVIEW

Fast Nonlinear Model Predictive Control Algorithms and Applications - - PowerPoint PPT Presentation

Fast Nonlinear Model Predictive Control Algorithms and Applications in Process Engineering Moritz Diehl, Optimization in Engineering Center (OPTEC) & Electrical Engineering Department (ESAT) K.U. Leuven, Belgium INRIA-Rocquencourt, May


slide-1
SLIDE 1

Fast Nonlinear Model Predictive Control Algorithms and Applications in Process Engineering

Moritz Diehl, Optimization in Engineering Center (OPTEC) & Electrical Engineering Department (ESAT) K.U. Leuven, Belgium

INRIA-Rocquencourt, May 30, 2007

slide-2
SLIDE 2

Outline of the Talk

K.U.Leuven‘s Optimization in Engineering Center OPTEC Nonlinear Model Predictive Control (NMPC) How to solve dynamic optimization problems? Four crucial features for fast NMPC algorithms Application to a Distillation Column

slide-3
SLIDE 3

OPTEC Aim: Connect Optimization Methods & Applications

Methods: New developments are inspired and driven by application needs Applications: Smart problem formulations allow efficient solution (e.g. convexity)

slide-4
SLIDE 4

Optimization in Engineering Center OPTEC

Five year project, from 2005 to 2010, 500.000 Euro per year, about 20 professors, 10 postdocs, and 60 PhD students involved in OPTEC research Promoted by four departments: Electrical Engineering Mechanical Engineering Chemical Engineering Computer Science

Many real world applications at OPTEC...

slide-5
SLIDE 5

Quarterly Stevin Lecture: Everyone Invited!

Quarterly „Simon Stevin Lecture on Optimization in Engineering“:

  • Dec 6:

Larry Biegler, CMU Pittsburgh

  • Apr 18:

Stephen Boyd, Stanford

  • July 9:

Steve Wright, Madison, Wisconsin

  • Oct 24: Manfred Morari, ETH Zurich
  • Dec X:

David Mayne, Imperial, London „K.U. Leuven Seminar on Optimization in Engineering“ :

  • Jan. 31: Mario Milanese (Torino): MPC of semi-active damping
  • Feb. 8: Philippe Toint (Namur): large scale optimization methods
  • Feb. 22: Peter Kuehl (Heidelberg): Robust optimal feedback control
  • March 1: Yurii Nesterov (UCL)/ Florian Jarre (Duesseldorf): new
  • ptimization algorithms

Simon Stevin, 1548-1620) Lecture and following Reception in Arenberg Castle, Leuven

slide-6
SLIDE 6

Outline of the Talk

K.U.Leuven‘s Optimization in Engineering Center OPTEC

Nonlinear Model Predictive Control (NMPC)

How to solve dynamic optimization problems? Four crucial features for fast NMPC algorithms Online MPC of a combustion engine

slide-7
SLIDE 7

First Principle Dynamic System Models

E.g. some equations modelling a distillation column (in Stuttgart)

Nonlinear differential algebraic equations (DAE)

  • ften in modeling languages like gPROMS,

SIMULINK, Modelica typical order of magnitude: some hundreds to thousands variables difficulties: stiffness, discontinuities, high index

Can we use these models directly for optimization and feedback control?

slide-8
SLIDE 8

x0

x0 u0

u0

Principle of Optimal Feedback Control / Nonlinear MPC:

slide-9
SLIDE 9

Brain predicts and optimizes: e.g. slow down before curve Nonlinear Model Predictive Control When We Drive a Car Always look a bit into the future!

Main challenge for NMPC: fast and reliable real-time optimization!

slide-10
SLIDE 10

Distillation column (with

  • Univ. Stuttgart)

Polymeri- sation reactor (with BASF) Chromatographic Separation (with

  • Univ. Dortmund)

Combined Cycle Power Plant (with

  • Univ. Pavia)

PET plant: Plant wide control project with Politecnico di Milano Car Engines: EU Project with Univ. Linz, Stuttgart, Politecnico di Milano

NMPC applications, with decreasing timescales

Looping kites for power generation, with TU Delft, Politecnico di Torino Robot arms (with Columbia Univ. & INRIA Grenoble)

slide-11
SLIDE 11

Outline of the Talk

K.U.Leuven‘s Optimization in Engineering Center OPTEC Nonlinear Model Predictive Control (NMPC)

How to solve dynamic optimization problems?

Four crucial features for fast NMPC algorithms Application to a Distillation Column

slide-12
SLIDE 12

Optimal Control Family Tree

slide-13
SLIDE 13

Optimal Control Family Tree

slide-14
SLIDE 14

Optimal Control Family Tree

slide-15
SLIDE 15

Optimal Control Problem in Simplest Form

slide-16
SLIDE 16

Simplest Approach: Single Shooting

slide-17
SLIDE 17

Nonlinear Program (NLP) in Single Shooting

After control discretization, obtain NLP: Solve with NLP solver, e.g. Sequential Quadratic Programming (SQP)

slide-18
SLIDE 18

Sequential Quadratic Programming (SQP)

slide-19
SLIDE 19

Toy Problem with One ODE for Illustration

Mildly nonlinear and unstable system.

slide-20
SLIDE 20

Single Shooting

slide-21
SLIDE 21

Single Shooting: First Iteration

slide-22
SLIDE 22

Single Shooting: Second Iteration

slide-23
SLIDE 23

Single Shooting: Third Iteration

slide-24
SLIDE 24

Single Shooting: 4th Iteration

slide-25
SLIDE 25

Single Shooting: 5th Iteration

slide-26
SLIDE 26

Single Shooting: 6th Iteration

slide-27
SLIDE 27

Single Shooting: 7th Iteration (Solution)

slide-28
SLIDE 28

Single Shooting: Pros and Cons

slide-29
SLIDE 29

Alternative: Direct Multiple Shooting [Bock, Plitt 1981]

slide-30
SLIDE 30

Nonlinear Program in Multiple Shooting

slide-31
SLIDE 31

SQP for Multiple Shooting

Summarize NLP:

slide-32
SLIDE 32

Toy Example: Multiple Shooting Initialization

slide-33
SLIDE 33

Multiple Shooting: First Iteration

slide-34
SLIDE 34

Multiple Shooting: Second Iteration

slide-35
SLIDE 35

Multiple Shooting: 3rd Iteration (already solution!)

slide-36
SLIDE 36

Multiple Shooting: 3rd Iteration (already solution!)

Single shooting converged much slower!

slide-37
SLIDE 37
slide-38
SLIDE 38

The MUSCOD-II Developer Team [Heidelberg, Leuven, Madrid]

slide-39
SLIDE 39

Outline of the Talk

K.U.Leuven‘s Optimization in Engineering Center OPTEC Nonlinear Model Predictive Control (NMPC) How to solve dynamic optimization problems?

Four crucial features for fast NMPC algorithms

Online MPC of a combustion engine

slide-40
SLIDE 40

NMPC Computation from 1998 to 2006

1998: 5th order distillation model allows sampling times of only 5 minutes [Allgower,

Findeisen, 1998]

2001: 206th order distillation model, sampling times of 20 seconds [D. et al. ‚01] 2006: 5th order engine model, sampling times

  • f 10-20 milliseconds [Ferreau et al. ‘06]

5*60*1000 / 20 = 15 000 times faster, due to Moore‘s law + Algorithm Development

slide-41
SLIDE 41

NMPC Computation from 1998 to 2006

1998: 5th order distillation model allows sampling times of only 5 minutes [Allgower,

Findeisen, 1998]

2001: 206th order distillation model, sampling times of 20 seconds [D. et al. ‚01] cf. [Biegler] 2006: 5th order engine model, sampling times

  • f 10-20 milliseconds [Ferreau et al. ‘06], [Albersmeyer,

Findeisen `06]

5*60*1000 / 20 = 15 000 times faster, due to Moore‘s law + Algorithm Development

slide-42
SLIDE 42

Four Crucial Features for Fast NMPC

Direct, simultaneous optimal control: Multiple Shooting Efficient derivative generation for ODE/DAE solvers Initialization by „Initial Value Embedding“ Real-Time Iterations for fast tracking of optimal solutions

slide-43
SLIDE 43
slide-44
SLIDE 44

x0

slide-45
SLIDE 45

x0

slide-46
SLIDE 46

x0

slide-47
SLIDE 47

x0

slide-48
SLIDE 48

x0

slide-49
SLIDE 49

x0

slide-50
SLIDE 50

x0

slide-51
SLIDE 51

Conventional Conventional: : Initial Initial Value Value Embedding: Embedding:

Never simulate a nonlinear system open-loop!

slide-52
SLIDE 52

x0 x0

slide-53
SLIDE 53

x0 x0

slide-54
SLIDE 54

x0 x0

slide-55
SLIDE 55

x0 u0

slide-56
SLIDE 56

Real-Time Iterations minimize feedback delay

slide-57
SLIDE 57

x0 u0

slide-58
SLIDE 58

Outline of the Talk

K.U.Leuven‘s Optimization in Engineering Center OPTEC Nonlinear Model Predictive Control (NMPC) How to solve dynamic optimization problems? Four crucial features for fast NMPC algorithms

Application to a Distillation Column

slide-59
SLIDE 59
slide-60
SLIDE 60
slide-61
SLIDE 61

Transient in 15 minutes instead of 2 hours!

slide-62
SLIDE 62
slide-63
SLIDE 63
slide-64
SLIDE 64

Conclusions

Recent progress makes Nonlinear MPC with first principles models in millisecond range possible (now 15 000 x faster than 1998) Emerging consensus for NMPC algorithms:

  • employ direct, simultaneous methods
  • use Initial Value Embedding (first order predictor)
  • perform Real-Time Iterations to trace NMPC problem

solution while data change

  • Use SQP type method to track active set changes
slide-65
SLIDE 65

An Invitation

13th Czech-French-German Conference on Optimization (CFG07), Heidelberg, Germany, September 17-21, 2007.

(inv. speakers: Fletcher, Scherer, Trelat, Waechter,...) Traditionally strong in optimal control.

slide-66
SLIDE 66

4 PhD Positions in Numerical Optimization:

  • Sequential Convex Programming Algorithms for Nonlinear SDP
  • Large Scale & PDE Constrained Real-Time Optimization Algorithms
  • Fast Model Predictive Control Applications in Mechatronic Systems
  • Shape Optimization of Mechanical Parts under Inertia Loading

(deadline: June 21, 2007)