MPC: Tracking, Soft Constraints, Move-Blocking

Size: px
Start display at page:

Download "MPC: Tracking, Soft Constraints, Move-Blocking"

Transcription

1 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 Semester 2016 MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

2 Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation 3. Generalizing the Problem PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

3 Reference Tracking Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation 3. Generalizing the Problem PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

4 Reference Tracking Tracking problem Consider the linear system model x k+1 = Ax k + Bu k y k = Cx k Goal: Track given reference r such that y k r as k. Determine the steady state target condition x s, u s : x s = Ax s + Bu s Cx s = r [ ] [ ] [ I A B xs 0 = C 0 u s r] MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

5 Reference Tracking The Steady-State Problem Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

6 Reference Tracking The Steady-State Problem Steady-state target problem In the presence of constraints: (x s, u s ) has to satisfy state and input constraints. In case of multiple feasible u s, compute cheapest steady-state (x s, u s ) corresponding to reference r: min us T R s u s [ ] [ ] I A B xs s.t. = C 0 u s x s X, u s U. [ ] 0 r In general, we assume that the target problem is feasible If no solution exists: compute reachable set point that is closest to r: min (Cx s r) T Q s (Cx s r) s.t. x s = Ax s + Bu s x s X, u s U. MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

7 Reference Tracking The Steady-State Problem RHC Reference Tracking We now use control (MPC) to bring the system to a desired steady-state condition (x s, u s ) yielding the desired output y k r. The MPC is designed as follows N 1 min y N Cx s 2 P + y k Cx s 2 Q + u k u s 2 R u 0,...,u N 1 subj. to model constraints x 0 = x(t). Drawback: controller will show offset in case of unknown model error or disturbances. k=0 MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

8 Reference Tracking Offset Free Reference Tracking Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

9 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (1/6) Discrete-time, time-invariant system (possibly nonlinear, uncertain) Objective: x m (t + 1) = g(x m (t), u(t)) y m (t) = h(x m (t)) Design an RHC in order to make y(t) track the reference signal r(t), i.e., (y(t) r(t)) 0 for t. In the rest of the section we study step references and focus on zero steady-state tracking error, y(t) r as t. Consider augmented model with constant disturbance d(t) R n d. x(t + 1) = Ax(t) + Bu(t) + B d d(t) d(t + 1) = d(t) y(t) = Cx(t) + C d d(t) MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

10 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (2/6) State observer for augmented model [ ] [ ˆx(t + 1) A Bd = ˆd(t + 1) 0 I [ Lx + L d ] [ ˆx(t) ˆd(t) ] [ B + 0 ] u(t) ] ( y m (t) + C ˆx(t) + C d ˆd(t)) Lemma Suppose the observer is stable and the number of outputs p equals the dimension of the constant disturbance n d. The observer steady state satisfies: [ A I B C 0 ] [ ˆx u ] [ = B d ˆd y m, C d ˆd where y m, and u are the steady state measured outputs and inputs. The observer output C ˆx + C d ˆd tracks the measured output y m, without offset. MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester ].

11 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (3/6) For offset-free tracking at steady state we want y m, = r. The observer condition [ ] [ ] [ ] A I B ˆx B = d ˆd C 0 u y m, C d ˆd suggests that at steady state the MPC should satisfy [ A I B C 0 ] [ ] [ xtarget, = u target, B d ˆd r C d ˆd ] MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

12 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (4/6) Formulate the RHC problem N 1 min x N x t 2 P + x k x t 2 Q + u k ū t 2 R U 0 k=0 subj. to x k+1 = Ax k + Bu k + B d d k, k = 0,..., N x k X, u k U, k = 0,..., N 1 x N X f d k+1 = d k, k = 0,..., N x 0 = ˆx(t) d 0 = ˆd(t), with the targets ū t and x t given by [ A I B ] [ xt C 0 ū t ] [ = B d ˆd(t) r(t) C d ˆd(t) ] MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

13 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (5/6) Denote by c 0 (ˆx(t), ˆd(t), r(t)) = u 0(ˆx(t), ˆd(t), r(t)) the control law when the estimated state and disturbance are ˆx(t) and ˆd(t), respectively. Theorem Consider the case where the number of constant disturbances equals the number of (tracked) outputs n d = p = r. Assume the RHC is recursively feasible and unconstrained for t j with j N + and the closed-loop system x(t + 1) = f (x(t), c 0 (ˆx(t), ˆd(t), r(t))) ˆx(t + 1) = (A + L x C)ˆx(t) + (B d + L x C d )ˆd(t) +Bc 0 (ˆx(t), ˆd(t), r(t)) L x y m (t) ˆd(t + 1) = L d C ˆx(t) + (I + L d C d )ˆd(t) L d y m (t) converges to ˆx, ˆd, y m,, i.e., ˆx(t) ˆx, ˆd(t) ˆd, y m (t) y m, as t. Then y m (t) r as t. PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

14 Reference Tracking Offset Free Reference Tracking RHC Reference Tracking without Offset (6/6) Question: How do we choose the matrices B d and C d in the augmented model? Lemma The augmented system, with the number of outputs p equal to the dimension of the constant disturbance n d, and C d = I is observable if and only if (C, A) is observable and [ ] A I Bd det = det(a I B C I d C) 0. Remark: If the plant has no integrators, then det (A I ) 0 and we can choose B d = 0. If the plant has integrators then B d has to be chosen specifically to make det (A I B d C) 0. PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

15 Soft Constraints Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation 3. Generalizing the Problem PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

16 Soft Constraints Motivation Table of Contents 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

17 Soft Constraints Motivation Soft Constraints: Motivation Input constraints are dictated by physical constraints on the actuators and are usually hard State/output constraints arise from practical restrictions on the allowed operating range and are rarely hard Hard state/output constraints always lead to complications in the controller implementation Feasible operating regime is constrained even for stable systems Controller patches must be implemented to generate reasonable control action when measured/estimated states move outside feasible range because of disturbances or noise In industrial implementations, typically, state constraints are softened MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

18 Soft Constraints Mathematical Formulation Table of Contents 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

19 Soft Constraints Mathematical Formulation Mathematical Formulation Original problem: Assume for now g(z) is scalar valued. Softened problem: min z f (z) subj. to g(z) 0 min z,ɛ subj. to f (z) + l(ɛ) g(z) ɛ ɛ 0 Requirement on l(ɛ) If the original problem has a feasible solution z, then the softened problem should have the same solution z, and ɛ = 0. Note: l(ɛ) = v ɛ 2 does not meet this requirement for any v > 0 as demonstrated next. PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

20 Soft Constraints Mathematical Formulation Quadratic Penalty Constraint function g(z) z z 0 induces feasible region (grey) = minimizer of the original problem is z Quadratic penalty l(ɛ) = v ɛ 2 for ɛ 0 = minimizer of f (z) + l(ɛ) is (z + ɛ, ɛ ) instead of (z, 0) MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

21 Soft Constraints Mathematical Formulation Quadratic Penalty Constraint function g(z) z z 0 induces feasible region (grey) = minimizer of the original problem is z Quadratic penalty l(ɛ) = v ɛ 2 for ɛ 0 = minimizer of f (z) + l(ɛ) is (z + ɛ, ɛ ) instead of (z, 0) PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

22 Soft Constraints Mathematical Formulation Linear Penalty Constraint function g(z) z z 0 induces feasible region (grey) = minimizer of the original problem is z Linear penalty l(ɛ) = u ɛ for ɛ 0 with u chosen large enough so that u + lim z z f (z) > 0 = minimizer of f (z) + l(ɛ) is (z, 0) MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

23 Soft Constraints Mathematical Formulation Main Result Theorem (Exact Penalty Function) l(ɛ) = u ɛ satisfies the requirement for any u > u 0, where u is the optimal Lagrange multiplier for the original problem. Disadvantage: l(ɛ) = u ɛ renders the cost non-smooth. Therefore in practice, to get a smooth penalty, we use with u > u and v > 0. l(ɛ) = u ɛ + v ɛ 2 Extension to multiple constraints g j (z) 0, j = 1,..., r: l(ɛ) = r u j ɛ j + v j ɛ 2 j (1) j=1 where u j > uj differently. and v j > 0 can be used to weight violations (if necessary) PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

24 Generalizing the Problem Table of Contents 1. Reference Tracking 1.1 The Steady-State Problem 1.2 Offset Free Reference Tracking 2. Soft Constraints 2.1 Motivation 2.2 Mathematical Formulation 3. Generalizing the Problem PC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester 2016

25 Generalizing the Problem Generalizing the Problem Modify problem as: min U 0 x N y 2 P + N y 1 k=0 [ xk 2 Q + u k 2 R] subj. to y min (k) y k y max (k), k = 1,..., N c u min u k u max, k = 0, 1,..., N u x 0 = x(t) x k+1 = Ax k + Bu k, k 0 y k = Cx k, k 0 u k = Kx k, N u k < N y with N u N y and N c N y 1. Many applications require time-varying constraints, e.g. y min (k), y max (k) Complexity can be reduced by introducing separate horizons N u, N c, N y But, all theoretical feasibility and stability guarantees are lost! MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

26 Generalizing the Problem Generalizing the Problem More effective way to reduce the computational effort: Move-blocking Manipulated variables are fixed over time intervals in the future degrees of freedom in optimization problem are reduced By choosing the blocking strategies carefully RHC stability results remain applicable MPC: Tracking, Soft Constraints, Move-Blocking M. Morari, F. Borrelli, C. Jones, M. Zeilinger - Spring Semester

27 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger Institut für Automatik, ETH Zürich Institute for Dynamic Systems and Control, ETH Zürich UC Berkley EPFL Spring Semester 2016 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

28 Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

29 Explicit Model Predictive Control Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

30 Explicit Model Predictive Control Introduction Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

31 Explicit Model Predictive Control Introduction Introduction Requires at each time step on-line solution of an optimization problem Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

32 Explicit Model Predictive Control Introduction Introduction OFFLINE ONLINE N 1 U0 (x(t)) = argmin xt N Px N + x k Qx k + u k Ru k k=0 subj. to x 0 = x(t) x k+1 = Ax k + Bu k, k = 0,..., N 1 x k X, u k U, k = 0,..., N 1 x N X f Optimization problem is parameterized by state Pre-compute control law as function of state x Control law is piecewise affine for linear system/constraints Result: Online computation dramatically reduced and real-time Tool: Parametric programming U * ( x( t)) 0 Plant state xt () Plant U * ( x) 0 Output yt () Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

33 Explicit Model Predictive Control Introduction Example (1/2) Consider the following problem: x R is a parameter. The goals: 1 find z (x) = argmin z J(z, x), J (x) = min z J(z, x) = 1 2 z2 + 2xz + 2x 2 subj. to z 1 + x, 2 find all x for which the problem has a solution 3 compute the value function J (x) Define Lagrangian: L(z, x, λ) = f (z, x) + λ(z x 1) KKT conditions: z + 2x + λ = 0, z x 1 0, λ(z x 1) = 0, λ 0. Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

34 Explicit Model Predictive Control Introduction Example (2/2) Consider the two strictly complementary cases: 1 z x 1 = 0 λ 0 z (x) = x + 1, x 1 3 J (x) = 9 2 x2 + 3x z x 1 < 0 λ = 0 z (x) = 2x, x > 1 3 J (x) = 0 { z x + 1, if x 1 (x) = 3 2x, if x 1 3 This problem has a solution for all x., J (x) = { 9 2 x2 + 3x + 1 2, if x 1 3 0, if x 1 3 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

35 Explicit Model Predictive Control mpqp Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

36 Explicit Model Predictive Control mpqp mpqp - Problem formulation J 1 (x) = min z 2 z Hz, subj. to Gz w + Sx where H > 0, z R s, x R n and G R m s. Given a closed and bounded polyhedral set K R n of parameters denote by K K the region of parameters x K such that the problem is feasible Goals: 1 find z (x) = argmin z J(z, x), K {x K : z, Gz w + Sx} 2 find all x for which the problem has a solution 3 compute the value function J (x) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

37 Explicit Model Predictive Control mpqp Active Set and Critical Region Let I {1,..., m} be the set of constraint indices. Definition: Active Set We define the active set at x, A(x), and its complement, NA(x), as A(x) {i I : G i z (x) S i x = w i } NA(x) {i I : G i z (x) S i x < w i }. G i, S i and w i are the i-th row of G, S and w, respectively. Definition: Critical Region CR A is the set of parameters x for which the same set A I of constraints is active at the optimum. For a given x K let (A, NA) (A( x), NA( x)). Then, CR A {x K : A(x) = A}. xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

38 Explicit Model Predictive Control mpqp mpqp - Global properties of the solution The following theorem summarizes the properties of the mpqp solution. Theorem: Solution of mpqp i) The feasible set K is a polyhedron. ii) The optimizer function z (x) : K R m is: continuous polyhedral piecewise affine over K. It is affine in each critical region CR i, every CR i is a polyhedron and CR i = K. iii) The value function J (x) : K R is: continuous convex polyhedral piecewise quadratic over K, it is quadratic in each CR i xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

39 Explicit Model Predictive Control mpqp mpqp - Example (1/4) Consider the example min z(x) 1 2 (z2 1 + z 2 2 ) subj. to z x 1 + x 2 z 1 1 x 1 x 2 z x 1 x 2 z 2 1 x 1 + x 2 z 1 z 2 x 1 + 3x 2 z 1 + z 2 2x 1 x 2 1 x 1 1, 1 x 2 1 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

40 Explicit Model Predictive Control mpqp mpqp - Example (2/4) The explicit solution is defined over i = 1,..., 7 regions P i = {x R 2 A i x b i } in the parameter space x 1 x 2. Critical regions Piecewise quadratic objective function J (x) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

41 Explicit Model Predictive Control mpqp mpqp - Example (3/4) Primal solution is given as piecewise affine function z(x) = F i + g i x if x P i. ( ) x if x P ( ) ( ) z (x) = x + if x P Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

42 Explicit Model Predictive Control mpqp mpqp - Example (4/4) Primal solution is given as piecewise affine function z(x) = F i + g i x if x P i. Piecewise affine function z 1 (x) Piecewise affine function z 2 (x) xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

43 Explicit Model Predictive Control mplp Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

44 Explicit Model Predictive Control mplp mplp - Problem formulation J (x) = min z subj. to c z Gz w + Sx where z R s, x R n and G R m s. Given a closed and bounded polyhedral set K R n of parameters, denote by K K the region of parameters x K such that the problem is feasible Goals: 1 find z (x) = argmin z J(z, x), K {x K : z, Gz w + Sx} 2 find all x for which the problem has a solution 3 compute the value function J (x) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

45 Explicit Model Predictive Control mplp mplp - Global properties of the solution The following theorem summarizes the properties of the mplp solution. Theorem: Solution of mplp i) The feasible set K is a polyhedron. ii) If the optimal solution z is unique x K, the optimizer function z (x) : K R m is: continuous polyhedral piecewise affine over K. It is affine in each critical region CR i, every CR i is a polyhedron and CR i = K. Otherwise, it is always possible to choose such a continuous and PPWA optimizer function z (x). iii) The value function J (x) : K R is: continuous convex polyhedral piecewise affine over K, it is affine in each CR i. xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

46 Explicit Model Predictive Control mplp mplp - Example (1/4) Consider the example min z(x) 3z 1 8z 2 subj. to z 1 + z x 1 5z 1 4z z z x 2 4z 1 z 2 8 z 1 0 z x x 2 1 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

47 Explicit Model Predictive Control mplp mplp - Example (2/4) The explicit solution is defined over i = 1,..., 3 regions P i = {x R 2 A i x b i } in the parameter space x 1 x 2. Critical regions P i Piecewise affine objective function J (x) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

48 Explicit Model Predictive Control mplp mplp - Example (3/4) Primal solution is given as piecewise affine function z (x) = F i x + g i if x P i. ( ) ( ) x + if x P ( ) ( ) z (x) = x + if x P ( ) ( ) x + if x P Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

49 Explicit Model Predictive Control mplp mplp - Example (4/4) Primal solution is given as piecewise affine function z (x) = F i x + g i if x P i. Piecewise affine function z 1 (x) Piecewise affine function z 2 (x) xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

50 Explicit Model Predictive Control Constrained Finite Time Optimal Control Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

51 Explicit Model Predictive Control Constrained Finite Time Optimal Control Problem Formulation - Quadratic Cost Quadratic cost function N 1 J 0 (x(0), U 0 ) = x NPx N + x kqx k + u kru k (1) k=0 with P 0, Q 0, R 0. Constrained Finite Time Optimal Control problem (CFTOC). J 0 (x(0)) = min U 0 J 0 (x(0), U 0 ) subj. to x k+1 = Ax k + Bu k, k = 0,..., N 1 x k X, u k U, k = 0,..., N 1 x N X f x 0 = x(0) (2) N is the time horizon and X, U, X f are polyhedral regions. Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

52 Explicit Model Predictive Control Constrained Finite Time Optimal Control Construction of the QP with substitution Step 1: Rewrite the cost as (see lectures on Day 1 & 2) J 0 (x(0), U 0 ) = U 0H U 0 + 2x(0) FU 0 + x(0) Yx(0) = [U 0 x(0) ] [ ] H F [U0 x(0) ] F Y Note: [ ] H F F Y 0 since J0 (x(0), U 0 ) 0 by assumption. Step 2: Rewrite the constraints compactly as (details provided on the next slide) G 0 U 0 w 0 + E 0 x(0) Step 3: Rewrite the optimal control problem as J0 (x(0)) = min [U 0 x(0) ] [ ] H F [U0 x(0) ] U F Y 0 subj. to G 0 U 0 w 0 + E 0 x(0) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

53 Explicit Model Predictive Control Constrained Finite Time Optimal Control Solution J0 (x(0)) = min [U 0 x(0) ] [ ] H F [U0 x(0) ] U F Y 0 subj. to G 0 U 0 w 0 + E 0 x(0) For a given x(0) U 0 can be found via a QP solver. Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

54 Explicit Model Predictive Control Constrained Finite Time Optimal Control Construction of QP constraints with substitution If X, U and X f are given by: X = {x A x x b x } U = {u A u u b u } X f = {x A f x b f } Then G 0, E 0 and w 0 are defined as follows A u b u 0 A u b ụ A u 0 b u G 0 = , E 0 = A x, w 0 = b x A x B A x A b x A x AB A x B... 0 A x A 2 b x A f A N 1 B A f A N 2 B... A f B A f A N b f Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

55 Explicit Model Predictive Control Constrained Finite Time Optimal Control 2-Norm State Feedback Solution Start from QP with substitution. Step 1: Define z U 0 + H 1 F x(0) and transform the problem into Ĵ (x(0)) = min z subj. to z Hz G 0 z w 0 + S 0 x(0), where S 0 E 0 + G 0 H 1 F, and Ĵ (x(0)) = J 0 (x(0)) x(0) (Y FH 1 F )x(0). The CFTOC problem is now a multiparametric quadratic program (mp-qp). Step 2: Solve the mp-qp to get explicit solution z (x(0)) Step 3: Obtain U 0 (x(0)) from z (x(0)) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

56 Explicit Model Predictive Control Constrained Finite Time Optimal Control 2-Norm State Feedback Solution Main Results 1 The Open loop optimal control function can be obtained by solving the mp-qp problem and calculating U 0 (x(0)), x(0) X 0 as U 0 = z (x(0)) H 1 F x(0). 2 The first component of the multiparametric solution has the form u (0) = f 0 (x(0)), x(0) X 0, f 0 : R n R m, is continuous and piecewise affine on polyhedra f 0 (x) = F i 0x + g i 0 if x CR i 0, i = 1,..., N r 0 3 The polyhedral sets CR i 0 = {x R n H i 0x K i 0}, i = 1,..., N r 0 are a partition of the feasible polyhedron X 0. 4 The value function J 0 (x(0)) is convex and piecewise quadratic on polyhedra. xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

57 Explicit Model Predictive Control Constrained Finite Time Optimal Control Example Consider the double integrator x(t + 1) = subject to constraints [ y(t) = [ 1 0 ] x(t) ] [ 0 x(t) u(k) 1, k = 0,..., 5 [ ] [ ] x(k), k = 0,..., ] u(t) Compute the state feedback optimal controller u (0)(x(0)) solving the CFTOC problem with N = 6, Q = [ ], R = 0.1, P the solution of the ARE, X f = R 2. Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

58 Explicit Model Predictive Control Constrained Finite Time Optimal Control Example 10 5 x 2 (0) x 1 (0) Figure : Partition of the state space for the piecewise affine control law u (0) (N r 0 = 13) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

59 Explicit Model Predictive Control Constrained Finite Time Optimal Control Problem Formulation - Piecewise Linear Cost Piecewise linear cost function N 1 J 0 (x(0), U 0 ) := Px N p + Qx k p + Ru k p (3) k=0 with p = 1 or p =, P, Q, R full column rank matrices Constrained Finite Time Optimal Control Problem (CFTOC) J 0 (x(0)) = min U 0 J 0 (x(0), U 0 ) subj. to x k+1 = Ax k + Bu k, k = 0,..., N 1 x k X, u k U, k = 0,..., N 1 x N X f x 0 = x(0) N is the time horizon and X, U, X f are polyhedral regions. (4) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

60 Explicit Model Predictive Control Constrained Finite Time Optimal Control Construction of the LP with substitution Recall that the norm problem can be equivalently formulated as min ε x ε x N + ε u ε u N 1 z 0 [ ] k 1 subj. to 1 n ε x k ±Q A k x 0 + A j Bu k 1 j, 1 r ε x N ±P [ 1 m ε u k ±Ru k, A N x 0 + j=0 N 1 j=0 A j Bu N 1 j ] k 1 A k x 0 + A j Bu k 1 j X, u k U, j=0 N 1 A N x 0 + A j Bu N 1 j X f, j=0 k = 0,..., N 1 x 0 = x(0), Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

61 Explicit Model Predictive Control Constrained Finite Time Optimal Control Construction of the LP with substitution The problem yields the following standard LP min z 0 c 0z 0 subj. to Ḡ 0 z 0 w 0 + S 0 x(0) where z 0 := {ε x 0,..., ε x N, εu 0,..., ε u N 1, u 0,..., u N 1 } Rs, s (m + 1)N + N + 1 and Ḡ 0 = [ ] [ ] [ ] Gε 0 Sε wε, S0 =, w 0 G 0 S 0 = 0 w 0 For a given x(0) U0 similar). can be obtained via an LP solver (the 1 norm case is Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

62 Explicit Model Predictive Control Constrained Finite Time Optimal Control 1- / -Norm State Feedback Solution Main Results 1 The Open loop optimal control function can be obtained by solving the mp-lp problem and calculating z 0 (x(0)) 2 The component u 0 = [ I m ]z 0 (x(0)) of the multiparametric solution has the form u (0) = f 0 (x(0)), x(0) X 0, f 0 : R n R m, is continuous and piecewise affine on polyhedra f 0 (x) = F i 0x + g i 0 if x CR i 0, i = 1,..., N r 0 3 The polyhedral sets CR i 0 = {x R n H i 0x K i 0}, i = 1,..., N r 0 are a partition of the feasible polyhedron X 0. 4 In case of multiple optimizers a piecewise affine control law exists. 5 The value function J 0 (x(0)) is convex and piecewise affine on polyhedra. xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

63 Explicit Model Predictive Control Constrained Finite Time Optimal Control Explicit MPC OFFLINE ONLINE N 1 U0 (x(t)) = argmin xt N Px N + x k Qx k + u k Ru k k=0 subj. to x 0 = x(t) x k+1 = Ax k + Bu k, k = 0,..., N 1 x k X, u k U, k = 0,..., N 1 x N X f Optimization problem is parameterized by state Pre-compute control law as function of state x Control law is piecewise affine for linear system/constraints Result: Online computation dramatically reduced and real-time Tool: Parametric programming U * ( x( t)) 0 Plant state xt () Plant U * ( x) 0 Output yt () xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

64 Explicit Model Predictive Control Online Evaluation: Point Location Problem Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

65 Explicit Model Predictive Control Online Evaluation: Point Location Problem Online evaluation: Point location Calculation of piecewise affine function: 1 Point location 2 Evaluation of affine function 1 2 Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

66 Explicit Model Predictive Control Online Evaluation: Point Location Problem Sequential search x Sequential search for each i if A i x + b i 0 then x is in region i Very simple Linear in number of regions xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

67 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (1/6) h Offline construction of search tree Find hyperplane that separates regions into two equal sized sets Repeat for left and right sets xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

68 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (2/6) h h x Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

69 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (3/6) h L h h L h x h LR Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

70 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (4/6) h L h LR h h L h x h LR h LLR Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

71 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (5/6) h L h LRR h LR h h L h x h LR h LLR h LLRL Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

72 Explicit Model Predictive Control Online Evaluation: Point Location Problem Logarithmic search (6/6) h L h LRR h LR h h L h x h LRRL h LR h LLR h LLRL Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

73 Explicit Model Predictive Control Online Evaluation: Point Location Problem Point Location - Summary Sequential search Very simple Works for all problems Search tree Potentially logarithmic Significant offline processing (reasonable for < regions) Many other options for special cases Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

74 Explicit Model Predictive Control MPT Example Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

75 Explicit Model Predictive Control MPT Example Ball and Plate y d g x a a' b' b Linearized model: four states for each axis: plate angle, ball position, plate angular speed, ball speed. Constraints on inputs and states Plate angle Ball position Acceleration MPC objective: path tracking Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

76 Explicit Model Predictive Control MPT Example Ball and Plate - System Matlab + RTW Computer: Pentium 166 Sampling Time: 30 ms TCP/IP Code Data Ball & Plate u 1, u 2 xpc Target α, β x, y Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

77 Explicit Model Predictive Control MPT Example Ball and Plate - MPC Problem 4 states + 1 tracking variable = 5 parameters Move-blocking reduces complexity Horizon of 10 Inputs 2 10 must be equal min y i y t u i 2 2 i=0 s.t. x 0 = x x i+1 = Ax i + Bu i y i = Cx i u min u i u max y min y i y max x min x i x max u i+1 = u i, i = {1,..., 9} Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

78 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox Modeling Optimal control Analysis Computational geometry control.ee.ethz.ch/~mpt Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

79 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox 3.0 Formulation M P T % Linear discrete-time prediction model model=ltisystem( A, A, B, B, C, C); % Input constraints model.u.min = -10; model.u.max = 10; % Output constraints model.y.min = -30; model.y.max = 30; % State constraints model.x.min = [-30; -15; -15*pi/180; -1]; model.x.max = [30; 15; 15*pi/180; 1]; % Penalties in the cost function model.y.penalty = QuadFunction(100); model.u.penalty = QuadFunction(0.1); % Adjustment via input blocking model.u.with( block ); model.u.from = 1; model.u.to = 9; % Time varying reference signal model.y.with( reference ); model.y.reference = free ; % Online MPC object online_ctrl = MPCController( model, 9 ) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

80 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox 3.0 Formulation M P T % Linear discrete-time prediction model model=ltisystem( A, A, B, B, C, C); % Input constraints model.u.min = -10; model.u.max = 10; % Output constraints model.y.min = -30; model.y.max = 30; % State constraints model.x.min = [-30; -15; -15*pi/180; -1]; model.x.max = [30; 15; 15*pi/180; 1]; % Penalties in the cost function model.y.penalty = QuadFunction(100); model.u.penalty = QuadFunction(0.1); % Adjustment via input blocking model.u.with( block ); model.u.from = 1; model.u.to = 9; % Time varying reference signal model.y.with( reference ); model.y.reference = free ; % Online MPC object online_ctrl = MPCController( model, 9 ) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

81 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox 3.0 Formulation M P T % Linear discrete-time prediction model model=ltisystem( A, A, B, B, C, C); % Input constraints model.u.min = -10; model.u.max = 10; % Output constraints model.y.min = -30; model.y.max = 30; % State constraints model.x.min = [-30; -15; -15*pi/180; -1]; model.x.max = [30; 15; 15*pi/180; 1]; % Penalties in the cost function model.y.penalty = QuadFunction(100); model.u.penalty = QuadFunction(0.1); % Adjustment via input blocking model.u.with( block ); model.u.from = 1; model.u.to = 9; % Time varying reference signal model.y.with( reference ); model.y.reference = free ; % Online MPC object online_ctrl = MPCController( model, 9 ) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

82 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox 3.0 Formulation M P T % Linear discrete-time prediction model model=ltisystem( A, A, B, B, C, C); % Input constraints model.u.min = -10; model.u.max = 10; % Output constraints model.y.min = -30; model.y.max = 30; % State constraints model.x.min = [-30; -15; -15*pi/180; -1]; model.x.max = [30; 15; 15*pi/180; 1]; % Penalties in the cost function model.y.penalty = QuadFunction(100); model.u.penalty = QuadFunction(0.1); % Adjustment via input blocking model.u.with( block ); model.u.from = 1; model.u.to = 9; % Time varying reference signal model.y.with( reference ); model.y.reference = free ; % Online MPC object online_ctrl = MPCController( model, 9 ) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

83 Explicit Model Predictive Control MPT Example Multi-Parametric Toolbox 3.0 Formulation M P T % Linear discrete-time prediction model model=ltisystem( A, A, B, B, C, C); % Input constraints model.u.min = -10; model.u.max = 10; % Output constraints model.y.min = -30; model.y.max = 30; % State constraints model.x.min = [-30; -15; -15*pi/180; -1]; model.x.max = [30; 15; 15*pi/180; 1]; % Penalties in the cost function model.y.penalty = QuadFunction(100); model.u.penalty = QuadFunction(0.1); % Adjustment via input blocking model.u.with( block ); model.u.from = 1; model.u.to = 9; % Time varying reference signal model.y.with( reference ); model.y.reference = free ; % Online MPC object online_ctrl = MPCController( model, 9 ) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

84 Explicit Model Predictive Control MPT Example Explicit Solution M P T % Compute explicit solution explicit_ctrl = online_ctrl.toexplicit() % Plot control law (primal solution) explicit_ctrl.optimizer.fplot( primal ) Control input % plot the objective function explicit_ctrl.optimizer.fplot( obj ) Value function % Plot controller partition explicit_ctrl.optimizer.plot Controller partition Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

85 Explicit Model Predictive Control MPT Example Exporting Explicit Solutions Search tree and export to flat c-file Export to flat c-file, sequential search M P T % generate binary search tree tree = BinTreePolyUnion(explicit_ctrl.optimizer) % export control law to C tree.toc( primal ) % export control law to C explicit_ctrl.optimizer.toc( primal ) #define MPT_NU 1 #define MPT_NX 2 static float MPT_ST[] = { e-01, e-01, e+00, e+00, e+00, e-01, e-01, e+00, e+00, e+00, e-01, e-01, e+00, e+00, e+00, #ifdef tmwtypes_h e-01, e-01, e-01, e+00, e+00, /* RTW is used, switch to real_t data types to avoid problems with TLC compi e-01, e-01, e-01, e+01, e+01, lation */ e-01, e-01, e-02, e+01, e+01, static long mpt_searchtree(const real_t *X, real_t *U) e-01, e-01, e-01, e+01, e+01, #else e-01, e-01, e-01, e+00, e+01, static long mpt_searchtree(const float *X, float *U) e-01, e-01, e+00, e+01, e+01, #endif e-01, e-01, e-02, e+00, e+00,{ e-01, e-01, e+00, e+01, e+01, int ix, iu; e-01, e-01, e+00, e+01, e+01, long node = 1, row; e-01, e-01, e+00, e+01, e+01, float hx, k; e-01, e-01, e-01, e+00, e+00, e-01, e-01, e+00, e+01, e+01, /* initialize U to zero*/ e-01, e-01, e+00, e+00, e+01, for (iu=0; iu<mpt_nu; iu++) { e-01, e-01, e+00, e+00, e+01, U[iu] = 0; e-01, e-01, e+00, e+00, e+00, } e-01, e-01, e+00, e+00, e+00, e-01, e-01, e-01, e+00, e+01, /* find region which contains the state x0 */ e-01, e-01, e-01, e+00, e+01, while (node > 0) { hx = 0; row = (node-1)*(mpt_nx+3); for (ix=0; ix<mpt_nx; ix++) { hx = hx + MPT_ST[row+ix]*X[ix]; } k = MPT_ST[row+MPT_NX]; } if ((hx - k) < 0) { /* x0 on plus-side of the hyperplane */ node = (long)mpt_st[row+mpt_nx+2]; } else { /* x0 on minus-side of the hyperplane */ node = (long)mpt_st[row+mpt_nx+1]; } node = -node; Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

86 Explicit Model Predictive Control MPT Example Ball and Plate - Explicit Controller 4 states + 1 tracking variable = 5 parameters Move-blocking reduces complexity Horizon of 10 Inputs 2-10 must be equal Explicit solution (per dimension) Regions : 529 Storage : numbers (192 kb) Computation : FLOPS (~1ms) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

87 Explicit Model Predictive Control MPT Example Ball and Plate - Pentagram Simulation Experiment Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

88 Explicit Model Predictive Control MPT Example Real-time MPC Software Toolbox Formal specification YALMIP HYSDEL Linear + Hybrid models Verified controller Control law Explicit MPC Fixed-complexity solutions Software synthesis Real-time workshop Bounded-time solvers Verifiable code generation Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

89 Explicit Model Predictive Control Summary Table of Contents 1. Explicit Model Predictive Control 1.1 Introduction 1.2 mpqp 1.3 mplp 1.4 Constrained Finite Time Optimal Control 1.5 Online Evaluation: Point Location Problem 1.6 MPT Example 1.7 Summary xplicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester 2016

90 Explicit Model Predictive Control Summary Summary Linear MPC + Quadratic or linear-norm cost Controller is PWA function We can pre-compute this function offline efficiently Online evaluation of a PWA function is very fast (ns - µs) We can only do this for very small systems! (3-6 states) Explicit Model Predictive Control F. Borrelli, C. Jones, M. Morari, M. Zeilinger - Spring Semester

91 Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones, M. Zeilinger Institut für Automatik, ETH Zürich Institute for Dynamic Systems and Control, ETH Zürich UC Berkley EPFL Spring Semester 2016 Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

92 Table of Contents 1. Modeling of Hybrid Systems 1.1 Introduction 1.2 Examples of Hybrid Systems 1.3 Piecewise Affine (PWA) Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model 2. Optimal Control of Hybrid Systems 3. Model Predictive Control of Hybrid Systems 4. Explicit MPC of Hybrid Systems ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

93 Modeling of Hybrid Systems Table of Contents 1. Modeling of Hybrid Systems 2. Optimal Control of Hybrid Systems 3. Model Predictive Control of Hybrid Systems 4. Explicit MPC of Hybrid Systems ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

94 Modeling of Hybrid Systems Introduction Table of Contents 1. Modeling of Hybrid Systems 1.1 Introduction 1.2 Examples of Hybrid Systems 1.3 Piecewise Affine (PWA) Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

95 Modeling of Hybrid Systems Introduction Introduction Up to this point: Discrete-time linear systems with linear constraints. We now consider MPC for systems with 1 Continuous dynamics: described by one or more difference (or differential) equations; states are continuous-valued. 2 Discrete events: state variables assume discrete values, e.g. binary digits {0, 1}, N, Z, Q,... finite set of symbols Hybrid systems: Dynamical systems whose state evolution depends on an interaction between continuous dynamics and discrete events. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

96 Modeling of Hybrid Systems Introduction Introduction Introduction binary inputs discrete dynamics and logic binary outputs events mode switches real-valued outputs continuous dynamics real-valued inputs Figure: Hybrid systems. Logic-based discrete dynamics and continuous dynamics interact through events and mode switches Hybrid systems: Logic-based discrete dynamics and continuous dynamics interact through events and mode switches Francesco Borrelli (UC Berkeley) Hybrid Systems April 25, / 59 Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

97 Modeling of Hybrid Systems Examples of Hybrid Systems Table of Contents 1. Modeling of Hybrid Systems 1.1 Introduction 1.2 Examples of Hybrid Systems 1.3 Piecewise Affine (PWA) Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

98 Modeling of Hybrid Systems Hybrid Systems: Examples (I) Mechanical System system with with backlash Backlash Examples of Hybrid Systems δ ε x x 1 x2 Continuous dynamics: :statesx x 1, 1, x 2 x, 2, ẋ 1 ẋ, 1, ẋ 2 ẋ. 2. Discrete events: : a) a) contact contact mode mode mechanical mechanical parts parts are are in in contact contact and and the the force force is is transmitted. Condition: transmitted. Condition: [( x = δ) (ẋ 1 > ẋ 2 )] [( x = ε) (ẋ2 ẋ 1 )] [( x = δ) (ẋ 1 > ẋ b) backlash mode mechanical 2)] [( x = ε) (ẋ 2 > ẋ parts are not in contact 1)] b) backlash mode mechanical parts are not in contact Francesco Borrelli (UC Berkeley) Hybrid Systems April 25, / 59 Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

99 Hybrid Systems: Examples (II) DCDC DC2DC Converter Modeling of Hybrid Systems Examples of Hybrid Systems ybrid Systems: Examples (II) C2DC Converter r l r l r l v l v l v s v s v l v s i l i l l S S =0 =0 =0 S S =1 =1 S =1 v c v c v c i i r 0 r 0 c c i r c r 0 r 0 v 0 v 0 r 0 v 0 i c i c i c Continuous dynamics :statesv l, l i, l i, l v, c v, c i, c i, c v, 0 v, 0 i, 0 i 0 Continuous dynamics: states v l, i l, v c, i c, v 0, i 0 Continuous Discrete events dynamics : : S S =0,S :statesv =1 =1 l, i l, v c, i c, v 0, i Discrete events: S = 0, S = 1 0 Discrete events : S =0,S =1 MODE Mode 1 1 (S (S =1) = MODE Mode 22 (S 2 (S = (S =0) MODE 1 (S =1) MODE 2 (S =0) Francesco Borrelli (UC (UCBerkeley) Hybrid Systems April April 25, 25, / 559 / 59 ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

100 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Table of Contents 1. Modeling of Hybrid Systems 1.1 Introduction 1.2 Examples of Hybrid Systems 1.3 Piecewise Affine (PWA) Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

101 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Piecewise Affine (PWA) Systems PWA systems are defined by: affine dynamics and output in each region: { } x(t + 1) = Ai x(t) + B i u(t) + f i y(t) = C i x(t) + D i u(t) + g i polyhedral partition of the (x, u)-space: with x R n, u R m {X i } s i=1 := {x, u H ix + J i u K i } if (x(t), u(t)) X i(t) Physical constraints on x(t) and u(t) are defined by polyhedra X i Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

102 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Piecewise Affine (PWA) Systems Examples: linearization of a non-linear system at different operating point useful as an approximation tool closed-loop MPC system for linear constrained systems When the mode i is an exogenous variable, the partition disappears and we refer to the system as a Switched Affine System (SAS) Definition: Well-Posedness Let P be a PWA system and let X = s i=1x i R n+m be the polyhedral partition associated with it. System P is called well-posed if for all pairs (x(t), u(t)) X there exists only one index i(t) satisfying the membership condition. ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

103 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Binary States, Inputs, and Outputs Remark: In the previous example, the PWA system has only continuous states and inputs. We will formulate PWA systems including binary state and inputs by treating 0 1 binary variables as: Numbers, over which arithmetic operations are defined, Boolean variables, over which Boolean functions are defined. We will use the notation x = [ xc x l ] R nc {0, 1} n l, n n c + n l ; y R pc {0, 1} p l, p p c + p l ; u R mc {0, 1} m l, m m c + m l. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

104 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Boolean Algebra: Basic Definitions and Notation Boolean variable: A variable δ is a Boolean variable if δ {0, 1}, where δ = 0 means false, δ = 1 means true. A Boolean expression is obtained by combining Boolean variables through the logic operators (not), (or), (and), (implied by), (implies), and (iff). A Boolean function f : {0, 1} n 1 {0, 1} is used to define a Boolean variable δ n as a logic function of other variables δ 1,..., δ n 1 : δ n = f (δ 1, δ 2,..., δ n 1 ). Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

105 Modeling of Hybrid Systems Piecewise Affine (PWA) Systems Example x c (t + 1) = 2x c (t) + u c (t) 3u l (t) x l (t + 1) = x l (t) u l (t) can be represented in the PWA form [ 2xc (t) + u c (t) 0 [ 2xc (t) + u c (t) 3 [ ] xc (t + 1) 0 = x l (t + 1) [ 2xc (t) + u c (t) 0 [ 2xc (t) + u c (t) 3 1 ] ] ] ] if x l 1 2, u l 1 2 if x l 1 2, u l ɛ if x l ɛ, u l 1 2 if x l ɛ, u l ɛ. by associating x l = 0 with x l 1 2 and x l = 1 with x l ɛ for any 0 < ɛ 1 2. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

106 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Table of Contents 1. Modeling of Hybrid Systems 1.1 Introduction 1.2 Examples of Hybrid Systems 1.3 Piecewise Affine (PWA) Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

107 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Mixed Logical Dynamical Systems Goal: Describe hybrid system in form compatible with optimization software: continuous and boolean variables linear equalities and inequalities Idea: associate to each Boolean variable p i a binary integer variable δ i : p i {δ i = 1}, p i {δ i = 0} and embed them into a set of constraints as linear integer inequalities. Two main steps: 1 Translation of Logic Rules into Linear Integer Inequalities 2 Translation continuous and logical components into Linear Mixed-Integer Relations Final result: a compact model with linear equalities and inequalities involving real and binary variables Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

108 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Boolean formulas as Linear Integer Inequalities Goal Given a Boolean formula F(p 1, p 2,..., p n ) define a polyhedral set P such that a set of binary values {δ 1, δ 2,..., δ n } satisfies the Boolean formula F in P F(p 1, p 2,..., p n ) TRUE Aδ B, δ {0, 1} n where: {δ i = 1} p i = TRUE. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

109 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Analytic Approach 1 Transform F(p 1, p 2,..., p n ) into a Conjuctive Normal Form (CNF): F(p 1, p 2,..., p n ) = [ ] p i j i 2 Translation of a CNF into algebraic inequalities: relation Boolean linear constraints AND δ 1 δ 2 δ 1 1, δ 2 1 also δ 1 + δ 2 2 OR δ 1 δ 2 δ 1 + δ 2 1 NOT δ 1 (1 δ 1 ) 1 also δ 1 = 0 XOR δ 1 δ 2 δ 1 + δ 2 = 1 IMPLY δ 1 δ 2 δ 1 δ 2 0 IFF δ 1 δ 2 δ 1 δ 2 = 0 ASSIGNMENT δ 1 + (1 δ 3 ) 1 δ 3 = δ 1 δ 2 δ 3 δ 1 δ 2 δ 2 + (1 δ 3 ) 1 (1 δ 1 ) + (1 δ 2 ) + δ 3 1 Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

110 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Analytic Approach. Example Given F(p 1, p 2, p 3, p 4 ) [(p 1 p 2 ) (p 3 p 4 )] find the equivalent set of linear integer inequalities. 1 remove implication: F(p 1, p 2, p 3, p 4 ) = (p 1 p 2 ) (p 3 p 4 ) 2 using DeMorgan s theorem, obtain CNF: F(p 1, p 2, p 3, p 4 ) = ( p 1 p 2 p 3 ) ( p 1 p 2 p 4 ) 3 introduce [δ i = 1] p i = TRUE and write the inequalities: δ 1 + δ 2 δ 3 1 F(p 1, p 2, p 3, p 4 ) = TRUE δ 1 + δ 2 δ 4 1 δ 1,2,3,4 {0, 1} Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

111 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Linear Inequality As Logic Condition Definition: Event Generator An event generator is defined by function f EG : X c U c N 0 D: δ e (t) = f EG (x c (t), u c (t), t) Consider the Boolean expression consisting of a Boolean variable p and continuous variable x R n : where a R n, b R, x X R n : p a T x b X = {x a T x b [m, M ]} Translated to linear inequalitites: a T x b M (1 δ) a T x b > mδ ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

112 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Switched Affine Dynamics Rewrite the state update functions of the SAS as { A1 x z 1 (t) = c (t) + B 1 u c (t) + f 1, if (i(t) = 1), 0, otherwise,. { As x z s (t) = c (t) + B s u c (t) + f s, if (i(t) = s), 0, otherwise, s x c (t + 1) = z i (t), i=1 In general, use the IF-THEN-ELSE relations IF δ THEN z = a 1x + b 1u + f 1 ELSE z = a 2x + b 2u + f 2, Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

113 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model IF-THEN-ELSE Relations IF p THEN (m 2 M 1)δ + z t a T 2 x t + b 2 ELSE z t = a T 1 x t + b 1 z t = a T 2 x t + b 2 (m 1 M 2)δ z t a T 2 x t b 2 (m 1 M 2)(1 δ) + z t a T 1 x t + b 1 (m 2 M 1)(1 δ) z t a T 1 x t b 1 where x X, with sup x X a T i x + b i M i, inf x X at i x + b i m i. ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

114 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Hybrid Modelling - An Example Consider the following system with constraints: x 10, u 10 { 0.8x t + u t if x t 0 x t+1 = 0.8x t + u t if x t < 0 1 associate {δ t = 1} {x t 0} mδ t x t m (M + ɛ)δ t x t ɛ, where: M = m = 10, ɛ > 0. 2 state update equation: x t+1 = 1.6δ t x t 0.8x t + u t Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

115 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model Hybrid Modelling - An Example 3 introduce variable: z t = δ t x t x t+1 = 1.6z t 0.8x t + u t 4 constraints on z: z t M δ t z t mδ t z t x t m(1 δ t ) z t x t M (1 δ t ) Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

116 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model MLD Hybrid Model A DHA can be converted into the following MLD model x t+1 = Ax t + B 1 u t + B 2 δ t + B 3 z t y t = Cx t + D 1 u t + D 2 δ t + D 3 z t E 2 δ t + E 3 z t E 4 x t + E 1 u t + E 5 where x R nc {0, 1} n l, u R mc {0, 1} m l and z R rc. y R pc {0, 1} p l, δ {0, 1} r l Physical constraints on continuous variables: {[ ] } xc C = R nc+mc Fx u c + Gu c H c Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

117 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model MLD Hybrid Model. Well-Posedness Well-Posedness: for a given x = [ xt u t ] x t+1 and y t uniquely determined Complete Well-Posedness: well-posedness + uniquely determined δ t and z t, [ xt u t ] Well-posedness is sufficient for the computation of the state and output prediction Complete well-posedness allows transformation into equivalent hybrid models Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

118 Modeling of Hybrid Systems Mixed Logical Dynamical (MLD) Hybrid Model HYbrid System DEscription Language HYSDEL based on DHA enables description of discrete-time hybrid systems in a compact way: automata and propositional logic continuous dynamics A/D and D/A conversion definition of constraints automatically generates MLD models for MATLAB freely available from: hybrid/hysdel/ Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

119 Optimal Control of Hybrid Systems Table of Contents 1. Modeling of Hybrid Systems 2. Optimal Control of Hybrid Systems 3. Model Predictive Control of Hybrid Systems 4. Explicit MPC of Hybrid Systems ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

120 Optimal Control of Hybrid Systems Optimal Control for Hybrid Systems: General Formulation Consider the CFTOC problem: N 1 J (x(t)) = min p(x N ) + q(x k, u k, δ k, z k ), U 0 k=0 x k+1 = Ax k + B 1 u k + B 2 δ k + B 3 z k E s.t. 2 δ k + E 3 z k E 4 x k + E 1 u k + E 5 x N X f x 0 = x(t) where x R nc {0, 1} n b, u R mc {0, 1} m b, y R pc {0, 1} p b, δ {0, 1} r b and z R rc and U 0 = {u 0, u 1,..., u N 1 } Mixed Integer Optimization Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

121 Optimal Control of Hybrid Systems Mixed Integer Linear Programming Consider the following MILP: inf [zc,z b ] subj. to c cz c + c b z b + d G c z c + G b z b W z c R sc, z b {0, 1} s b where z c R sc, z b {0, 1} s b MILP are nonconvex, in general. For a fixed z b the MILP becomes a linear program: inf [zc,z b ] c cz c + (c b z b + d) subj. to G c z c W G b z b z c R sc Brute force approach to solution: enumerating the 2 s b integer values of the variable z b and solve the corresponding LPs. By comparing the 2 s b optimal costs one can find the optimizer and the optimal cost of the MILP. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

122 Optimal Control of Hybrid Systems Mixed Integer Quadratic Programming Consider the following MIQP: inf [zc,z b ] subj. to where H 0, z c R sc, z b {0, 1} s b. MIQP are nonconvex, in general. 1 2 z Hz + q z + r G c z c + G b z b W z c R sc, z b {0, 1} s b z = [z c, z b ], s = s c + s d For a fixed integer value z b of z b, the MIQP becomes a quadratic program: inf [zc] subj. to 1 2 z ch c z c + q cz + k G c z c W G b z b z c R sc Brute force approach to the solution: enumerating all the 2 s b integer values of the variable z b and solve the corresponding QPs. By comparing the 2 s b optimal costs one can derive the optimizer and the optimal cost of the MIQP. Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

123 Optimal Control of Hybrid Systems Branch and Bound (B&B) A common solution method for MIPs, based on relaxations of binaries: {0, 1} [0, 1]. 4.5 Mixed-Integer Optimization Solvers 71 x d,1 =0 relaxed LP LB=10 10 x d,1 =1 x d,2 = x d,2 =1 x d,2 =0 x d,2 = infeasible 19 > UB 16 > UB x d,3 =0 x d,3 =1 optimal solution UB=15 15 < UB = 17 Figure 4.7 Illustration of Branch and Bound procedure. Optimal cost of a solution to a modified problem where some binaries are relaxed is a lower bound on optimal cost. Example 4.6 Illustrative Example for Branch and Bound Procedure We refer Any feasible to Figure solution 4.7. AssumethatwearesolvinganMILPwiththree0-1integervariables to original problem is an upper bound on optimal cost. xd,1,xd,2,xd,3. Use bounds to rule out parts of the B&B tree systematically - much more efficient than brute force search. 1. In a first step we relax the integer constraints, i.e., we allow the variables xd,1,xd,2,xd,3 to vary continuously between 0 and 1. We find the minimum Hybrid Model Predictive Control of the Relaxed LP to F. beborrelli, 10, which M. Morari, must bec. ajones lower- bound Spring Semester on the solution

124 Model Predictive Control of Hybrid Systems Table of Contents 1. Modeling of Hybrid Systems 2. Optimal Control of Hybrid Systems 3. Model Predictive Control of Hybrid Systems 4. Explicit MPC of Hybrid Systems ybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester 2016

125 Model Predictive Control of Hybrid Systems Model Predictive Control of Hybrid Systems MPC solution: Optimization in the loop As for linear MPC, at each sample time: Measure / estimate current state x(t) Find the optimal input sequence for the entire planning window N : U t = {u t, u t+1,..., u t+n 1 } Implement only the first control action u t Key difference: Requires online solution of an MILP or MIQP Hybrid Model Predictive Control F. Borrelli, M. Morari, C. Jones - Spring Semester

ECE7850 Lecture 9. Model Predictive Control: Computational Aspects

ECE7850 Lecture 9. Model Predictive Control: Computational Aspects ECE785 ECE785 Lecture 9 Model Predictive Control: Computational Aspects Model Predictive Control for Constrained Linear Systems Online Solution to Linear MPC Multiparametric Programming Explicit Linear

More information

Example of Multiparametric Solution. Explicit Form of Model Predictive Control. via Multiparametric Programming. Finite-Time Constrained LQR

Example of Multiparametric Solution. Explicit Form of Model Predictive Control. via Multiparametric Programming. Finite-Time Constrained LQR Example of Multiparametric Solution Multiparametric LP ( ø R) 6 CR{,4} CR{,,3} Explicit Form of Model Predictive Control 4 CR{,3} CR{,3} x - -4-6 -6-4 - 4 6 x via Multiparametric Programming Finite-Time

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

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

Prediktivno upravljanje primjenom matematičkog programiranja

Prediktivno upravljanje primjenom matematičkog programiranja Prediktivno upravljanje primjenom matematičkog programiranja Doc. dr. sc. Mato Baotić Fakultet elektrotehnike i računarstva Sveučilište u Zagrebu www.fer.hr/mato.baotic Outline Application Examples PredictiveControl

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

Nonlinear Model Predictive Control Tools (NMPC Tools)

Nonlinear Model Predictive Control Tools (NMPC Tools) Nonlinear Model Predictive Control Tools (NMPC Tools) Rishi Amrit, James B. Rawlings April 5, 2008 1 Formulation We consider a control system composed of three parts([2]). Estimator Target calculator Regulator

More information

Offset Free Model Predictive Control

Offset Free Model Predictive Control Proceedings of the 46th IEEE Conference on Decision and Control New Orleans, LA, USA, Dec. 12-14, 27 Offset Free Model Predictive Control Francesco Borrelli, Manfred Morari. Abstract This work addresses

More information

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

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

Online Model Predictive Torque Control for Permanent Magnet Synchronous Motors

Online Model Predictive Torque Control for Permanent Magnet Synchronous Motors Online Model Predictive Torque Control for Permanent Magnet Synchronous Motors Gionata Cimini, Daniele Bernardini, Alberto Bemporad and Stephen Levijoki ODYS Srl General Motors Company 2015 IEEE International

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

Linear Offset-Free Model Predictive Control

Linear Offset-Free Model Predictive Control Linear Offset-Free Model Predictive Control Urban Maeder a,, Francesco Borrelli b, Manfred Morari a a Automatic Control Lab, ETH Zurich, CH-892 Zurich, Switzerland b Department of Mechanical Engineering,

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

Model Predictive Control of Hybrid Systems by A. Bemporad Controllo di Processo e dei Sistemi di Produzione A.a.

Model Predictive Control of Hybrid Systems by A. Bemporad Controllo di Processo e dei Sistemi di Produzione A.a. Model Predictive Control of Hybrid Systems 2009 by A. Bemporad Controllo di Processo e dei Sistemi di Produzione A.a. 2008/09 1/52 Hybrid Control Problem hybrid process continuous inputs continuous states

More information

5. Duality. Lagrangian

5. Duality. Lagrangian 5. Duality Convex Optimization Boyd & Vandenberghe Lagrange dual problem weak and strong duality geometric interpretation optimality conditions perturbation and sensitivity analysis examples generalized

More information

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

Prashant Mhaskar, Nael H. El-Farra & Panagiotis D. Christofides. Department of Chemical Engineering University of California, Los Angeles HYBRID PREDICTIVE OUTPUT FEEDBACK STABILIZATION OF CONSTRAINED LINEAR SYSTEMS Prashant Mhaskar, Nael H. El-Farra & Panagiotis D. Christofides Department of Chemical Engineering University of California,

More information

Constrained Optimization and Lagrangian Duality

Constrained Optimization and Lagrangian Duality CIS 520: Machine Learning Oct 02, 2017 Constrained Optimization and Lagrangian Duality Lecturer: Shivani Agarwal Disclaimer: These notes are designed to be a supplement to the lecture. They may or may

More information

Lecture: Duality.

Lecture: Duality. Lecture: Duality http://bicmr.pku.edu.cn/~wenzw/opt-2016-fall.html Acknowledgement: this slides is based on Prof. Lieven Vandenberghe s lecture notes Introduction 2/35 Lagrange dual problem weak and strong

More information

MODEL PREDICTIVE SLIDING MODE CONTROL FOR CONSTRAINT SATISFACTION AND ROBUSTNESS

MODEL PREDICTIVE SLIDING MODE CONTROL FOR CONSTRAINT SATISFACTION AND ROBUSTNESS MODEL PREDICTIVE SLIDING MODE CONTROL FOR CONSTRAINT SATISFACTION AND ROBUSTNESS Yizhou Wang, Wenjie Chen, Masayoshi Tomizuka Department of Mechanical Engineering University of California Berkeley, California

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

Reference Governor for Constrained Piecewise Affine Systems

Reference Governor for Constrained Piecewise Affine Systems Reference Governor for Constrained Piecewise Affine Systems Francesco Borrelli a,, Paolo Falcone b, Jaroslav Pekar c, Greg Stewart d a Department of Mechanical Engineering, University of California, Berkeley,

More information

Lecture: Duality of LP, SOCP and SDP

Lecture: Duality of LP, SOCP and SDP 1/33 Lecture: Duality of LP, SOCP and SDP Zaiwen Wen Beijing International Center For Mathematical Research Peking University http://bicmr.pku.edu.cn/~wenzw/bigdata2017.html wenzw@pku.edu.cn Acknowledgement:

More information

Convex Optimization M2

Convex Optimization M2 Convex Optimization M2 Lecture 3 A. d Aspremont. Convex Optimization M2. 1/49 Duality A. d Aspremont. Convex Optimization M2. 2/49 DMs DM par email: dm.daspremont@gmail.com A. d Aspremont. Convex Optimization

More information

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

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

More information

Convex Optimization Boyd & Vandenberghe. 5. Duality

Convex Optimization Boyd & Vandenberghe. 5. Duality 5. Duality Convex Optimization Boyd & Vandenberghe Lagrange dual problem weak and strong duality geometric interpretation optimality conditions perturbation and sensitivity analysis examples generalized

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

ECE7850 Lecture 8. Nonlinear Model Predictive Control: Theoretical Aspects

ECE7850 Lecture 8. Nonlinear Model Predictive Control: Theoretical Aspects ECE7850 Lecture 8 Nonlinear Model Predictive Control: Theoretical Aspects Model Predictive control (MPC) is a powerful control design method for constrained dynamical systems. The basic principles and

More information

ICS-E4030 Kernel Methods in Machine Learning

ICS-E4030 Kernel Methods in Machine Learning ICS-E4030 Kernel Methods in Machine Learning Lecture 3: Convex optimization and duality Juho Rousu 28. September, 2016 Juho Rousu 28. September, 2016 1 / 38 Convex optimization Convex optimisation This

More information

Probabilistic Controllability Analysis of Sampled-Data/Discrete-Time Piecewise Affine Systems

Probabilistic Controllability Analysis of Sampled-Data/Discrete-Time Piecewise Affine Systems Probabilistic Controllability Analysis of Sampled-Data/Discrete-Time Piecewise Affine Systems Shun-ichi Azuma Jun-ichi Imura Toyo Institute of Technology; 2-12-1, O-oayama, Meguro-u, Toyo 152-8552, Japan

More information

Piecewise-affine functions: applications in circuit theory and control

Piecewise-affine functions: applications in circuit theory and control Piecewise-affine functions: applications in circuit theory and control Tomaso Poggi Basque Center of Applied Mathematics Bilbao 12/04/2013 1/46 Outline 1 Embedded systems 2 PWA functions Definition Classes

More information

Linear Model Predictive Control via Multiparametric Programming

Linear Model Predictive Control via Multiparametric Programming 3 1 Linear Model Predictive Control via Multiparametric Programming Vassilis Sakizlis, Konstantinos I. Kouramas, and Efstratios N. Pistikopoulos 1.1 Introduction Linear systems with input, output, or state

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

1 Computing with constraints

1 Computing with constraints Notes for 2017-04-26 1 Computing with constraints Recall that our basic problem is minimize φ(x) s.t. x Ω where the feasible set Ω is defined by equality and inequality conditions Ω = {x R n : c i (x)

More information

6 OUTPUT FEEDBACK DESIGN

6 OUTPUT FEEDBACK DESIGN 6 OUTPUT FEEDBACK DESIGN When the whole sate vector is not available for feedback, i.e, we can measure only y = Cx. 6.1 Review of observer design Recall from the first class in linear systems that a simple

More information

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

An Introduction to Model-based Predictive Control (MPC) by ECE 680 Fall 2017 An Introduction to Model-based Predictive Control (MPC) by Stanislaw H Żak 1 Introduction The model-based predictive control (MPC) methodology is also referred to as the moving horizon

More information

AM 205: lecture 19. Last time: Conditions for optimality, Newton s method for optimization Today: survey of optimization methods

AM 205: lecture 19. Last time: Conditions for optimality, Newton s method for optimization Today: survey of optimization methods AM 205: lecture 19 Last time: Conditions for optimality, Newton s method for optimization Today: survey of optimization methods Quasi-Newton Methods General form of quasi-newton methods: x k+1 = x k α

More information

Complexity Reduction in Explicit MPC through Model Reduction

Complexity Reduction in Explicit MPC through Model Reduction Proceedings of the 17th World Congress The International Federation of Automatic Control Seoul, Korea, July 6-11, 28 Complexity Reduction in Explicit MPC through Model Reduction Svein Hovland Jan Tommy

More information

CE 191: Civil & Environmental Engineering Systems Analysis. LEC 17 : Final Review

CE 191: Civil & Environmental Engineering Systems Analysis. LEC 17 : Final Review CE 191: Civil & Environmental Engineering Systems Analysis LEC 17 : Final Review Professor Scott Moura Civil & Environmental Engineering University of California, Berkeley Fall 2014 Prof. Moura UC Berkeley

More information

Modern Optimal Control

Modern Optimal Control Modern Optimal Control Matthew M. Peet Arizona State University Lecture 19: Stabilization via LMIs Optimization Optimization can be posed in functional form: min x F objective function : inequality constraints

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

Model Predictive Control of Hybrid Systems. Model Predictive Control of Hybrid Systems. Receding Horizon - Example. Receding Horizon Philosophy

Model Predictive Control of Hybrid Systems. Model Predictive Control of Hybrid Systems. Receding Horizon - Example. Receding Horizon Philosophy Model Predictive Control of Hybrid Systems Alberto Bemporad Dip. di Ingegneria dell Informazione Università degli Studi di Siena bemporad@dii.unisi.it http://www.dii.unisi.it/~bemporad Università degli

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

Lecture 18: Optimization Programming

Lecture 18: Optimization Programming Fall, 2016 Outline Unconstrained Optimization 1 Unconstrained Optimization 2 Equality-constrained Optimization Inequality-constrained Optimization Mixture-constrained Optimization 3 Quadratic Programming

More information

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10)

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10) Subject: Optimal Control Assignment- (Related to Lecture notes -). Design a oil mug, shown in fig., to hold as much oil possible. The height and radius of the mug should not be more than 6cm. The mug must

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

Algorithms for nonlinear programming problems II

Algorithms for nonlinear programming problems II Algorithms for nonlinear programming problems II Martin Branda Charles University Faculty of Mathematics and Physics Department of Probability and Mathematical Statistics Computational Aspects of Optimization

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

Support Vector Machines

Support Vector Machines Support Vector Machines Support vector machines (SVMs) are one of the central concepts in all of machine learning. They are simply a combination of two ideas: linear classification via maximum (or optimal

More information

CSCI : Optimization and Control of Networks. Review on Convex Optimization

CSCI : Optimization and Control of Networks. Review on Convex Optimization CSCI7000-016: Optimization and Control of Networks Review on Convex Optimization 1 Convex set S R n is convex if x,y S, λ,µ 0, λ+µ = 1 λx+µy S geometrically: x,y S line segment through x,y S examples (one

More information

Lecture Note 5: Semidefinite Programming for Stability Analysis

Lecture Note 5: Semidefinite Programming for Stability Analysis ECE7850: Hybrid Systems:Theory and Applications Lecture Note 5: Semidefinite Programming for Stability Analysis Wei Zhang Assistant Professor Department of Electrical and Computer Engineering Ohio State

More information

A Brief Review on Convex Optimization

A Brief Review on Convex Optimization A Brief Review on Convex Optimization 1 Convex set S R n is convex if x,y S, λ,µ 0, λ+µ = 1 λx+µy S geometrically: x,y S line segment through x,y S examples (one convex, two nonconvex sets): A Brief Review

More information

Support Vector Machines: Maximum Margin Classifiers

Support Vector Machines: Maximum Margin Classifiers Support Vector Machines: Maximum Margin Classifiers Machine Learning and Pattern Recognition: September 16, 2008 Piotr Mirowski Based on slides by Sumit Chopra and Fu-Jie Huang 1 Outline What is behind

More information

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 17

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 17 EE/ACM 150 - Applications of Convex Optimization in Signal Processing and Communications Lecture 17 Andre Tkacenko Signal Processing Research Group Jet Propulsion Laboratory May 29, 2012 Andre Tkacenko

More information

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

FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES. Danlei Chu, Tongwen Chen, Horacio J. Marquez FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES Danlei Chu Tongwen Chen Horacio J Marquez Department of Electrical and Computer Engineering University of Alberta Edmonton

More information

The Explicit Solution of Model Predictive Control via Multiparametric Quadratic Programming

The Explicit Solution of Model Predictive Control via Multiparametric Quadratic Programming Proceedings of the American Control Conference Chicago, Illinois June 2000 The Explicit Solution of Model Predictive Control via Multiparametric Quadratic Programming Alberto Bemporad t, Manfred Morari

More information

UC Berkeley Department of Electrical Engineering and Computer Science. EECS 227A Nonlinear and Convex Optimization. Solutions 5 Fall 2009

UC Berkeley Department of Electrical Engineering and Computer Science. EECS 227A Nonlinear and Convex Optimization. Solutions 5 Fall 2009 UC Berkeley Department of Electrical Engineering and Computer Science EECS 227A Nonlinear and Convex Optimization Solutions 5 Fall 2009 Reading: Boyd and Vandenberghe, Chapter 5 Solution 5.1 Note that

More information

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

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

More information

Trajectory Tracking Control of Bimodal Piecewise Affine Systems

Trajectory Tracking Control of Bimodal Piecewise Affine Systems 25 American Control Conference June 8-1, 25. Portland, OR, USA ThB17.4 Trajectory Tracking Control of Bimodal Piecewise Affine Systems Kazunori Sakurama, Toshiharu Sugie and Kazushi Nakano Abstract This

More information

Duality Theory of Constrained Optimization

Duality Theory of Constrained Optimization Duality Theory of Constrained Optimization Robert M. Freund April, 2014 c 2014 Massachusetts Institute of Technology. All rights reserved. 1 2 1 The Practical Importance of Duality Duality is pervasive

More information

Lecture 3. Optimization Problems and Iterative Algorithms

Lecture 3. Optimization Problems and Iterative Algorithms Lecture 3 Optimization Problems and Iterative Algorithms January 13, 2016 This material was jointly developed with Angelia Nedić at UIUC for IE 598ns Outline Special Functions: Linear, Quadratic, Convex

More information

Explicit constrained nonlinear MPC

Explicit constrained nonlinear MPC Tor A. Johansen Norwegian University of Science and Technology, Trondheim, Norway Main topics ffl Approximate explicit nonlinear MPC based on orthogonal search trees ffl Approximate explicit nonlinear

More information

Hot-Starting NLP Solvers

Hot-Starting NLP Solvers Hot-Starting NLP Solvers Andreas Wächter Department of Industrial Engineering and Management Sciences Northwestern University waechter@iems.northwestern.edu 204 Mixed Integer Programming Workshop Ohio

More information

Lecture 13: Constrained optimization

Lecture 13: Constrained optimization 2010-12-03 Basic ideas A nonlinearly constrained problem must somehow be converted relaxed into a problem which we can solve (a linear/quadratic or unconstrained problem) We solve a sequence of such problems

More information

MODERN CONTROL DESIGN

MODERN CONTROL DESIGN CHAPTER 8 MODERN CONTROL DESIGN The classical design techniques of Chapters 6 and 7 are based on the root-locus and frequency response that utilize only the plant output for feedback with a dynamic controller

More information

Model Predictive Control of Magnetic Automotive Actuators

Model Predictive Control of Magnetic Automotive Actuators Proceedings of the 27 American Control Conference Marriott Marquis Hotel at Times Square New York City, USA, July 11-13, 27 FrB6.1 Model Predictive Control of Magnetic Automotive Actuators Stefano Di Cairano,

More information

Frank-Wolfe Method. Ryan Tibshirani Convex Optimization

Frank-Wolfe Method. Ryan Tibshirani Convex Optimization Frank-Wolfe Method Ryan Tibshirani Convex Optimization 10-725 Last time: ADMM For the problem min x,z f(x) + g(z) subject to Ax + Bz = c we form augmented Lagrangian (scaled form): L ρ (x, z, w) = f(x)

More information

EE/AA 578, Univ of Washington, Fall Duality

EE/AA 578, Univ of Washington, Fall Duality 7. Duality EE/AA 578, Univ of Washington, Fall 2016 Lagrange dual problem weak and strong duality geometric interpretation optimality conditions perturbation and sensitivity analysis examples generalized

More information

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods

AM 205: lecture 19. Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods AM 205: lecture 19 Last time: Conditions for optimality Today: Newton s method for optimization, survey of optimization methods Optimality Conditions: Equality Constrained Case As another example of equality

More information

X X 1. x (t,x0,u y ) x2 (t,x0,u y ) x-space x u(t)

X X 1. x (t,x0,u y ) x2 (t,x0,u y ) x-space x u(t) Piecewise Linear Optimal Controllers for Hybrid Systems Alberto Bemporad, Francesco Borrelli, Manfred Morari Automatic Control Laboratory ETH Zentrum, ETL I 6 CH-9 Zurich, Switzerland bemporad,borrelli,morari@aut.ee.ethz.ch

More information

Interior-Point Methods for Linear Optimization

Interior-Point Methods for Linear Optimization Interior-Point Methods for Linear Optimization Robert M. Freund and Jorge Vera March, 204 c 204 Robert M. Freund and Jorge Vera. All rights reserved. Linear Optimization with a Logarithmic Barrier Function

More information

Algorithms for nonlinear programming problems II

Algorithms for nonlinear programming problems II Algorithms for nonlinear programming problems II Martin Branda Charles University in Prague Faculty of Mathematics and Physics Department of Probability and Mathematical Statistics Computational Aspects

More information

Convex Optimization and Modeling

Convex Optimization and Modeling Convex Optimization and Modeling Duality Theory and Optimality Conditions 5th lecture, 12.05.2010 Jun.-Prof. Matthias Hein Program of today/next lecture Lagrangian and duality: the Lagrangian the dual

More information

Constrained Linear Quadratic Optimal Control

Constrained Linear Quadratic Optimal Control 5 Constrained Linear Quadratic Optimal Control 51 Overview Up to this point we have considered rather general nonlinear receding horizon optimal control problems Whilst we have been able to establish some

More information

Robust Explicit MPC Based on Approximate Multi-parametric Convex Programming

Robust Explicit MPC Based on Approximate Multi-parametric Convex Programming 43rd IEEE Conference on Decision and Control December 4-7, 24 Atlantis, Paradise Island, Bahamas WeC6.3 Robust Explicit MPC Based on Approximate Multi-parametric Convex Programming D. Muñoz de la Peña

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

Explicit Model Predictive Control for Linear Parameter-Varying Systems

Explicit Model Predictive Control for Linear Parameter-Varying Systems Proceedings of the 47th IEEE Conference on Decision and Control Cancun, Mexico, Dec. 9-11, 2008 Explicit Model Predictive Control for Linear Parameter-Varying Systems Thomas Besselmann, Johan Löfberg and

More information

IMPROVED MPC DESIGN BASED ON SATURATING CONTROL LAWS

IMPROVED MPC DESIGN BASED ON SATURATING CONTROL LAWS IMPROVED MPC DESIGN BASED ON SATURATING CONTROL LAWS D. Limon, J.M. Gomes da Silva Jr., T. Alamo and E.F. Camacho Dpto. de Ingenieria de Sistemas y Automática. Universidad de Sevilla Camino de los Descubrimientos

More information

Explicit Robust Model Predictive Control

Explicit Robust Model Predictive Control Explicit Robust Model Predictive Control Efstratios N. Pistikopoulos Nuno P. Faísca Konstantinos I. Kouramas Christos Panos Centre for Process Systems Engineering, Department of Chemical Engineering, Imperial

More information

Regional Solution of Constrained LQ Optimal Control

Regional Solution of Constrained LQ Optimal Control Regional Solution of Constrained LQ Optimal Control José DeDoná September 2004 Outline 1 Recap on the Solution for N = 2 2 Regional Explicit Solution Comparison with the Maximal Output Admissible Set 3

More information

Uses of duality. Geoff Gordon & Ryan Tibshirani Optimization /

Uses of duality. Geoff Gordon & Ryan Tibshirani Optimization / Uses of duality Geoff Gordon & Ryan Tibshirani Optimization 10-725 / 36-725 1 Remember conjugate functions Given f : R n R, the function is called its conjugate f (y) = max x R n yt x f(x) Conjugates appear

More information

LINEAR TIME VARYING TERMINAL LAWS IN MPQP

LINEAR TIME VARYING TERMINAL LAWS IN MPQP LINEAR TIME VARYING TERMINAL LAWS IN MPQP JA Rossiter Dept of Aut Control & Systems Eng University of Sheffield, Mappin Street Sheffield, S1 3JD, UK email: JARossiter@sheffieldacuk B Kouvaritakis M Cannon

More information

Course Outline. FRTN10 Multivariable Control, Lecture 13. General idea for Lectures Lecture 13 Outline. Example 1 (Doyle Stein, 1979)

Course Outline. FRTN10 Multivariable Control, Lecture 13. General idea for Lectures Lecture 13 Outline. Example 1 (Doyle Stein, 1979) Course Outline FRTN Multivariable Control, Lecture Automatic Control LTH, 6 L-L Specifications, models and loop-shaping by hand L6-L8 Limitations on achievable performance L9-L Controller optimization:

More information

10 Numerical methods for constrained problems

10 Numerical methods for constrained problems 10 Numerical methods for constrained problems min s.t. f(x) h(x) = 0 (l), g(x) 0 (m), x X The algorithms can be roughly divided the following way: ˆ primal methods: find descent direction keeping inside

More information

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013 EE 56: Digital Control Systems Problem Set 3: Solution Due on Mon 7 th Oct in class Fall 23 Problem For the causal LTI system described by the difference equation y k + 2 y k = x k, () (a) By first finding

More information

Written Examination

Written Examination Division of Scientific Computing Department of Information Technology Uppsala University Optimization Written Examination 202-2-20 Time: 4:00-9:00 Allowed Tools: Pocket Calculator, one A4 paper with notes

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

ALADIN An Algorithm for Distributed Non-Convex Optimization and Control

ALADIN An Algorithm for Distributed Non-Convex Optimization and Control ALADIN An Algorithm for Distributed Non-Convex Optimization and Control Boris Houska, Yuning Jiang, Janick Frasch, Rien Quirynen, Dimitris Kouzoupis, Moritz Diehl ShanghaiTech University, University of

More information

ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints

ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints ISM206 Lecture Optimization of Nonlinear Objective with Linear Constraints Instructor: Prof. Kevin Ross Scribe: Nitish John October 18, 2011 1 The Basic Goal The main idea is to transform a given constrained

More information

You should be able to...

You should be able to... Lecture Outline Gradient Projection Algorithm Constant Step Length, Varying Step Length, Diminishing Step Length Complexity Issues Gradient Projection With Exploration Projection Solving QPs: active set

More information

Convex optimization problems. Optimization problem in standard form

Convex optimization problems. Optimization problem in standard form Convex optimization problems optimization problem in standard form convex optimization problems linear optimization quadratic optimization geometric programming quasiconvex optimization generalized inequality

More information

CONSTRAINED NONLINEAR PROGRAMMING

CONSTRAINED NONLINEAR PROGRAMMING 149 CONSTRAINED NONLINEAR PROGRAMMING We now turn to methods for general constrained nonlinear programming. These may be broadly classified into two categories: 1. TRANSFORMATION METHODS: In this approach

More information

Time-Invariant Linear Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2015

Time-Invariant Linear Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2015 Time-Invariant Linear Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 15 Asymptotic approach from time-varying to constant gains Elimination of cross weighting

More information

Nonlinear Programming Models

Nonlinear Programming Models Nonlinear Programming Models Fabio Schoen 2008 http://gol.dsi.unifi.it/users/schoen Nonlinear Programming Models p. Introduction Nonlinear Programming Models p. NLP problems minf(x) x S R n Standard form:

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

Problem 1 Cost of an Infinite Horizon LQR

Problem 1 Cost of an Infinite Horizon LQR THE UNIVERSITY OF TEXAS AT SAN ANTONIO EE 5243 INTRODUCTION TO CYBER-PHYSICAL SYSTEMS H O M E W O R K # 5 Ahmad F. Taha October 12, 215 Homework Instructions: 1. Type your solutions in the LATEX homework

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

Lagrange Duality. Daniel P. Palomar. Hong Kong University of Science and Technology (HKUST)

Lagrange Duality. Daniel P. Palomar. Hong Kong University of Science and Technology (HKUST) Lagrange Duality Daniel P. Palomar Hong Kong University of Science and Technology (HKUST) ELEC5470 - Convex Optimization Fall 2017-18, HKUST, Hong Kong Outline of Lecture Lagrangian Dual function Dual

More information

Convex Optimization. Newton s method. ENSAE: Optimisation 1/44

Convex Optimization. Newton s method. ENSAE: Optimisation 1/44 Convex Optimization Newton s method ENSAE: Optimisation 1/44 Unconstrained minimization minimize f(x) f convex, twice continuously differentiable (hence dom f open) we assume optimal value p = inf x f(x)

More information

Optimality Conditions for Constrained Optimization

Optimality Conditions for Constrained Optimization 72 CHAPTER 7 Optimality Conditions for Constrained Optimization 1. First Order Conditions In this section we consider first order optimality conditions for the constrained problem P : minimize f 0 (x)

More information