Project

General

Profile

Download (2.23 KB) Statistics
| Branch: | Tag: | Revision:
1
-- This file has been generated by CoCoSim2.
2

    
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:32:29
5
(*
6
Original block name: DiscreteStateSpace_1_PP/DSS
7
*)
8
node  DSS_17_068(U_1 : real;
9
	U_2 : real;
10
	__time_step : real;
11
	__nb_step : int;)
12
returns(Y_1 : real;
13
	Y_2 : real;);
14
var A_1 : real;
15
	A_2 : real;
16
	A_3 : real;
17
	A_4 : real;
18
	B_1 : real;
19
	B_2 : real;
20
	B_3 : real;
21
	B_4 : real;
22
	C_1 : real;
23
	C_2 : real;
24
	C_3 : real;
25
	C_4 : real;
26
	D_1 : real;
27
	D_2 : real;
28
	D_3 : real;
29
	D_4 : real;
30
	Product_1 : real;
31
	Product_2 : real;
32
	Product1_1 : real;
33
	Product1_2 : real;
34
	Product2_1 : real;
35
	Product2_2 : real;
36
	Product3_1 : real;
37
	Product3_2 : real;
38
	Sum_1 : real;
39
	Sum_2 : real;
40
	Sum1_1 : real;
41
	Sum1_2 : real;
42
	X0_1 : real;
43
	X0_2 : real;
44
let
45
	A_1 = 2.000000000000000;
46
	A_2 = 5.000000000000000;
47
	A_3 = 4.000000000000000;
48
	A_4 = 4.000000000000000;
49
	B_1 = 4.000000000000000;
50
	B_2 = 4.000000000000000;
51
	B_3 = 5.000000000000000;
52
	B_4 = 3.000000000000000;
53
	C_1 = 3.000000000000000;
54
	C_2 = 6.000000000000000;
55
	C_3 = 5.000000000000000;
56
	C_4 = 7.000000000000000;
57
	D_1 = 3.000000000000000;
58
	D_2 = 5.000000000000000;
59
	D_3 = 4.000000000000000;
60
	D_4 = 6.000000000000000;
61
	Product_1 = 0.0 + (C_1 * X0_1) + (C_3 * X0_2);
62
	Product_2 = 0.0 + (C_2 * X0_1) + (C_4 * X0_2);
63
	Product1_1 = 0.0 + (D_1 * U_1) + (D_3 * U_2);
64
	Product1_2 = 0.0 + (D_2 * U_1) + (D_4 * U_2);
65
	Product2_1 = 0.0 + (B_1 * U_1) + (B_3 * U_2);
66
	Product2_2 = 0.0 + (B_2 * U_1) + (B_4 * U_2);
67
	Product3_1 = 0.0 + (A_1 * X0_1) + (A_3 * X0_2);
68
	Product3_2 = 0.0 + (A_2 * X0_1) + (A_4 * X0_2);
69
	Sum_1 = 0.0 + Product1_1 + Product_1;
70
	Sum_2 = 0.0 + Product1_2 + Product_2;
71
	Sum1_1 = 0.0 + Product3_1 + Product2_1;
72
	Sum1_2 = 0.0 + Product3_2 + Product2_2;
73
	X0_1 = (0.000000000000000 -> (pre Sum1_1));
74
	X0_2 = (0.000000000000000 -> (pre Sum1_2));
75
	Y_1 = Sum_1;
76
	Y_2 = Sum_2;
77
tel
78

    
79
(*
80
Original block name: DiscreteStateSpace_1_PP
81
*)
82
node  DiscreteStateSpace_1_PP(In1_1 : real;
83
	In1_2 : real;)
84
returns(Out1_1 : real;
85
	Out1_2 : real;);
86
var DSS_1 : real;
87
	DSS_2 : real;
88
	__time_step : real;
89
	__nb_step : int;
90
let
91
	(DSS_1, DSS_2) = DSS_17_068(In1_1, In1_2, __time_step, __nb_step);
92
	Out1_1 = DSS_1;
93
	Out1_2 = DSS_2;
94
	__time_step = (0.0 -> ((pre __time_step) + 0.100000000000000));
95
	__nb_step = (0 -> ((pre __nb_step) + 1));
96
tel
97

    
(517-517/1153)