Model: ESNOPT.estim_param_deposito.param
Version: 4
Date and Time: 10/01/2016 19:51:39.340000
Library: ESNOPT
Library dependency list: ESNOPT V0.0
Software: PROOSIS V3.6.16

GENERAL STATISTICS

INFO | #
Number of equations: | 16
Number of boxes (coupled subsystems of equations): | 0
Number of linear boxes: | 0
Number of nonlinear boxes: | 0
Number of input DATA: | 18
Number of input BOUNDARY: | 1
Number of output EXPLICIT : | 14
Number of output DYNAMIC/DERIVATIVE: | 2
Number of output ALGEBRAIC: | 0
Size of Jacobian matrix (DYNAMIC+ALGEBRAIC): | 2x2
Sparsity factor in Jacobian matrix (% of zeros): | 25
Default integration method: | DASSL

TYPE OF VARIABLES

TYPE | VARIABLE | DATA | CONSTANT
REAL | 26 | 18 | 0
INTEGER | 1 | 2 | 2
STRING | 0 | 0 | 0
TABLE | 4 | 0 | 0

GLOBAL FLAGS:

FLAG | VALUE
Remove derivatives | FALSE
Inhibit automatic reduction of equations | FALSE
Remove not used variables | FALSE
Generate code to check mathematical functions | TRUE
Generate code to analyse the performance of functions | FALSE
Obfuscate partition and experiment C++ generated code | FALSE

BOUNDARIES:

# | NAME | ALIAS | UNITS | DESCRIPTION | INITIAL
1 | coef |  |  |  | 0

JACOBIAN INDEPENDENT VARIABLES:

POS | VARIABLE | ALIAS | CATEGORY | UNITS | DESCRIPTION | INITIAL | RESIDUE EQUATION | BOX
1 | h |  | DYNAMIC | m | nivel de líquido en el depósito (m) |  | h' = (qe - F) / A | 0
2 | T |  | DYNAMIC | ºC | temperatura del depósito (ºC) |  | T' = (qe * rho * cp * (Te - T) + 3600. * V * V / R - 3600. * Uamb * (T - Tamb)) / (A * h * rho * cp) | 0

### USER DATA TYPES:

TYPES:

TYPE | NAME

### MODEL VARIABLES:

VARIABLES:

# | NAME | UNITS | EQUIV-TO | STATION | TYPE | MATH-TYPE | INITIAL | LRANGE | RRANGE | ALIAS | IS-ALIAS | EDIT | TRACE | STORE | DECK-IN | DECK-OUT
1 | A | m**2 |  |  | REAL | DATA_VAR | 0.47 |  |  |  | NO | YES | NO | NO | NO | NO
2 | F | m3/h |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
3 | F_optim |  |  |  | REAL[5] | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
4 | J1 |  |  |  | REAL | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
5 | J2 |  |  |  | REAL | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
6 | J_costo |  |  |  | REAL | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
7 | LiminfT |  |  |  | REAL | DATA_VAR | 20 |  |  |  | NO | YES | NO | NO | NO | NO
8 | Liminfh |  |  |  | REAL | DATA_VAR | 0.2 |  |  |  | NO | YES | NO | NO | NO | NO
9 | LimsupT |  |  |  | REAL | DATA_VAR | 80 |  |  |  | NO | YES | NO | NO | NO | NO
10 | Limsuph |  |  |  | REAL | DATA_VAR | 1 |  |  |  | NO | YES | NO | NO | NO | NO
11 | N1 |  |  |  | INTEGER | DATA_VAR | 1 |  |  |  | NO | YES | NO | NO | NO | NO
12 | NE |  |  |  | INTEGER | DATA_VAR | 451 |  |  |  | NO | YES | NO | NO | NO | NO
13 | R | ohmios |  |  | REAL | DATA_VAR | 52 |  |  |  | NO | YES | NO | NO | NO | NO
14 | Sample |  |  |  | BOOLEAN | DISCRETE | TRUE |  |  |  | NO | YES | NO | NO | NO | NO
15 | T | ºC |  |  | REAL | DYNAMIC |  |  |  |  | NO | YES | NO | NO | NO | NO
16 | T' | ºC |  |  | REAL | DERIVATIVE |  |  |  |  | NO | YES | NO | NO | NO | NO
17 | Tamb | ºC |  |  | REAL | DATA_VAR | 20 |  |  |  | NO | YES | NO | NO | NO | NO
18 | Te | ºC |  |  | REAL | DATA_VAR | 40 |  |  |  | NO | YES | NO | NO | NO | NO
19 | Tmax |  |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
20 | Tmin |  |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
21 | Uamb | W/ºC |  |  | REAL | DATA_VAR | 62 |  |  |  | NO | YES | NO | NO | NO | NO
22 | V | V |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
23 | a | % |  |  | REAL | DATA_VAR | 100 |  |  |  | NO | YES | NO | NO | NO | NO
24 | coef |  |  |  | REAL | BOUNDARY | 0 |  |  |  | NO | YES | NO | NO | NO | NO
25 | cp | J/kgºC |  |  | REAL | DATA_VAR | 4168 |  |  |  | NO | YES | NO | NO | NO | NO
26 | h | m |  |  | REAL | DYNAMIC |  |  |  |  | NO | YES | NO | NO | NO | NO
27 | h' | m |  |  | REAL | DERIVATIVE |  |  |  |  | NO | YES | NO | NO | NO | NO
28 | hmax |  |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
29 | hmin |  |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
30 | k | m**2.5/h |  |  | REAL | DATA_VAR | 0.18 |  |  |  | NO | YES | NO | NO | NO | NO
31 | media |  |  |  | REAL[2] | DATA_VAR | { 0.48,45.4} |  |  |  | NO | YES | NO | NO | NO | NO
32 | nent |  |  |  | INTEGER | CTE | 2 |  |  |  | NO | YES | NO | NO | NO | NO
33 | nsal |  |  |  | INTEGER | CTE | 2 |  |  |  | NO | YES | NO | NO | NO | NO
34 | pesos |  |  |  | REAL[2] | DATA_VAR | { 1,1} |  |  |  | NO | YES | NO | NO | NO | NO
35 | qe | m**3/h |  |  | REAL | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
36 | rho | kg/m**3 |  |  | REAL | DATA_VAR | 1000 |  |  |  | NO | YES | NO | NO | NO | NO
37 | tab1 |  |  |  | TABLE_1D | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
38 | tab2 |  |  |  | TABLE_1D | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
39 | tab3 |  |  |  | TABLE_1D | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
40 | tab4 |  |  |  | TABLE_1D | DISCRETE |  |  |  |  | NO | YES | NO | NO | NO | NO
41 | tsamp |  |  |  | REAL | DATA_VAR | 0.2 |  |  |  | NO | YES | NO | NO | NO | NO
42 | u_real |  |  |  | REAL[2] | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
43 | y_modelo |  |  |  | REAL[2] | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO
44 | y_real |  |  |  | REAL[2] | EXPLICIT |  |  |  |  | NO | YES | NO | NO | NO | NO

Note 1: Variables called "__aux_int_..." are internal integer variables, used to iterate
Note 2: FOR statements are converted to WHILE statements

### INIT STATEMENTS:

-- init(estim_param_deposito,0)
J_costo = 0
J1 = 0
J2 = 0
readTableCols1D("datos_potencia.txt", 1, 2, tab1)
u_real[1] = linearInterp1D(tab1, TIME)
V = u_real[1]
readTableCols1D("datos_caudal_entrada.txt", 1, 2, tab2)
u_real[2] = linearInterp1D(tab2, TIME)
qe = u_real[2]
readTableCols1D("datos_nivel.txt", 1, 2, tab3)
y_real[1] = linearInterp1D(tab3, TIME)
h = y_real[1]
y_modelo[1] = y_real[1]
readTableCols1D("datos_temperatura.txt", 1, 2, tab4)
y_real[2] = linearInterp1D(tab4, TIME)
T = y_real[2]
y_modelo[2] = y_real[2]
coef = 1
Tmin = T
Tmax = T
hmin = h
hmax = h

### DISCRETE STATEMENTS:

WHEN (Sample) THEN J1 += coef * ((y_modelo[1] - y_real[1]) / media[1]) ** 2 J2 += coef * ((y_modelo[2] - y_real[2]) / media[2]) ** 2 J_costo = pesos[1] * J1 + pesos[2] * J2 Sample = FALSE Sample = TRUE AFTER tsamp END WHEN
Note 3: In equations 'E' means explicit,'I' implicit,'L' linear,'F' function

### SORTED EQUATIONS:

###eqts 16
[E-1] u_real[1] = linearInterp1D(tab1, TIME)
[E-2] V = u_real[1]
[E-3] u_real[2] = linearInterp1D(tab2, TIME)
[E-4] qe = u_real[2]
[E-5] y_real[1] = linearInterp1D(tab3, TIME)
[E-6] y_real[2] = linearInterp1D(tab4, TIME)
[E-7] F = a * k * sqrt(h) / 100.
[E-8] h' = (qe - F) / A
[E-9] T' = (qe * rho * cp * (Te - T) + 3600. * V * V / R - 3600. * Uamb * (T - Tamb)) / (A * h * rho * cp)
[E-10] F_optim[1] = J_costo
[E-11] F_optim[2] = ESNOPT.minabs(T, Tmin) %%% (OUT VAR)Tmin
[E-12] F_optim[3] = ESNOPT.maxabs(T, Tmax) %%% (OUT VAR)Tmax
[E-13] F_optim[4] = ESNOPT.minabs(h, hmin) %%% (OUT VAR)hmin
[E-14] F_optim[5] = ESNOPT.maxabs(h, hmax) %%% (OUT VAR)hmax
[E-15] y_modelo[1] = h
[E-16] y_modelo[2] = T
EQUATIONS/VARIABLES MATRIX:

e/v | v 4 2 | v 2 2 | v 4 2 | v 3 5 | v 4 4 | v 4 4 | v 0 2 | v 2 7 | v 1 6 | v 0 3 | v 0 3 | v 2 0 | v 0 3 | v 1 9 | v 0 3 | v 2 9 | v 0 3 | v 2 8 | v 4 3 | v 4 3
e1 | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e2 | X | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e3 |  |  | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e4 |  |  | X | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e5 |  |  |  |  | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e6 |  |  |  |  |  | E |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
e7 |  |  |  |  |  |  | E |  |  |  |  |  |  |  |  |  |  |  |  |  |
e8 |  |  |  | X |  |  | X | E |  |  |  |  |  |  |  |  |  |  |  |  |
e9 |  | X |  | X |  |  |  |  | E |  |  |  |  |  |  |  |  |  |  |  |
e10 |  |  |  |  |  |  |  |  |  | E |  |  |  |  |  |  |  |  |  |  |
e11 |  |  |  |  |  |  |  |  |  |  | E | O |  |  |  |  |  |  |  |  |
e12 |  |  |  |  |  |  |  |  |  |  |  |  | E | O |  |  |  |  |  |  |
e13 |  |  |  |  |  |  |  |  |  |  |  |  |  |  | E | O |  |  |  |  |
e14 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | E | O |  |  |
e15 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | E |  |
e16 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | E |

Terminology:
X: Variable used in equation
E: Explict variable
A: Algebraic variable
L: Variable solved linearly
O: Calculated as output of a function or SEQUENTIAL block
NOTE: Some internal equations are not presented (typically with variables ending in ".")

Document generated automatically with PROOSIS Version: 3.6.16 Date: 2016:01:10 Time: 19:51:39