Error using get_complementarity_conditions (line 59)
Complementarity condition
Error in initialize_stacked_problem (line 24)
[lb,ub,pfm.eq_index] =
get_complementarity_conditions(M,options.ramsey_policy);
Error in solve_stacked_problem (line 21)
initialize_stacked_problem(endogenousvariables, options, M, steadystate);
Error in perfect_foresight_solver_core (line 101)
solve_stacked_problem(oo_.endo_simul, oo_.exo_simul,
oo_.steady_state, M_, options_);
Error in perfect_foresight_solver (line 61)
oo_ = perfect_foresight_solver_core(M_,options_,oo_);
Error in dmpZLB (line 317)
perfect_foresight_solver;
Error in dynare (line 223)
evalin('base',fname) ;
Complementarity condition r > 0: variable r is not recognized
Simulation of the perfect foresight model failed!
Switching to a homotopy method...
Iter. | Lambda | status | Max. residual
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 | 0.50000 | failed | 4.993363e-01
2 | 0.25000 | failed | 2.495016e-01
3 | 0.12500 | failed | 1.248216e-01
4 | 0.06250 | failed | 6.230218e-02
5 | 0.03125 | failed | 3.085383e-02
6 | 0.01563 | failed | 1.524102e-02
7 | 0.00781 | failed | 7.526070e-03
8 | 0.00391 | failed | 3.665926e-03
9 | 0.00195 | failed | 1.908192e-03
10 | 0.00098 | failed | 9.348322e-04
11 | 0.00049 | succeeded | 8.810390e-09
12 | 0.00098 | succeeded | 8.235924e-09
13 | 0.00146 | succeeded | 7.385603e-09
14 | 0.00244 | failed | 9.739783e-04
15 | 0.00195 | failed | 4.839970e-04
16 | 0.00171 | failed | 2.423056e-04
17 | 0.00159 | succeeded | 7.947054e-09
18 | 0.00171 | failed | 1.209527e-04
19 | 0.00165 | succeeded | 7.317452e-09
20 | 0.00171 | failed | 6.066198e-05
21 | 0.00168 | failed | 3.036521e-05
22 | 0.00166 | succeeded | 7.747872e-09
23 | 0.00168 | succeeded | 6.277519e-09
24 | 0.00169 | succeeded | 8.542693e-09
25 | 0.00172 | failed | 3.018651e-05
26 | 0.00171 | succeeded | 1.510728e-08
27 | 0.00172 | succeeded | 1.207161e-08
28 | 0.00174 | failed | 1.518680e-05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Failed to solve perfect foresight model
initval;
C =1.05961;
R =1.0101;
pibar =1;
F =3.8835;
K =3.8835;
s =0.833333;
pstar =1;
l =1.07497;
x =0.1;
Q =0.296039;
J =0.142857;
V =98.805;
U =98.7892;
mm =0.99;
f =3.30469;
vartheta =1;
tight =11.163;
Y =1.07497;
v =0.337793;
wbar =0.984429;
u =0;
taun =0;
irpef =0;
eps_taun =0;
//R_ann=4*R;
end;
steady(solve_algo=4, maxit=1000);
endval;
C =1.05961;
R =1.0101;
pibar =1;
F =3.8835;
K =3.8835;
s =0.833333;
pstar =1;
l =1.07497;
x =0.1;
Q =0.296039;
J =0.142857;
V =98.805;
U =98.7892;
mm =0.99;
f =3.30469;
vartheta =1;
tight =11.163;
Y =1.07497;
v =0.337793;
wbar =0.984429;
u =0;
taun =0;
irpef =0;
eps_taun = .1;
//R_ann=4*R;
end;
steady(solve_algo=4, maxit=1000);
shocks;
var eps_ut;
periods 1:9;
values 0;
end;
perfect_foresight_setup(periods=50);
perfect_foresight_solver(lmmcp);
figure
subplot(2,2,1)
plot(0:12,oo_.endo_simul(strmatch('C',M_.endo_names,'exact'),M_.maximum_lag+1:M_.maximum_lag+13),'-x')
axis([0 12 -15 5])
subplot(2,2,2)
plot(0:12,oo_.endo_simul(strmatch('pibar',M_.endo_names,'exact'),M_.maximum_lag+1:M_.maximum_lag+13),'-x')
axis([0 12 -25 5])
subplot(2,2,3)
plot(0:12,oo_.endo_simul(strmatch('R',M_.endo_names,'exact'),M_.maximum_lag+1:M_.maximum_lag+13),'-x')
axis([0 12 -2 6])
subplot(2,2,4)
plot(0:12,oo_.endo_simul(strmatch('taun',M_.endo_names,'exact'),M_.maximum_lag+1:M_.maximum_lag+13),'-')
axis([0 12 -6 6])
rplot C;
Users browsing this forum: No registered users and 8 guests