1 | #*------------------------------------------------------------------- |
---|
2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
3 | * |
---|
4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
6 | * http://www.enq.ufrgs.br/alsoc. |
---|
7 | * |
---|
8 | * EMSO is distributed under the terms of the ALSOC LICENSE as |
---|
9 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
10 | *----------------------------------------------------------------------- |
---|
11 | * Author: Jonathan Ospino P. |
---|
12 | * $Id: Error_Integral_Criteria.mso 2012$ |
---|
13 | *---------------------------------------------------------------------*# |
---|
14 | |
---|
15 | using "types"; |
---|
16 | |
---|
17 | Model IAE |
---|
18 | |
---|
19 | ATTRIBUTES |
---|
20 | Pallete=true; |
---|
21 | Icon="icon/IAE"; |
---|
22 | Info="== Integral of the Absolute value of the Error (IAE)== |
---|
23 | |
---|
24 | It computes the value of the IAE for a given error (input signal). |
---|
25 | The resulting value is assigned to the output variable."; |
---|
26 | |
---|
27 | VARIABLES |
---|
28 | |
---|
29 | in e as Real(PosX=0,PosY=0.5,Protected=true); |
---|
30 | out iae as Real(Brief="IAE of the input signal",PosX=1,PosY=0.5,Protected=true); |
---|
31 | |
---|
32 | |
---|
33 | EQUATIONS |
---|
34 | |
---|
35 | diff(iae)*'s'=abs(e); |
---|
36 | |
---|
37 | |
---|
38 | INITIAL |
---|
39 | |
---|
40 | iae=0; |
---|
41 | |
---|
42 | end |
---|
43 | |
---|
44 | |
---|
45 | Model ISE |
---|
46 | |
---|
47 | ATTRIBUTES |
---|
48 | Pallete=true; |
---|
49 | Icon="icon/ISE"; |
---|
50 | Info="== Integral of the Square of the Error (ISE)== |
---|
51 | |
---|
52 | It computes the value of the ISE for a given error (input signal). |
---|
53 | The resulting value is assigned to the output variable."; |
---|
54 | |
---|
55 | VARIABLES |
---|
56 | |
---|
57 | in e as Real(PosX=0,PosY=0.5,Protected=true); |
---|
58 | out ise as Real(Brief="IAE of the input signal",PosX=1,PosY=0.5,Protected=true); |
---|
59 | |
---|
60 | |
---|
61 | EQUATIONS |
---|
62 | |
---|
63 | diff(ise)*'s'=e^2; |
---|
64 | |
---|
65 | |
---|
66 | INITIAL |
---|
67 | |
---|
68 | ise=0; |
---|
69 | |
---|
70 | end |
---|
71 | |
---|
72 | |
---|
73 | Model ITAE |
---|
74 | |
---|
75 | ATTRIBUTES |
---|
76 | Pallete=true; |
---|
77 | Icon="icon/ITAE"; |
---|
78 | Info="== Integral of the Time-Weighted Absolute value of the Error (ITAE)== |
---|
79 | |
---|
80 | It computes the value of the ITAE for a given error (input signal). |
---|
81 | The resulting value is assigned to the output variable."; |
---|
82 | |
---|
83 | VARIABLES |
---|
84 | |
---|
85 | in e as Real(PosX=0,PosY=0.5,Protected=true); |
---|
86 | out itae as Real(Brief="ITAE of the input signal",PosX=1,PosY=0.5,Protected=true); |
---|
87 | |
---|
88 | |
---|
89 | EQUATIONS |
---|
90 | |
---|
91 | diff(itae)*'s'=time*abs(e)/'s'; |
---|
92 | |
---|
93 | |
---|
94 | INITIAL |
---|
95 | |
---|
96 | itae=0; |
---|
97 | |
---|
98 | end |
---|
99 | |
---|
100 | |
---|
101 | Model ITSE |
---|
102 | |
---|
103 | ATTRIBUTES |
---|
104 | Pallete=true; |
---|
105 | Icon="icon/ITSE"; |
---|
106 | Info="== Integral of the Time-Weighted Square of the Error (ITSE)== |
---|
107 | |
---|
108 | It computes the value of the ITSE for a given error (input signal). |
---|
109 | The resulting value is assigned to the output variable."; |
---|
110 | |
---|
111 | VARIABLES |
---|
112 | |
---|
113 | in e as Real(PosX=0,PosY=0.5,Protected=true); |
---|
114 | out itse as Real(Brief="ITSE of the input signal",PosX=1,PosY=0.5,Protected=true); |
---|
115 | |
---|
116 | |
---|
117 | EQUATIONS |
---|
118 | |
---|
119 | diff(itse)*'s'=time*e^2/'s'; |
---|
120 | |
---|
121 | |
---|
122 | INITIAL |
---|
123 | |
---|
124 | itse=0; |
---|
125 | |
---|
126 | end |
---|