MATHEMATICAL MODEL VIEW
==========================================================
 Model: CLASE.estim_param_deposito.param
 Internal Version: 6.0
 Date and Time: 16/04/2019 11:19:29.411000
 Library: CLASE
 Library dependency list: CLASE V0.0 
 Software: PROOSIS V6.0.0

==========================================================
Statistics
INFO	VALUE
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 BOUNDARIES	1
Number of output EXPLICIT	14
Number of output DYNAMICS or DERIVATIVES	2
Number of output ALGEBRAICS	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

Partition Settings
SETTING	VALUE
Remove derivatives	FALSE
Use automatic reduction of equations	TRUE
Remove unused variables	FALSE
Advanced residue generation	disabled
Generate a class associated to the partition	FALSE
Generate code to check mathematical functions	TRUE
Generate code to analyse the performance of the simulation	FALSE
Obfuscate C++ generated code	FALSE
Generate mathematical view (HTML)	TRUE
Generate mathematical view in other formats (TXT and XML)	TRUE
Use maximum number of digits for representing real constants	FALSE
Generate residues to allow their comparison after validation	FALSE

Types
No types defined.

Variables
#	NAME	UNITS	TYPE	MATH-TYPE	INITIAL	LRANGE	RRANGE	STATION	ALIAS	IS-ALIAS	EDIT	TRACE	STORE	DECK-IN	DECK-OUT
1	A	m2	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.3					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'		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'		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,100} 					NO	YES	NO	NO	NO	NO
35	qe	m**3/h	REAL	EXPLICIT						NO	YES	NO	NO	NO	NO
36	rho	kg/m3	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


No equivalent variables detected.

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


No design variables defined.

No high index problems detected.


Boundary Variables
#	NAME	ALIAS	UNITS	DESCRIPTION	INITIAL	PRIVATE
1	coef				0	NO



Jacobian Independent Variables
POS	VARIABLE	ALIAS	CATEGORY	UNITS	DESCRIPTION	INITIAL	RESIDUE EQUATION	BOX
1	<font color="red"><font color="red">h</font></font>	<font color="red"><font color="red"></font></font>	DYNAMIC	m	nivel de líquido en el depósito (m)		h' = (qe - F) / A	0
2	<font color="red"><font color="red">T</font></font>	<font color="red"><font color="red"></font></font>	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





Note 1: Variables called "__aux_int_..." are internal integer variables, used to iterate
Note 2: FOR statements are converted to WHILE 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
hmin = h
hmax = h
Tmin = T
Tmax = T


Equations: 16
Note 3: In equations 'E' means explicit,'I' implicit,'L' linear,'F' function
[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] = CLASE.minabs(h, hmin) %%% (OUT VAR)hmin 
[E-12] F_optim[3] = CLASE.maxabs(h, hmax) %%% (OUT VAR)hmax 
[E-13] F_optim[4] = CLASE.minabs(T, Tmin) %%% (OUT VAR)Tmin 
[E-14] F_optim[5] = CLASE.maxabs(T, Tmax) %%% (OUT VAR)Tmax 
[E-15] y_modelo[1] = h
[E-16] y_modelo[2] = T


No differences with last validation detected.



