dynare/tests/ferhat/ramst.mod

42 lines
583 B
Modula-2

var c k;
varexo x;
parameters alph gam delt bet aa;
alph=0.5;
gam=0.5;
delt=0.02;
bet=0.05;
aa=0.5;
//model(SPARSE_DLL,GCC_COMPILER);
//model(SPARSE_DLL);
model;
max(c,0.0)+ k - aa*x*k(-1)^alph - (1-delt)*k(-1);
c^(-gam) - (1+bet)^(-1)*(aa*alph*x(+1)*k^(alph-1) + 1 - delt)*c(+1)^(-gam);
end;
initval;
x = 1;
k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
c = aa*k^alph-delt*k;
end;
steady(solve_algo=2);
//check;
shocks;
var x;
periods 1;
values 1.2;
end;
oo_.dynatol=1e-19;
options_.maxit_ = 10;
simul(periods=6);
rplot c;
rplot k;