Debian Codegraph @

tests/lmmcp/purely_backward.mod

raw
1 // Regression test for bug #1720 (in the purely backward case)
2 // Also tests the alternative (ASCII) representation for the perpendicular symbol
3
4 var y;
5
6 varexo eps;
7
8 parameters rho;
9
10 rho = 0.9;
11
12 model;
13 y = y(-1)^rho*exp(eps) _|_ y>1;
14 end;
15
16 initval;
17 y = 1;
18 eps = 0;
19 end;
20
21 steady;
22
23 check;
24
25 shocks;
26 var eps;
27 periods 1 10;
28 values -1 1;
29 end;
30
31 perfect_foresight_setup(periods=20);
32 perfect_foresight_solver(lmmcp);
33
34 if ~oo_.deterministic_simulation.status
35 error('Perfect foresight simulation failed')
36 end
37
38 if any(oo_.endo_simul < 1)
39 error('y>1 constraint not enforced')
40 end