convergence problem
Posted: Sun May 13, 2007 5:13 pm
Dear all,
I got a convergence problem with a very textbook RBC model, I played around a while and can not figure out the problem, I use the correct steady state values as initial values but get all the time error messages like:
??? Error using ==> resol
RESOL: convergence problem in DYNARE_SOLVE
Error in ==> c:\dynare\matlab\stoch_simul.m
On line 34 ==> dr_=resol(ys_,options_.dr_algo,options_.linear,options_.order);
Error in ==> C:\Dokumente und Einstellungen\grj27812\Eigene Dateien\Dissertation\Computation\Final Model\Matlab\Dynare_exercises\One_period_model\One_period_SP.m
On line 94 ==> stoch_simul(var_list_);
Error in ==> c:\dynare\matlab\dynare.m
On line 21 ==> evalin('base',fname) ;
here are the lines of the mod file:
periods = 400;
var C, N, K, L, Z;
varexo ep;
parameters alfa, mc, bet, dk, roh;
alfa = 0.35;
mc = 0.3;
bet = 0.95;
dk = 0.05;
roh = 0.95;
model;
mc/C = L;
(1-mc)/(1-N) = L*(1-alfa)*K^alfa*Z^(1-alfa)*N^(-alfa);
K(+1) + C = (K^alfa)*((Z*N)^(1-alfa)) + (1-dk)*K;
bet*(alfa*L(+1)*K(+1)^(alfa-1)*(Z(+1)*N(+1))^(1-alfa)-(1-dk))= L;
Z=(Z(-1)^roh)*exp(ep);
end;
initval;
C = 0.248;
N = 0.230;
K = 0.346;
L = 1.211;
Z = 1; ep = 0;
end;
shocks;
var ep;
stderr 0.01;
end;
stoch_simul;
Any help offered would be greatly appreciated.
many thanks
johannes
I got a convergence problem with a very textbook RBC model, I played around a while and can not figure out the problem, I use the correct steady state values as initial values but get all the time error messages like:
??? Error using ==> resol
RESOL: convergence problem in DYNARE_SOLVE
Error in ==> c:\dynare\matlab\stoch_simul.m
On line 34 ==> dr_=resol(ys_,options_.dr_algo,options_.linear,options_.order);
Error in ==> C:\Dokumente und Einstellungen\grj27812\Eigene Dateien\Dissertation\Computation\Final Model\Matlab\Dynare_exercises\One_period_model\One_period_SP.m
On line 94 ==> stoch_simul(var_list_);
Error in ==> c:\dynare\matlab\dynare.m
On line 21 ==> evalin('base',fname) ;
here are the lines of the mod file:
periods = 400;
var C, N, K, L, Z;
varexo ep;
parameters alfa, mc, bet, dk, roh;
alfa = 0.35;
mc = 0.3;
bet = 0.95;
dk = 0.05;
roh = 0.95;
model;
mc/C = L;
(1-mc)/(1-N) = L*(1-alfa)*K^alfa*Z^(1-alfa)*N^(-alfa);
K(+1) + C = (K^alfa)*((Z*N)^(1-alfa)) + (1-dk)*K;
bet*(alfa*L(+1)*K(+1)^(alfa-1)*(Z(+1)*N(+1))^(1-alfa)-(1-dk))= L;
Z=(Z(-1)^roh)*exp(ep);
end;
initval;
C = 0.248;
N = 0.230;
K = 0.346;
L = 1.211;
Z = 1; ep = 0;
end;
shocks;
var ep;
stderr 0.01;
end;
stoch_simul;
Any help offered would be greatly appreciated.
many thanks
johannes