1 Development of Empirical Models From Process Data In some situations it is not feasible to develop a theoretical (physically-based model) due to: 1.

Slides:



Advertisements
Similar presentations
Lect.3 Modeling in The Time Domain Basil Hamed
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Process Control: Designing Process and Control Systems for Dynamic Performance Chapter 6. Empirical Model Identification Copyright © Thomas Marlin 2013.
Chapter 7 Statistical Data Treatment and Evaluation
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Ch11 Curve Fitting Dr. Deshi Ye
The General Linear Model. The Simple Linear Model Linear Regression.
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
Chapter 10 Simple Regression.
Laplace Transforms Important analytical method for solving linear ordinary differential equations. - Application to nonlinear ODEs? Must linearize first.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
SYSTEMS Identification
Controller Tuning: A Motivational Example
Development of Empirical Models From Process Data
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chapter 11 Multiple Regression.
Linear and generalised linear models
Overall Objectives of Model Predictive Control
Linear and generalised linear models
President UniversityErwin SitompulSMI 9/1 Dr.-Ing. Erwin Sitompul President University Lecture 9 System Modeling and Identification
Chapter 6 Numerical Interpolation
1 Chapter 9 Differential Equations: Classical Methods A differential equation (DE) may be defined as an equation involving one or more derivatives of an.
Calibration & Curve Fitting
Out response, Poles, and Zeros
Least-Squares Regression
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
CPE 619 Simple Linear Regression Models Aleksandar Milenković The LaCASA Laboratory Electrical and Computer Engineering Department The University of Alabama.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
CORRELATION & REGRESSION
1 Dynamic Behavior Chapter 5 In analyzing process dynamic and process control systems, it is important to know how the process responds to changes in the.
3/2003 Rev 1 I – slide 1 of 33 Session I Part I Review of Fundamentals Module 2Basic Physics and Mathematics Used in Radiation Protection.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
Basic Probability (Chapter 2, W.J.Decoursey, 2003) Objectives: -Define probability and its relationship to relative frequency of an event. -Learn the basic.
DYNAMIC BEHAVIOR AND STABILITY OF CLOSED-LOOP CONTROL SYSTEMS
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Deterministic vs. Random Maximum A Posteriori Maximum Likelihood Minimum.
DYNAMIC BEHAVIOR OF PROCESSES :
PID Controller Design and
Chapter 4 Transients. 1.Solve first-order RC or RL circuits. 2. Understand the concepts of transient response and steady-state response.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Example: Bioassay experiment Problem statement –Observations: At each level of dose, 5 animals are tested, and number of death are observed.
Chapter 20 1 Overall Objectives of Model Predictive Control 1.Prevent violations of input and output constraints. 2.Drive some output variables to their.
Chapter 2 Modeling Approaches  Physical/chemical (fundamental, global) Model structure by theoretical analysis  Material/energy balances  Heat, mass,
1 DYNAMIC BEHAVIOR OF PROCESSES : Development of Empirical Models from Process Data ERT 210 Process Control & Dynamics.
SYSTEMS Identification Ali Karimpour Assistant Professor Ferdowsi University of Mashhad Reference: “System Identification Theory For The User” Lennart.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
Sampling Design and Analysis MTH 494 Lecture-21 Ossam Chohan Assistant Professor CIIT Abbottabad.
CHAPTER 2.3 PROBABILITY DISTRIBUTIONS. 2.3 GAUSSIAN OR NORMAL ERROR DISTRIBUTION  The Gaussian distribution is an approximation to the binomial distribution.
ERT 210/4 Process Control & Dynamics DYNAMIC BEHAVIOR OF PROCESSES :
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Lecture 9: PID Controller.
1 Development of Empirical Dynamic Models from Step Response Data Some processes too complicated to model using physical principles material, energy balances.
DYNAMIC BEHAVIOR OF PROCESSES :
Lecture Slides Elementary Statistics Twelfth Edition
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
Chapter 7. Classification and Prediction
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Time Domain and Frequency Domain Analysis
Overall Objectives of Model Predictive Control
Lecture Slides Elementary Statistics Thirteenth Edition
Correlation and Regression
Statistical Methods For Engineers
The Simple Linear Regression Model: Specification and Estimation
Digital and Non-Linear Control
Simple Linear Regression
Modeling Approaches Chapter 2 Physical/chemical (fundamental, global)
CHAPTER Five: Collection & Analysis of Rate Data
IntroductionLecture 1: Basic Ideas & Terminology
Presentation transcript:

1 Development of Empirical Models From Process Data In some situations it is not feasible to develop a theoretical (physically-based model) due to: 1. Lack of information 2. Model complexity 3. Engineering effort required. An attractive alternative: Develop an empirical dynamic model from input-output data. Advantage: less effort is required Disadvantage: the model is only valid (at best) for the range of data used in its development. i.e., empirical models usually don’t extrapolate very well.

2 Need to minimize disturbances during a plant test

3 Simple Linear Regression: Steady-State Model As an illustrative example, consider a simple linear model between an output variable y and input variable u, where and are the unknown model parameters to be estimated and  is a random error. Predictions of y can be made from the regression model, where and denote the estimated values of  1 and  2, and denotes the predicted value of y. Let Y denote the measured value of y. Each pair of (u i, Y i ) observations satisfies:

4 The Least Squares Approach The least squares method is widely used to calculate the values of  1 and  2 that minimize the sum of the squares of the errors S for an arbitrary number of data points, N: Replace the unknown values of  1 and  2 in (7-2) by their estimates. Then using (7-3), S can be written as:

5 The least squares solution that minimizes the sum of squared errors, S, is given by: where: The Least Squares Approach (continued)

6 Least squares estimation can be extended to more general models with: 1.More than one input or output variable. 2.Functionals of the input variables u, such as poly- nomials and exponentials, as long as the unknown parameters appear linearly. A general nonlinear steady-state model which is linear in the parameters has the form, Extensions of the Least Squares Approach where each X j is a nonlinear function of u.

7 The sum of the squares function analogous to (7-2) is where the superscript T denotes the matrix transpose and: which can be written as,

8 The least squares estimates is given by, providing that matrix X T X is nonsingular so that its inverse exists. Note that the matrix X is comprised of functions of u j ; for example, if: This model is in the form of (7-7) if X 1 = 1, X 2 = u, and X 3 = u 2.

9 Fitting First and Second-Order Models Using Step Tests Simple transfer function models can be obtained graphically from step response data. A plot of the output response of a process to a step change in input is sometimes referred to as a process reaction curve. If the process of interest can be approximated by a first- or second-order linear model, the model parameters can be obtained by inspection of the process reaction curve. The response of a first-order model, Y(s)/U(s)=K/(  s+1), to a step change of magnitude M is:

10 The initial slope is given by: The gain can be calculated from the steady-state changes in u and y:

11 Figure 7.3 Step response of a first-order system and graphical constructions used to estimate the time constant,

12 2. The line drawn tangent to the response at maximum slope (t =  ) intersects the y/KM=1 line at (t =    ). 3. The step response is essentially complete at t=5 . In other words, the settling time is t s =5 . 1. The response attains 63.2% of its final response at time, t = . First-Order Plus Time Delay Model For this FOPTD model, we note the following charac- teristics of its step response: (7.16)

13 1st order system with gain K, dead time  and time constant  ; 3 parameters to be fitted. Simple Process Models Step response:

14 Figure 7.5 Graphical analysis of the process reaction curve to obtain parameters of a first-order plus time delay model.

15 There are two generally accepted graphical techniques for determining model parameters , , and K. Method 1: Slope-intercept method First, a slope is drawn through the inflection point of the process reaction curve in Fig Then  and  are determined by inspection. Alternatively,  can be found from the time that the normalized response is 63.2% complete or from determination of the settling time, t s. Then set  =t s /5. Method 2. Sundaresan and Krishnaswamy’s Method This method avoids use of the point of inflection construction entirely to estimate the time delay.

16 They proposed that two times, t 1 and t 2, be estimated from a step response curve, corresponding to the 35.3% and 85.3% response times, respectively. The time delay and time constant are then estimated from the following equations: These values of  and  approximately minimize the difference between the measured response and the model, based on a correlation for many data sets. Sundaresan and Krishnaswamy’s Method

17 S & K Method for Fitting FOPTD Model Normalize step response (t = 0, y = 0; t →∞, y = 1) Use 35 and 85% response times (t 1 and t 2 ) q = 1.3 t 1 – 0.29 t 2 t = 0.67 (t 2 – t 1 ) (based on analyzing many step responses) K found from steady state response Alternatively, use Excel Solver to fit q and t using y (t) = K [1 – e –(t-q)/t ] and data of y vs. t Chapter 7

18 Estimating Second-order Model Parameters Using Graphical Analysis In general, a better approximation to an experimental step response can be obtained by fitting a second-order model to the data. Figure 7.6 shows the range of shapes that can occur for the step response model, Figure 7.6 includes two limiting cases:, where the system becomes first order, and, the critically damped case. The larger of the two time constants,, is called the dominant time constant.

19 Figure 7.6 Step response for several overdamped second- order systems.

20 Smith’s Method 1.Determine t 20 and t 60 from the step response. 2.Find ζ and t 60 /  from Fig Find t 60 /  from Fig. 7.7 and then calculate  (since t 60 is known)  Assumed model: Procedure: (7-20)

21

22 Fitting an Integrator Model to Step Response Data In Chapter 5 we considered the response of a first-order process to a step change in input of magnitude M: For short times, t < , the exponential term can be approximated by so that the approximate response is:

23 is virtually indistinguishable from the step response of the integrating element In the time domain, the step response of an integrator is Hence an approximate way of modeling a first-order process is to find the single parameter that matches the early ramp-like response to a step change in input.

24 If the original process transfer function contains a time delay (cf. Eq. 7-16), the approximate short-term response to a step input of magnitude M would be where S(t-  ) denotes a delayed unit step function that starts at t= .

25 Figure Comparison of step responses for a FOPTD model (solid line) and the approximate integrator plus time delay model (dashed line).

26 A digital computer by its very nature deals internally with discrete-time data or numerical values of functions at equally spaced intervals determined by the sampling period. Thus, discrete-time models such as difference equations are widely used in computer control applications. One way a continuous-time dynamic model can be converted to discrete-time form is by employing a finite difference approximation. Consider a nonlinear differential equation, where y is the output variable and u is the input variable. Development of Discrete-Time Dynamic Models

27 This equation can be numerically integrated (though with some error) by introducing a finite difference approximation for the derivative. For example, the first-order, backward difference approximation to the derivative at is where is the integration interval specified by the user and y(k) denotes the value of y(t) at. Substituting Eq into (7-27) and evaluating f (y, u) at the previous values of y and u (i.e., y(k – 1) and u(k – 1)) gives:

28 Second-Order Difference Equation Models Parameters in a discrete-time model can be estimated directly from input-output data based on linear regression. This approach is an example of system identification (Ljung, 1999). As a specific example, consider the second-order difference equation in (7-36). It can be used to predict y(k) from data available at time (k – 1) and (k – 2). In developing a discrete-time model, model parameters a 1, a 2, b 1, and b 2 are considered to be unknown.

29 Where (7-37) (7-38) (7-39) (7-40) Let and denote the new steady state values after a step change in u Substituting these values into Eq.7-36 gives Eq Because y and u Are deviation variables, the steady state gain is simply, the steady state Change in y divided by the steady state change in u give Eq

30 There are 4 generally accepted graphical techniques for determining first order system parameters ,  : 63.2% response point of inflection S&K method semilog plot

31

32

33 End of Chapter 7 “Kinetics is nature’s way of preventing everything from happening all at once.” S. E. LeBlanc “The next best thing to knowing something is knowing where to find it.” Samuel Johnson ( )

34 Tutorial 3 Q3 Additional instruction: - From the plots obtained, it can be observed that the gain and phase margins are approximately 10dB and 45 degrees. We can verify this using the margin command

35 Tutorial 4 Chap 4 : Exercise 4.10 & 4.15 Chap 5 : Exercise 5.5 Chap 6 : Exercise 6.5 Chap 7 : Exercise 7.7 (Text book, Dale E.Seborg) Date of Submission: 18 th February 2008

36 LATEST UPDATE Mid Term Test 20 TH FEBRUARY 2008