Deterministic Global Optimization for Dynamic Systems Using Interval Analysis
Total Page:16
File Type:pdf, Size:1020Kb
Deterministic Global Optimization for Dynamic Systems Using Interval Analysis Youdong Lin and Mark A. Stadtherr Department of Chemical and Biomolecular Engineering University of Notre Dame, Notre Dame, IN, USA 12th GAMM–IMACS International Symposium on Scientific Computing, Computer Arithmetic and Validated Numerics Duisburg, Germany, 26–29 September 2006 Outline Background • Tools • – Interval Analysis – Taylor Models – Validated Solutions of Parametric ODE Systems Algorithm Summary • Computational Studies • Concluding Remarks • 2 Background Many practically important physical systems are modeled by ODE systems. • Optimization problems involving these models may be stated as • min φ [xµ(θ); θ; µ = 0; 1; : : : ; r] θ;xµ s:t: x_ = f(x; θ) x0 = x0(θ) xµ(θ) = x(tµ; θ) t [t ; tr] 2 0 θ Θ 2 Sequential approach: Eliminate xµ using parametric ODE solver, obtaining • an unconstrained problem in θ May be multiple local solutions – need for global optimization • 3 Deterministic Global Optimization of Dynamic Systems Much recent interest, mostly combining branch-and-bound and relaxation techniques, e.g., Esposito and Floudas (2000): α-BB approach • – Rigorous values of α not used: no theoretical guarantees Chachuat and Latifi (2003): Theoretical guarantee of -global optimality • Papamichail and Adjiman (2002, 2004): Theoretical guarantee of -global • optimality Singer and Barton (2006): Theoretical guarantee of -global optimality • – Use convex underestimators and concave overestimators to construct two bounding IVPs, which are then solved to obtain lower and upper bounds on the state trajectories. – Bounding IVPs are not solved rigorously, so state bounds are not computationally guaranteed. 4 Deterministic Global Optimization of Dynamic Systems Our approach: Branch-and-reduce algorithm based on interval analysis and using Taylor models Basic ideas • – Use local optimizations to obtain an upper bound φ on the global minimum – Compute Taylor models of the state variables using a new validated solver b for parametric ODEs (VSPODE) (Lin and Stadtherr, 2006) – Compute the Taylor model Tφ of the objective function – Perform constraint propagation procedure using Tφ φ, to reduce the ≤ parameter (decision variable) space Θ b – Use branch-and-bound Can implement to obtain either an -global minimum, or (using interval • Newton approach) the exact ( = 0) global minimum 5 Interval Analysis A real interval X = [a; b] = x a x b is a segment on the real • f 2 < j ≤ ≤ g number line. T An interval vector X = (X ; X ; :::; Xn) is an n-dimensional rectangle. • 1 2 Basic interval arithmetic for X = [a; b] and Y = [c; d] is • X op Y = x op y x X; y Y f j 2 2 g Interval elementary functions (e.g., exp(X), sin(X)) are also available. • The interval extension F (X) encloses all values of f(x) for x X; that is, • 2 f(x) x X F (X) f j 2 g ⊆ Interval extensions computed using interval arithmetic may lead to • overestimation of function range (the interval “dependency” problem). 6 Taylor Models Taylor Model Tf = (pf ; Rf ): Bounds a function f(x) over X using a q-th • order Taylor polynomial pf and an interval remainder bound Rf . Could obtain Tf using a truncated Taylor series: • q 1 i pf = i! [(x x0) ] f (x0) i=0 − · 5 1 P q+1 Rf = [(x x ) ] F [x + (x x )ζ] (q+1)! − 0 · 5 0 − 0 where, x X; ζ [0; 1] 0 2 2 k j k g k! 1 jm @ [ ] = j ···j g1 gm j1 jm 1! m! @x ···@xm · 5 j1+···+jm=k · · · 1 0≤j1;···P;jm≤k Can also compute Taylor models by using Taylor model operations (Makino • and Berz, 1996) 7 Taylor Model Operations Let Tf and Tg be the Taylor models of the functions f(x) and g(x), • respectively, over the interval x X. 2 Addition: Tfg = (pfg; Rfg) = (pf pg; Rf Rg) • Multiplication: Tf×g = (pf×g; Rf×g) with pf×g = pf pg pe and • × − Rf×g = B(pe) + B(pf ) Rg + B(pg) Rf + Rf Rg × × × B(p) indicates an interval bound on the function p. • Reciprocal operation and intrinsic functions can also be defined. • Store and operate on coefficients of pf only. Floating point errors are • accumulated in Rf . Beginning with Taylor models of simple functions, Taylor models of very • complicated functions can be computed. Compared to other rigorous bounding methods (e.g., interval arithmetic), • Taylor models often yield sharper bounds for modest to complicated functional dependencies (Makino and Berz, 1999). 8 Taylor Models ± Range Bounding Exact range bounding of the interval polynomials – NP hard • Direct evaluation of the interval polynomials – overestimation • Focus on bounding the dominant part (1st and 2nd order terms) • Exact range bounding of a general interval quadratic – also worst-case • exponential complexity A compromise approach – Exact bounding of 1st order and diagonal 2nd • order terms m 2 B(p) = ai (Xi xi ) + bi(Xi xi ) + S − 0 − 0 i=1 X h i m 2 2 bi bi = ai Xi xi0 + + S; − 2ai − 4ai i=1 " # X where S is the interval bound of other terms by direct evaluation 9 Taylor Models ± Constraint Propagation Consider constraint c(x) 0, x X. Goal – Eliminate parts of X in • ≤ 2 which constraint cannot be satisfied For each i = 1; 2 ; m, shrink Xi using: • · · · 2 2 bi bi B(Tc) = B(pc) + Rc = ai Xi xi + + Si 0 − 0 2a − 4a ≤ i i 2 2 bi bi = aiUi Vi; with Ui = Xi xi0 + and Vi = Si ) ≤ − 2ai 4ai − if ai > 0 and Vi < 0 ; 8 Vi Vi a ; a if ai > 0 and Vi 0 > − i i ≥ = Ui = > q q ) >[ ; ] if ai < 0 and Vi 0 <> −∞ 1 ≥ Vi Vi ; ; if ai < 0 and Vi < 0 > ai ai > −∞ − [ 1 > q q > bi = Xi = :Xi Ui + xi ) \ 0 − 2a i 10 Validated Solution of Parametric ODE Systems Consider the parametric ODE system • x_ = f(x; θ) x(t ) = x X 0 0 2 0 θ Θ 2 Validated methods: • – Guarantee there exists a unique solution x(t) in [t ; tf ], for each θ Θ and 0 2 x X 0 2 0 – Compute an interval Xj that encloses all solutions of the ODE system at tj for θ Θ and x X 2 0 2 0 Tools are available – VNODE, COSY VI, AWA, etc. • – May need to treat parameters as additional state variables with zero derivative New tool – VSPODE (Lin and Stadtherr, 2006): Deals directly with interval-valued • parameters (and also interval-valued initial states) 11 New Method for Parametric ODEs Use interval Taylor series to represent dependence on time. Use Taylor • models to represent dependence on uncertain quantities (parameters and initial states). Assuming Xj is known, then • – Phase 1: Same as “standard” approach (e.g., VNODE). Compute a coarse enclosure X~ j and prove existence and uniqueness. Use fixed point iteration with Picard operator using high-order interval Taylor series. – Phase 2: Refine the coarse enclosure to obtain Xj+1. Use Taylor models in terms of the uncertain parameters and initial states. Implemented in VSPODE (Validating Solver for Parametric ODEs) (Lin and • Stadtherr, 2006). 12 Method for Phase 2 Represent uncertain initial states and parameters using Taylor models T x • 0 and T θ, with components Tx = (m(Xi ) + (xi m(Xi )); [0; 0]); i = 1; ; m i0 0 0 − 0 · · · Tθ = (m(Θi) + (θi m(Θi)); [0; 0]); i = 1; ; p: i − · · · Bound the interval Taylor series coefficients f [i] by computing • Taylor models T f [i] . – Use mean value theorem. – Evaluate using Taylor model operations. Reduce “wrapping effect” by using a new type of Taylor model involving a • parallelpiped remainder bound. This results in a Taylor model T x in terms of the initial states x and • j+1 0 parameters θ. Compute the enclosure Xj = B(T x ) by bounding over X and Θ. • +1 j+1 0 13 VSPODE Example Lotka-Volterra Problem • x_ = θ x (1 x ) 1 1 1 − 2 x_ = θ x (x 1) 2 2 2 1 − T x0 = (1:2; 1:1) θ [2:99; 3:01] 1 2 θ [0:99; 1:01] 2 2 Integrate from t = 0 to tN = 10. • 0 VSPODE run using q = 5 (order of Taylor model), k = 17 (order of interval • Taylor series) and QR for wrapping. For comparison, VNODE was used, with interval parameters treated as • additional state variables, and run using k = 17 order interval Hermite-Obreschkoff and QR for wrapping. Constant step size of h = 0:1 used in both VSPODE and VNODE (step size • may be reduced if necessary in Phase 1). 14 Lotka-Volterra Problem 1.5 1.4 1.3 ← X 1 1.2 ← X 2 1.1 x 1 0.9 0.8 0.7 0.6 VSPODE VNODE 0.5 0 1 2 3 4 5 6 7 8 9 10 t (Eventual breakdown of VSPODE at t = 31:8) 15 Summary of Global Optimization Algorithm Beginning with initial parameter interval Θ(0) Establish φ, the upper bound on global minimum using p2 local • minimizations, where p is the number of parameters (decision variables) b Iterate: for subinterval Θ(k) • 1. Compute Taylor models of the states using VSPODE, and then obtain Tφ (k) 2. Perform constraint propagation using Tφ φ to reduce Θ ≤ 3. If Θ(k) = , go to next subinterval ; rel b abs (k) 4. If (φ B(Tφ))= φ , or φ B(Tφ) , discard Θ and − j j ≤ − ≤ go to next subinterval b b b 5. If B(Tφ) < φ, update φ with local minimization, go to step 2 6. If Θ(k) is sufficiently reduced, go to step 1 b b 7. Otherwise, bisect Θ(k) and go to next subinterval This finds an -global optimum with either a relative tolerance (rel) or • absolute tolerance (abs) 16 Global Optimization Algorithm (cont'd) By incorporating an interval-Newton approach, this can also be implemented • as an exact algorithm ( = 0).