2020-01-24 16:01:17 +01:00
|
|
|
// --+ options: json=compute notmpterms nolog +--
|
2017-06-30 10:16:26 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
c + 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;
|
|
|
|
|
|
|
|
check;
|
|
|
|
|
|
|
|
shocks;
|
|
|
|
var x;
|
|
|
|
periods 1;
|
|
|
|
values 1.2;
|
|
|
|
end;
|
|
|
|
|
|
|
|
perfect_foresight_setup(periods=200);
|
|
|
|
perfect_foresight_solver;
|
|
|
|
|
|
|
|
rplot c;
|
|
|
|
rplot k;
|
|
|
|
|
2018-06-27 17:02:13 +02:00
|
|
|
if ~exist('./ramst/model/json/modfile.json', 'file') || exist('./ramst.log', 'file')
|
2017-08-29 10:27:49 +02:00
|
|
|
error('The dynare command did not honor the options provided in the mod file!')
|
2017-08-29 10:25:39 +02:00
|
|
|
end
|