Global Optimization of Ordinary Differential Equations Models

Similar documents
Consequences of Surface Oxophilicity of Ni, Ni-Co, and Co Clusters on Methane. Activation

The Geometry of Separation Boundaries: I. Basic Theory and Numerical Support

CATALYTIC STEAM REFORMING OF TOLUENE POST- GASIFICATION USING AS MODEL COMPOUND OF TAR PRODUCED BY BIOMASS GASIFICATION

A Geometric Terrain Methodology for Global Optimization

Numerical Algorithms as Dynamical Systems

Modeling of Packed Bed Reactors: Hydrogen Production By the Steam Reforming of Methane and Glycerol

Modeling of Packed Bed Reactors: Hydrogen Production by the Steam Reforming of Methane and Glycerol

A Web based Library for Testing Performance of Numerical Software for Solving Nonlinear Algebraic Equations

A First Course on Kinetics and Reaction Engineering Example 1.2

CFD study of gas mixing efficiency and comparisons with experimental data

Methane Oxidation Reactions

CE 329, Fall 2015 Assignment 16, Practice Exam

Steam Reforming in a Packed Bed Membrane Reactor

Strategies for Numerical Integration of Discontinuous DAE Models

Modeling of a Fluid Catalytic Cracking (FCC) Riser Reactor

ECE 422/522 Power System Operations & Planning/Power Systems Analysis II : 7 - Transient Stability

A First Course on Kinetics and Reaction Engineering Unit 4. Reaction Rates and Temperature Effects

Chemical Reaction Engineering. Dr. Yahia Alhamed

The Application of a Numerical Model of a Proton Exchange Membrane Fuel Cell to the Estimations of Some Cell Parameters

[ A] 2. [ A] 2 = 2k dt. [ A] o

Lecture 11 Kjemisk reaksjonsteknikk Chemical Reaction Engineering

NOWADAYS, biotechnological processes are widely used. Inexact Newton matrix-free methods for solving complex biotechnological systems

Numerical Aspects of the SAFT Equation of State

A comparison of the Bader Deuflhard and the Cash Karp Runge Kutta integrators for the GRI-MECH 3.0 model based on the chemical kinetics code Kintecus

Real-Time Feasibility of Nonlinear Predictive Control for Semi-batch Reactors

By Rogéria Amaral and Sébastien Thomas

Understanding Chemical Reactions through Computer Modeling. Tyler R. Josephson University of Delaware 4/21/16

Solving Ordinary Differential equations

Deterministic Global Optimization for Error-in-Variables Parameter Estimation

Modeling, Simulation and Optimization of a Cross Flow Molten Carbonate Fuel Cell

Modelling and Optimization of Primary Steam Reformer System (Case Study : the Primary Reformer PT Petrokimia Gresik Indonesia)

ENGI9496 Lecture Notes State-Space Equation Generation

MODELING AND SIMULATION OF AN AUTOTHERMAL REFORMER

Lecture 2. Review of Basic Concepts

Thermodynamic Modeling of the High Temperature Shift Converter Reactor Using Minimization of Gibbs Free Energy

CHAPTER 2: QUADRATIC PROGRAMMING

(g) + 3 H 2. (g) 2 NH 3. 1) Only gases and dissolved species appear in an equilibrium expression. 4 NH 3. O(g) K c = (s) + 2N 2.

Model Prediction on the Reliability of Fixed Bed Reactor for Ammonia Production

Unit 8: Equilibrium Unit Review

Stoichiometric Reactor Module

Semi-analytical solutions for cubic autocatalytic reaction-diffusion equations; the effect of a precursor chemical

Basic Aspects of Discretization

Chapter 8. Numerical Solution of Ordinary Differential Equations. Module No. 1. Runge-Kutta Methods

A Definition for Plantwide Controllability. Process Flexibility

PHEN 612 SPRING 2008 WEEK 1 LAURENT SIMON

1 Introduction IPICSE-2016

Introduction to the course ``Theory and Development of Reactive Systems'' (Chemical Reaction Engineering - I)

Marching on the BL equations

Numerical Integration of Equations of Motion

TRITIUM RECOVERY FROM WASTE USING A PALLADIUM MEMBRANE REACTOR

2. Review on Material Balances

CE 191: Civil and Environmental Engineering Systems Analysis. LEC 05 : Optimality Conditions

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 1 : Introduction

Questions 1-3 relate to the following reaction: 1. The rate law for decomposition of N2O5(g) in the reaction above. B. is rate = k[n2o5] 2

Chemical Kinetics -- Chapter 14

A) 2.0 atm B) 2.2 atm C) 2.4 atm D) 2.9 atm E) 3.3 atm

MATH 415, WEEKS 7 & 8: Conservative and Hamiltonian Systems, Non-linear Pendulum

Thrust and Flight Modeling

Multivariate Newton Minimanization

Performance. 7. Aircraft Performance -Basics

Lecture 4: Numerical solution of ordinary differential equations

Deterministic Global Optimization Algorithm and Nonlinear Dynamics

Chemical Reaction Engineering Lecture 5

FLOW REACTORS FOR HOMOGENOUS REACTION: PERFORMANCE EQUATIONS AND APPLICATIONS

1. Define molarity and give the symbol for this unit. Do the same for mass % (a.k.a. % w/w).

Dynamics of forced and unsteady-state processes

CS 257: Numerical Methods

Review for Exam 2 Ben Wang and Mark Styczynski

1 Ordinary differential equations

Hydrogen addition to the Andrussow process for HCN synthesis

AP Chapter 13: Kinetics Name

The Chemical Kinetics Time Step a detailed lecture. Andrew Conley ACOM Division

4.5 COMPLEX CHEMICAL EQUILIBRIUM BY GIBBS ENERGY MINIMIZATION

The use of cubic spline and far-side boundary condition for the collocation solution of a transient convection-diffusion problem

Preparation of biomass derived porous carbon: Application for methane energy storage

CHAPTER 1 INTRODUCTION TO NUMERICAL METHOD

TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

A COMSOL Multiphysics -based Model for Simulation of Methane-Hydrate Dissociation by Injection of Superheated CO 2. CH 4 -CO 2 -hydrate conversion

Chapter 3 Numerical Methods

Translation of MAT Kinetic Data to Model Industrial Catalytic Cracking Units

Creating Phase and Interface Models

Fundamentals Physics

ChE 344 Winter 2011 Final Exam + Solution. Open Book, Notes, and Web

Synthesis gas production via the biogas reforming reaction over Ni/MgO-Al 2 O 3 and Ni/CaO-Al 2 O 3 catalysts

1.2 Derivation. d p f = d p f(x(p)) = x fd p x (= f x x p ). (1) Second, g x x p + g p = 0. d p f = f x g 1. The expression f x gx

Diffusion influence on Michaelis Menten kinetics

AIMS Exercise Set # 1

Ordinary Differential Equations

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Dynamic Model of a Badminton Stroke

New Fast Kalman filter method

Selective oxidation of methane to carbon monoxide on supported palladium catalyst

Ordinary differential equations - Initial value problems

MODELING AND SIMULATION OF REFORMER AUTO- THERMAL REACTOR IN AMMONIA UNIT

Fast Probability Generating Function Method for Stochastic Chemical Reaction Networks

Co-Generation of C2 Hydrocarbons and Synthesis Gases from Methane and Carbon Dioxide: a Thermodynamic Analysis

Ordinary Differential Equations II

Introduction to standard and non-standard Numerical Methods

Development of Dynamic Models. Chapter 2. Illustrative Example: A Blending Process

ChE 344 Winter 2011 Mid Term Exam I + Solution. Closed Book, Web, and Notes

Transcription:

Global Optimization of Ordinary Differential Equations Models Angelo Lucia*, Meghan L. Bellows and Leah M. Octavio Department of Chemical Engineering, University of Rhode Island, Kingston, RI 02881 Abstract This paper contains a study of the global optimization of mathematical models described by ordinary differential equations. It is shown that recently developed terrain methods can be used with direct numerical integration to find minima, saddle points and other important problem solving information for ordinary differential equations models. Necessary partial derivative information can be computed as a by-product of the integration. A parameter estimation example for a power law rate model for hydrogen production in fuel cell applications is used to illustrate the optimization methodology. Keywords: Global optimization, integral path methods, sensitivity analysis 1. Introduction The global optimization of models described by ordinary differential equations is an important and challenging task. Typical examples in which optimization of differential models are important include process control and parameter estimation problems (Beigler, 1990; Vassiliadis & Floudas, 1997). In most applications these models are generally comprised of nonlinear differential equations (or differential/algebraic systems) and are sufficiently complicated to make the direct use of Newton-like methods for optimization challenging. That is, first and second partial derivatives of the objective function with respect to the unknown variables are often embedded within the results of the evolution of the model dynamics and, as a result, are difficult to compute. Moreover these derivatives can be subject to a number of inaccuracies including those from integration error, rounding, and truncation. 2. Problem Statement The problem we are interested in solving is defined by global min φ[z(p), p] subject to z = f[z, p, t] on D for 0 < t < T (1) where the objective function, φ, and the right hand side of the differential equations, f, are three times continuously differentiable with respect to the unknown variables, p, and the dependent variables in the differential equations, z. The independent variable in the differential equations, t, can be time or distance and is normally subject to lower and upper limits of integration. We assume that the number of differential equations is m, that the number of unknown variables is n, and that the domain D represents bounds on the z and/or p variables. It is important to understand that our computational goals go beyond just finding the global minimum. We are actually interested in finding all physically relevant minima and saddle points of Eq. 1. One way to find minima, saddles and singular points is to use the recently developed terrain (or integral path) methods of Lucia and co-workers (see, Lucia and Yang, 2003 or Lucia, DiMaggio and Depa, 2004). Terrain methods are a class of methods that move * Author to whom correspondence should be addressed: lucia@egr.uri.edu

from one stationary point to another by following valleys and/or ridges and to do this they require first and second partial derivative information. However, when the constraints are given by differential equations, partial derivative information is difficult to obtain analytically because it is coupled to the integration process. Thus the accuracy of partial derivatives can be strongly affected by the integration process (i.e., integration step size, rounding error and truncation). 3. Partial Derivative Information The partial derivative information that we require for global optimization is d p φ and d pp 2 φ, which are given by d p φ = J z T d z φ + d p φ (2) d pp 2 φ = J z J z T + A + d pp 2 φ (3) where J z is the (n x m) Jacobian matrix of the dependent variables in the differential equations with respect to the unknown optimization variables, and where J z J z T, d pp 2 φ and A are (n x n) matrices that represent appropriate parts of the Hessian matrix. The notation used in Eqs. 2 and 3 is intended to reflect the recursive nature of derivatives in dynamical situations and not meant to be confusing. In many practical applications, φ is not an explicit function of the unknown variables and therefore the last term in Eqs. 2 and 3 are often zero. Note that the Jacobian matrix, J z, depends on the right hand side of the differential equations in Eq. 1. However, in practice, J z will also depend on the algorithm selected for integration (i.e., forward Euler, Runge-Kutta, Gear s method, etc.) and the integration step size. To see this, note that T z (t) = ff[z, p, t] dt (4) 0 but that the trajectory z(t) is not known explicitly. Therefore, numerical integration plays an important role in defining z(t) and, as a result, impacts J z. To illustrate the point, consider simple forward Euler integration. Application of the implicit function theorem gives the recursion relationship J z = [I + hg z ]J z + hg p (5) where h is the integration step size and G z and G p are the (m x m) and (m x n) Jacobian matrices of f[z(p), p] with respect to z and p respectively. Equation 5 clearly shows that the Jacobian matrix, J z, at any value of the independent variable, t, is a function of the trajectory, z(t), the integration algorithm, and the step size. Thus if there is integration error, the accuracy of J z can deteriorate over the integration process. Moreover, the term G z J z can also introduce error if the variables in the differential equations are poorly scaled, even if the integration is accurate. On balance, however, Eq. 5 does show that given an integration algorithm and good step size control, accurate derivative information for use in optimization can be computed as a by-product of integration. 4. Numerical Example Consider a parameter estimation problem for determining the reaction rate constants for a fuel cell application. In particular, let the reaction system be the dry reforming and reverse water-gas shift reactions for the production of hydrogen from methane given by CH 4 + CO 2 = 2CO + 2H 2 (6)

CO 2 + H 2 = CO + H 2 O (7) The objectives of this study were to 1) Determine optimal parameters for a proposed model under isothermal conditions by minimizing the chi-squared error between the model-predicted and experimental conversions for CH 4 and CO 2, 2) Repeat the optimization for several temperatures to obtain Arrhenius plots, and 3) Validate the model from the Arrhenius plots. 4.1 Rate Model The rate model in this example was defined by power law expressions in terms of the partial pressures of the species involved in the reactions and given by r RF = k RF P a CH4 P b CO2[1 - (P 2 COP 2 H2/ K EQRF P CH4 P CO2 )] (8) r RWGS = k RWGS P c H2P d CO2[1 (P CO P H2O /K EQRWGS P H2 P CO2 )] (9) where P i denotes the partial pressure of the ith chemical species. K EQRF and K EQRWGS are the equilibrium constants for reforming and reverse water-gas shift and given by K EQRF = exp[-28657.2/t + 6.091ln(T) - 0.008168T/2 + 2.164 x10-6 T 2 /6 + 126100/(2T 2 ) - 6.88612] (10) K EQRWGS = exp[-5872.37/t 1.86ln(T) + 0.00054T/2 + 116400/(2T 2 ) + 18.0133] (11) 4.2 Differential Equations Model The set of ordinary differential equations that describe the change in the component flow rates as a function of plug flow reactor length are given by df CH4 /dx = -(L cat /r L )r RF (12) df CO2 /dx = -(L cat /r L )[r RF + r RWGS ] (13) df CO /dx = (L cat /r L )[2r RF + r RWGS ] (14) df H2 /dx = (L cat /r L )[2r RF - r RWGS ] (15) df H2O /dx = (L cat /r L )r RWGS (16) where L cat is the catalyst loading, r L is the reactor length, and x is axial distance along the reactor. Partial pressures are related to species flow rates by P i = [F i /ΣF j + F Ar ]P, where F Ar is argon flow and P is the system pressure. Here, L cat = 30 or 15 mg of Rh/Al 2 O 3 /cm of catalyst bed, P varied from 1 to 20 atm, the reactor length was r L = 0.01 cm, and initial conditions (or inlet flows) ranged from 1.02 x 10-5 mol s -1 < F Ar (0) < 2.05 x 10-5 < F CH4 (0), F CO2 (0) < 2.73 x 10-5 mol s -1 (17) 3.41 x 10-6 mol s -1 < F CO (0), F H2 (0) < 6.82 x 10-6 mol s -1 (18) Forward Euler integration with a fixed step size of h = 10-5 cm. was used because it gave accurate results and required far less work than other integrators.

4.3 Bounds on Variables The rate constants k RF and k RWGS and the exponents a, b, c, and d in the power law expressions are the optimization variables and subject to the bounds 0.000001 mol s -1 g -1 cat < k RF, k RWGS < 0.1 mol s -1 g -1 cat and -2 < a, b, c, d < 2 (19) Bounds on the dependent variables were 0 < F CH4 < F CH4 (0); 0 < F CO2 < F CO2 (0); 0 < F CO < F CO (0) + 2F CH4 (0) + F CO2 (0) (20) 0 < F H2 < 2F CH4 (0); 0 < F H2O < F CO2 (0) (21) 4.4 Objective Function The objective function used in the optimization studies was the chi-squared function χ 2 = Σ [X i, k exp (T) - X i, k calc (T)] 2 /X i, k calc (T) for i = CH 4, CO 2 (22) where X is conversion, k is an index for the experimental data points and i is either methane or carbon dioxide. The experimental data can be found in Lee et al. (2004). 4.5 Partial Derivatives The derivatives (cχ 2 /cp i ) and (c 2 χ 2 /cp i cp j ) were computed from Eqs. 2, 3, and 5 and the partial derivatives of the right hand sides of Eqs. 12 through 16 with respect to the F i s and with respect to k RF, k RWGS, a, b, c, and d. 4.6 Numerical Results Here we present results for the optimal parameter estimation of the reactor model using the terrain method of Lucia and co-workers (2003, 2004). 4.6.1 Two-Parameter Optimizations Table 1 gives a summary of the numerical results for some initial two-parameter optimization studies performed with respect to k RF and k RWGS. In this case, the exponents in the rate expressions were fixed at a = 1, b = 0, c = 1, and d = 1. Table 1. Two-parameter optimization of a differential reactor model Parameter Temperature 600 C 650 C 700 C 750 C Global Min k RF 7.54468E-04 1.20973E-03 2.25248E-03 4.22166E-03 k RWGS 8.27328E-05 3.05630E-03 4.05462E-03 3.31441E-02 χ 2 1.15142E+00 8.10080E-01 7.85881E-01 4.53196E-01 Saddle Point k RF 7.11976E-04 1.44883E-03 2.6997E-03 k RWGS 4.14636E-04 4.02310E-04 4.20091E-04 χ 2 1.31652E+00 9.42163E-01 9.16545E-01 Local Min k RF 5.78257E-04 1.50823E-03 2.79656E-03 k RWGS 2.55940E-03 8.39438E-05 9.03480E-04 χ 2 1.18697E+00 8.41705E-01 8.36243E-01

Note that there are multiple stationary points to three of the two-parameter optimizations. Figure 1 shows the geometry of the surface as a function of the two rate constants for 650 C. Note that the χ 2 surface has a reasonably narrow valley very close to the boundary of the feasible region. This is typical for these problems. Figure 1. Two-parameter χ 2 surface for a power law kinetics models 4.6.2 Six-Parameter Optimizations We also performed optimization calculations in which all six parameters were permitted to vary. These numerical results are shown in Table 2. Table 2. Six-parameter optimization of a differential reactor model Parameter Temperature 600 C 650 C 700 C 750 C k RF 1.10680E-04 2.36939E-04 3.70103E-04 5.76126E-04 k RWGS 7.20348E-05 1.08613E-04 1.19161E-04 2.05944E-04 a -0.350805-0.265953-0.205533-0.107881 b 0.0372041 0.112096 0.0943085 0.0975606 c -0.777327-0.728368-1.18516-0.713833 d 1.23106 1.05197 1.66133 1.18313 χ 2 0.166254 0.156352 0.185106 0.194572 The six-parameter optimizations resulted in significantly better χ 2 fits of the experimental data than the two-parameter optimizations did. Also the multiplicity in the stationary points that appeared in the two-parameter optimizations completely disappeared in the six-parameter optimizations. Figure 2 shows a comparison of experimental versus calculated conversions for 700 C for the six-parameter case. Note

that the fit of the data is quite good with a correlation coefficient of 0.97. Similar good agreement was obtained for all temperatures. 4.7 Model Validation It is also important to validate the model using Arrhenius plots in order to verify the temperature functionality of the reaction parameters. In this case, we were interested in the temperature behavior of the rate constants, k RF and k RWGS. Figure 3 shows Arrhenius plots for the calculated values of k RF and k RWGS in Table 2. Note that k RF and k RWGS increase with increasing temperature and that the calculated results fall on or very close to the lines in Fig. 3, suggesting that the optimization results correctly capture the temperature behavior of the rate constants. Figure 2. Optimal fit of conversion data at 700 C Figure 3. Arrhenius plots of rate constants 5. Conclusions Direct numerical integration coupled with the terrain method for the global optimization was applied to a reactor model described by ordinary differential equations. Numerical results clearly show that the terrain method provides a reliable means of global optimization of differential equation models. References Biegler, L.T., 1990, Strategies for simultaneous solution and optimization of differential-algebraic systems. In Foundations of Computer Aided Process Design, J.J. Siirola, I.E. Grossmann and G. Stephanopoulos, Eds. Elsevier, New York. Lee, D., S.T. Oyama and A. Lucia, 2004, Kinetics of the dry reforming of methane on a Rh/Al 2 O 3 catalyst, manuscript in preparation. Lucia, A. and F. Yang, 2003, Multivariable terrain methods, AIChE J.,49, 2553. Lucia, A., P.A. DiMaggio and P. Depa, 2004, A geometric terrain methodology for global optimization, J. Global Optim. in press. Vassiliadis, V.S. and C.A. Floudas, 1997, The modified barrier function approach for large-scale optimization, Comput. Chem. Engng., 8, 855. Acknowledgements The authors would like to thank the National Science Foundation for financial support of this work under Grant No. CTS-0113091.