Presentation is loading. Please wait.

Presentation is loading. Please wait.

Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Least Squares Parameter Estimation for Linear Steady State and Dynamic.

Similar presentations


Presentation on theme: "Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Least Squares Parameter Estimation for Linear Steady State and Dynamic."— Presentation transcript:

1 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Least Squares Parameter Estimation for Linear Steady State and Dynamic Models Thomas F. Edgar Department of Chemical Engineering University of Texas Austin, TX 78712 1

2 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Outline Static model, sequential estimation Multivariate sequential estimation Example Dynamic discrete-time model Closed-loop estimation 2

3 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Least Squares Parameter Estimation Linear Time Series Models ref: PC Young, Control Engr., p. 119, Oct, 1969 scalar example (no dynamics) model y = ax data least squares estimate of a: (1) 3

4 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 The analytical solution for the minimum (least squares) estimate is p k, b k are functions of the number of samples This is the non-sequential form or non-recursive form Simple Example (2) 4

5 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 To update based on a new data pt. (y i, x i ), in Eq. (2) let and (3) (4) Sequential or Recursive Form 5

6 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Form for Parameter Estimation (5) where (6) To start the algorithm, need initial estimates and p 0. To update p, (Set p 0 = large positive number) Eqn. (7) shows p k is decreasing with k (7) 6

7 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Estimating Multiple Parameters (Steady State Model) (non-sequential solution requires n x n inverse) To obtain a recursive form for (8) (9) (10) 7

8 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 need to assume Recursive Solution (11) (12) 8

9 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Simple Example (Estimate Slope & Intercept) Linear parametric model input, u 01 2 3 4101218 output, y5.719151920455578 y = a 1 + a 2 u 9

10 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Sequential vs. Non-sequential Estimation of a 2 Only (a 1 = 0) Covariance Matrix vs. Number of Samples Using Eq. (12) 10

11 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Sequential Estimation Using Eq. (11) 11

12 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Application to Digital Model and Feedback Control Linear Discrete Model with Time Delay: y: output u: input d: disturbanceN: time delay (13) 12

13 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Least Squares Solution where 14 (14) (15) (16)

14 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 K: Kalman filter gain Recursive Least Squares Solution 15 (17) (18) (19) (20)

15 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 There are three practical considerations in implementation of parameter estimation algorithms -covariance resetting -variable forgetting factor -use of perturbation signal Closed-Loop RLS Estimation 16

16 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Enhance sensitivity of least squares estimation algorithms with forgetting factor prevents elements of P from becoming too small (improves sensitivity) but noise may lead to incorrect parameter estimates ~ 0.98 typical →1.0 all data weighted equally0 < < 1.0 17 (21) (22) (23)

17 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Perturbation signal is added to process input (via set point) to excite process dynamics large signal:good parameter estimates but large errors in process output small signal: better control but more sensitivity to noise Guidelines: Vogel and Edgar, Comp. Chem. Engr., Vol. 12, pp. 15-26 (1988) 1. set forgetting factor = 1.0 2. use covariance resetting (add diagonal matrix D to P when tr (P) becomes small) Closed-Loop Estimation (RLS) 18

18 Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 3. use PRBS perturbation signal only when estimation error is large and P is not small. Vary PRBS amplitude with size of elements proportional to tr (P). 4. P(0) = 10 4 I 5. filter new parameter estimates  : tuning parameter (  c used by controller) 6.Use other diagnostic checks such as the sign of the computed process gain 19


Download ppt "Thomas F. Edgar (UT-Austin) RLS – Linear Models Virtual Control Book 12/06 Recursive Least Squares Parameter Estimation for Linear Steady State and Dynamic."

Similar presentations


Ads by Google