parent
e81c837c51
commit
7e07d3e0fc
|
@ -22,20 +22,34 @@ k = ((delt+bet)/(1.0*aa*alph))^(1/(alph-1));
|
||||||
c = aa*k^alph-delt*k;
|
c = aa*k^alph-delt*k;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initval_file(filename = ramst_initval_file_data_row_vec_mat);
|
|
||||||
steady;
|
steady;
|
||||||
|
|
||||||
|
initval_file(filename = ramst_initval_file_data_row_vec_mat);
|
||||||
|
if oo_.exo_simul(2) ~= 1.2
|
||||||
|
error('initval_file problem with exogenous variable');
|
||||||
|
end
|
||||||
|
if oo_.endo_simul(2, 2) ~= 13
|
||||||
|
error('initval_file option problem with endogenous variable');
|
||||||
|
end
|
||||||
perfect_foresight_setup(periods=200);
|
perfect_foresight_setup(periods=200);
|
||||||
perfect_foresight_solver;
|
perfect_foresight_solver;
|
||||||
|
|
||||||
|
oo_.exo_simul = [];
|
||||||
|
oo_.endo_simul = [];
|
||||||
|
|
||||||
initval_file(filename = ramst_initval_file_data_col_vec_mat);
|
initval_file(filename = ramst_initval_file_data_col_vec_mat);
|
||||||
steady;
|
if oo_.exo_simul(2) ~= 1.2
|
||||||
|
error('initval_file problem with exogenous variable');
|
||||||
|
end
|
||||||
|
if oo_.endo_simul(2, 2) ~= 13
|
||||||
|
error('initval_file problem with endogenous variable');
|
||||||
|
end
|
||||||
|
|
||||||
perfect_foresight_setup(periods=200);
|
perfect_foresight_setup(periods=200);
|
||||||
perfect_foresight_solver;
|
perfect_foresight_solver;
|
||||||
|
|
||||||
if ispc()
|
if ispc()
|
||||||
initval_file(filename = ramst_initval_file_excel);
|
initval_file(filename = ramst_initval_file_excel);
|
||||||
steady;
|
|
||||||
perfect_foresight_setup(periods=200);
|
perfect_foresight_setup(periods=200);
|
||||||
perfect_foresight_solver;
|
perfect_foresight_solver;
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
x = vertcat([ 1; 1.2 ], repmat(1, 200, 1));
|
x = vertcat([ 1; 1.2 ], repmat(1, 200, 1));
|
||||||
k = repmat(12.7551, 202, 1);
|
k = repmat(13, 202, 1);
|
||||||
c = repmat(1.53061, 202, 1);
|
c = repmat(1.5, 202, 1);
|
||||||
save('ramst_initval_file_data_col_vec_mat.mat','c','k','x');
|
save('ramst_initval_file_data_col_vec_mat.mat','c','k','x');
|
||||||
|
|
||||||
if ispc()
|
if ispc()
|
||||||
|
@ -11,4 +11,4 @@ end
|
||||||
c=c';
|
c=c';
|
||||||
k=k';
|
k=k';
|
||||||
x=x';
|
x=x';
|
||||||
save('ramst_initval_file_data_row_vec_mat.mat','c','k','x');
|
save('ramst_initval_file_data_row_vec_mat.mat','c','k','x');
|
||||||
|
|
Loading…
Reference in New Issue