Debian Codegraph @

tests/solve_algo_12_14/purely_static_common.inc

raw
1 @#define n = 10
2
3 @#for i in 1:n
4 var x@{i}, t@{i}, s@{i};
5 varexo e_x@{i}, e_t@{i}, e_s@{i};
6 @#endfor
7
8 model;
9 @#for i in 1:n
10 x@{i} = e_x@{i};
11 t@{i} = x@{i} + s@{i} + e_t@{i};
12 s@{i} = 3*t@{i} + e_s@{i};
13 @#endfor
14 end;
15
16 shocks;
17 @#for i in 1:n
18 var e_x@{i};
19 periods 1;
20 values @{0.1/n};
21
22 var e_t@{i};
23 periods 2;
24 values @{0.05+0.1/n};
25
26 var e_s@{i};
27 periods 3;
28 values @{0.1+0.1/n};
29 @#endfor
30 end;
31
32 perfect_foresight_setup(periods = 100);