Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tutorial 2, Part 2: Calibration of a damped oscillator.

Similar presentations


Presentation on theme: "Tutorial 2, Part 2: Calibration of a damped oscillator."— Presentation transcript:

1 Tutorial 2, Part 2: Calibration of a damped oscillator

2 2 Tutorial: Calibration Damped oscillator Mass m, damping c, stiffness k and initial kinetic energy Equation of motion: Undamped eigen-frequency: Lehr's damping ratio D Damped eigen-frequency

3 3 Tutorial: Calibration Damped oscillator Time-dependent displacement function Identification of the input parameters m, k, D and E kin to optimally fit a reference displacement function Objective function is the sum of squared errors between the reference and the calculated displacement function values

4 4 Tutorial: Calibration Task description Parametrization of the input parameters Parametrization of the displacement vs. time functions as signals Extraction of objective from output and reference signals Definition and evaluation of a sensitivity analysis Check for dependent parameters Identification of the damper parameters using global and local optimization strategies Identification using noisy reference function Estimation of model representation quality

5 5 Tutorial: Calibration Project manager 1.Open the project manager 2.Define project name 3.Create a new project directory 4.Copy optiSLang Examples/Oscillator into project directory 1. 2. 3.

6 6 Tutorial: Calibration Parameterization of the problem 1.Start a new parametrize workflow 2.Define workflow name 3.Create a new problem specification 4.Enter problem file name 1. 2. 3. 5. 4.

7 7 Tutorial: Calibration Parameterization of the inputs 1.Click “open file” icon in parametrize editor 2.Browse for the SLang input file oscillator.s 3.Choose file type as INPUT 1. 3. 2.

8 8 Tutorial: Calibration Parameterization of the inputs 1.Mark value of m in the input file 2.Define m as input parameter 3.Define parameter name 1. 2. 3.

9 9 Tutorial: Calibration Parameterization of the inputs 1.Open parameter in parameter tree 2.Enter lower and upper bounds (0.1 … 5.0) 3.Repeat procedure for k, D, Ekin 1. 2.

10 10 Tutorial: Calibration Parameterization of the inputs

11 11 Tutorial: Calibration Parameterization of the inputs

12 12 Tutorial: Calibration 1.Click “open file” icon in parametrize editor 2.Browse for the SLang output file oscillator_signal.txt 3.Choose file type as OUTPUT Parameterization of the output signal 1. 3. 2.

13 13 Tutorial: Calibration Parameterization of the output signal 1.Mark output object string in editor 2.Add string to repeated block marker set 3.Select “set super marker”, set start, increment, end values and “single steps” 2. 3. 1.

14 14 Tutorial: Calibration 1.Mark first value of time column 2.Add string to a vector 3.Select marker 4.Define name of vector 2. 3. 4. 1. Parameterization of the output signal

15 15 Tutorial: Calibration Parameterization of the output signal 1.Repeat for the displacement column 2.Block marker and vectors appear in parameter tree 2. 1.

16 16 Tutorial: Calibration Definition of the output signal object 1.Create a new signal object 2.Define signal object disp_time and activate 3.Choose abscissa reference and define label 4.Add disp as signal channel 5.Define channel name, label and activate 2. 1. 3. 4. 1.

17 17 Tutorial: Calibration 1.Click “open file” icon in parametrize editor 2.Browse for the SLang output file oscillator_reference.txt 3.Choose file type as OUTPUT Parameterization of the reference signal 1. 3. 2.

18 18 Tutorial: Calibration Parameterization of the reference signal 1.Mark output object string in editor 2.Add string to repeated block marker set 3.Select “set super marker”, set start, increment, end values and “single steps” 2. 3. 1.

19 19 Tutorial: Calibration 1.Mark first value of time column 2.Add string to a vector 3.Select marker 4.Define name of vector 2. 3. 4. 1. Parameterization of the reference signal

20 20 Tutorial: Calibration 1.Mark first value of displacement column 2.Add string to a vector 3.Select marker 4.Define name of vector 2. 3. 4. 1. Parameterization of the reference signal

21 21 Tutorial: Calibration 1.Mark first value of second displacement column (noisy reference) 2.Add string to a vector 3.Select marker 4.Define name of vector 2. 1. Parameterization of the reference signal 3. 4.

22 22 Tutorial: Calibration 1.Open the reference vectors in the parameter tree 2.Set vectors as active and constant 2. 1. Parameterization of the reference signal

23 23 Tutorial: Calibration Definition of the reference signal object 1.Create a new signal object 2.Define signal object disp_time_ref and activate and set as constant 3.Choose abscissa reference and define label 4.Add disp_ref and disp_ref_noise as channels 5.Define channel name, label and activate 2. 1. 3. 4. 1.

24 24 Tutorial: Calibration Definition of difference from reference 1.Create a signal function 2.Add signal function SIG_DIFF_EUCLID as difference between solver output and reference channel 2. 1. 2.

25 25 Tutorial: Calibration Definition of maximum values in time slots 1.Create new signal functions 2.Add signal functions SIG_MAX_Y and SIG_MAX_Y_SLOT to get maximum displacement values after a certain time (0, 2, 4, 6, 8s) 1. 2.

26 26 Tutorial: Calibration Definition of difference from noisy reference 1.Create new signal functions 2.Add signal function SIG_DIFF_EUCLID as difference between solver output and noisy reference channel 1. 2.

27 27 Tutorial: Calibration Definition of objective functions 1.Create new objective function 2.Define objective as difference between solver output and reference channel (second objective using noisy reference) 2a. 1. 2b.

28 28 Tutorial: Calibration Parameterization of the problem 1.Close parametrization editor 2.Check overview for inputs 3.Check overview for outputs 2. 1.

29 29 Tutorial: Calibration Parameterization of the problem 1.Check overview for signals 2.Check overview for objectives 2. 1.

30 30 Tutorial: Calibration Design Of Experiments (DOE) 1. 2. 3. 1.Start a new DOE workflow 2.Define workflow name and workflow identifier 3.Enter problem file name

31 31 Tutorial: Calibration Design Of Experiments (DOE) 1. 1.Enter solver call (slang –b oscillator.s) 2.Start DOE evaluation with 100 LHS samples

32 32 Tutorial: Calibration Design Of Experiments (DOE) Coefficient of Determination of quadratic approximation of rmse_all_diff is very low (38% CoD) Single values as maximum in time slot can be approximated much better (96% - 99% CoD) 100 samples

33 33 Tutorial: Calibration Meta-Model of Optimal Prognosis (MOP) 1. 2. 4. 3. 1.Start a new MOP workflow 2.Define workflow name 3.Define workflow identifier 4.Choose DOE result file

34 34 Tutorial: Calibration Meta-Model of Optimal Prognosis (MOP) 1. 2. 3. 4. 1.CoP settings (sample splitting or cross validation) 2.Investigated approximation models 3.Set CoP (accepted reduction in prediction quality to simplify model) to 0.01 4.Filter settings

35 35 Tutorial: Calibration Meta-Model of Optimal Prognosis (MOP) Coefficient of Prognosis of rmse_all_diff is very low (45% CoP) and only m and k are found to be significant CoP of maximum values in time slot are much better (95% - 99% CoD) and all inputs are indicated to be significant 100 samples

36 36 Tutorial: Calibration Meta-Model of Optimal Prognosis (MOP) Coefficient of Prognosis of rmse_all_diff increases if number of samples is increased (from 45% to 84%) and additionally Ekin becomes significant  Sensitivity study of objective function itself may require many samples due to a certain complexity  Analysis of single values may be more efficient 100 samples500 samples2000 samples

37 37 Tutorial: Calibration Meta-Model of Optimal Prognosis (MOP) All inputs are significant for at least some of the output values  Identification of all input parameters is generally possible 100 samples500 samples FullmkDEkinFullmkDEkin RMSE45%19%44%--72%27%53%-21% Max099%-42%-57%99%-46%-56% Max297%7%41%9%47%99%10%45%8%43% Max497%15%42%18%29%98%15%44%16%30% Max698%23%36%23% 99%20%41%22%24% Max895%23%28%35%16%96%19%36%26%20%

38 38 Tutorial: Calibration Evolutionary algorithm (global search) 1.Start a new NOA workflow 2.Define workflow name and workflow identifier 3.Enter problem file name 4.Choose optimization algorithm (EA with global search as default) 5.Enter solver call (slang –b oscillator.s) and start workflow 1. 2. 3. 4. 2.

39 39 Tutorial: Calibration Evolutionary algorithm (global search) 1. 1.Choose start population size 2.Keep defaults for Selection, Crossover and Mutation

40 40 Tutorial: Calibration Evolutionary algorithm (global search) Global optimization converges to small difference between output and reference

41 41 Tutorial: Calibration Dependent parameters Different optimization runs lead to different parameter sets with similar differences Run 1: RMSE=0.183Run 2: RMSE=0.434

42 42 Tutorial: Calibration Dependent parameters Reason for non-unique solution: The parameters E kin and m as well as k and m appear only pair-wisely in the displacement function  Only the ratio between E kin and m as well as k and m can be identified  We keep the value of m as constant General procedure: Check designs from DOE with almost equal objective values Or perform multiple global optimization runs Sensitivity indices quantify the global influence of each input, But: the dependency between input parameters with respect to the minimum objective values can not be identified

43 43 Tutorial: Calibration Modify the parametrization 1. 2. 3. 4. 1.Start a new parametrize workflow 2.Define workflow name 3.Create a copy and modify it 4.Enter original problem file name 5.Enter new problem file name 5.

44 44 Tutorial: Calibration Modify the parametrization 2. 3. 4. 1.Open the parameter m in the parameter treee 2.Modify reference value 3.Set parameter as constant 4.Close parametrization editor and check inputs

45 45 Tutorial: Calibration Evolutionary algorithm (global search) Different optimization runs lead to similar parameter sets with similar differences  No parameter dependencies Run 1: RMSE=1.587Run 2: RMSE=0.287Run 3: RMSE=0.769

46 46 Tutorial: Calibration Gradient-based optimization 2. 3. 1.Start a new Gradient-based workflow 2.Define workflow name and workflow identifier 3.Enter problem file name 4.Choose optimization method 5.Enter solver call (slang –b oscillator.s) 6.Start gradient workflow 2. 4.

47 47 Tutorial: Calibration 1.Decrease size of differentiation interval 2.Choose best design from EA optimization as start value Gradient-based optimization 1. 2.

48 48 Tutorial: Calibration Gradient-based optimization Local gradient-based optimization gives exact reference values for inputs Fitting is perfect (almost zero rmse)

49 49 Tutorial: Calibration Identification using noisy reference Measurements are more or less precise Reference displacement function is disturbed by Gaussian noise with zero mean and standard deviation of 0.1 m Second objective is used for parameter identification Again global + local optimization with reduced input parameter set k, D and E kin

50 50 Tutorial: Calibration Identification using noisy reference Evolutionary Algorithm (global search)

51 51 Tutorial: Calibration Identification using noisy reference Gradient based (local search) Measurements errors may reduce the identification quality The accuracy of the identified parameters depends on the number of measurements and the sensitivity of the parameter


Download ppt "Tutorial 2, Part 2: Calibration of a damped oscillator."

Similar presentations


Ads by Google