source: branches/gui/Block-Oriented EML/Control Systems/Error_Integral_Criteria.mso @ 986

Last change on this file since 986 was 944, checked in by Argimiro Resende Secchi, 10 years ago

Adding Block-Oriented library by Jonathan Ospino Pinedo

File size: 2.6 KB
RevLine 
[944]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
15using "types";
16
17Model IAE
18
19ATTRIBUTES
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
27VARIABLES
28
29in e as Real(PosX=0,PosY=0.5,Protected=true);
30out iae as Real(Brief="IAE of the input signal",PosX=1,PosY=0.5,Protected=true);
31
32
33EQUATIONS
34
35diff(iae)*'s'=abs(e);
36
37
38INITIAL
39
40iae=0;
41
42end
43
44
45Model ISE
46
47ATTRIBUTES
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
55VARIABLES
56
57in e as Real(PosX=0,PosY=0.5,Protected=true);
58out ise as Real(Brief="IAE of the input signal",PosX=1,PosY=0.5,Protected=true);
59
60
61EQUATIONS
62
63diff(ise)*'s'=e^2;
64
65
66INITIAL
67
68ise=0;
69
70end
71
72
73Model ITAE
74
75ATTRIBUTES
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
83VARIABLES
84
85in e as Real(PosX=0,PosY=0.5,Protected=true);
86out itae as Real(Brief="ITAE of the input signal",PosX=1,PosY=0.5,Protected=true);
87
88
89EQUATIONS
90
91diff(itae)*'s'=time*abs(e)/'s';
92
93
94INITIAL
95
96itae=0;
97
98end
99
100
101Model ITSE
102
103ATTRIBUTES
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
111VARIABLES
112
113in e as Real(PosX=0,PosY=0.5,Protected=true);
114out itse as Real(Brief="ITSE of the input signal",PosX=1,PosY=0.5,Protected=true);
115
116
117EQUATIONS
118
119diff(itse)*'s'=time*e^2/'s';
120
121
122INITIAL
123
124itse=0;
125
126end
Note: See TracBrowser for help on using the repository browser.