%
% Status : main Dynare file 
%
% Warning : this file is generated automatically by Dynare
%           from model file (.mod)

tic;
global M_ oo_ options_ ys0_ ex0_ estimation_info
options_ = [];
M_.fname = 'BBCDLmodelcomp_ramsey_c1pid_c2pid';
%
% Some global variables initialization
%
global_initialization;
diary off;
diary('BBCDLmodelcomp_ramsey_c1pid_c2pid.log');
M_.exo_names = 'c1shockgyerr';
M_.exo_names_tex = 'c1shockgyerr';
M_.exo_names_long = 'c1shockgyerr';
M_.exo_names = char(M_.exo_names, 'c1zerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c1zerr');
M_.exo_names_long = char(M_.exo_names_long, 'c1zerr');
M_.exo_names = char(M_.exo_names, 'c2shockgyerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c2shockgyerr');
M_.exo_names_long = char(M_.exo_names_long, 'c2shockgyerr');
M_.exo_names = char(M_.exo_names, 'c2zerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c2zerr');
M_.exo_names_long = char(M_.exo_names_long, 'c2zerr');
M_.exo_names = char(M_.exo_names, 'c2taupvarerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c2taupvarerr');
M_.exo_names_long = char(M_.exo_names_long, 'c2taupvarerr');
M_.exo_names = char(M_.exo_names, 'c1taupvarerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c1taupvarerr');
M_.exo_names_long = char(M_.exo_names_long, 'c1taupvarerr');
M_.exo_names = char(M_.exo_names, 'c1monerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c1monerr');
M_.exo_names_long = char(M_.exo_names_long, 'c1monerr');
M_.exo_names = char(M_.exo_names, 'c2monerr');
M_.exo_names_tex = char(M_.exo_names_tex, 'c2monerr');
M_.exo_names_long = char(M_.exo_names_long, 'c2monerr');
M_.endo_names = 'Util';
M_.endo_names_tex = 'Util';
M_.endo_names_long = 'Util';
M_.endo_names = char(M_.endo_names, 'Welf');
M_.endo_names_tex = char(M_.endo_names_tex, 'Welf');
M_.endo_names_long = char(M_.endo_names_long, 'Welf');
M_.endo_names = char(M_.endo_names, 'instr1');
M_.endo_names_tex = char(M_.endo_names_tex, 'instr1');
M_.endo_names_long = char(M_.endo_names_long, 'instr1');
M_.endo_names = char(M_.endo_names, 'instr2');
M_.endo_names_tex = char(M_.endo_names_tex, 'instr2');
M_.endo_names_long = char(M_.endo_names_long, 'instr2');
M_.endo_names = char(M_.endo_names, 'Util1');
M_.endo_names_tex = char(M_.endo_names_tex, 'Util1');
M_.endo_names_long = char(M_.endo_names_long, 'Util1');
M_.endo_names = char(M_.endo_names, 'Util2');
M_.endo_names_tex = char(M_.endo_names_tex, 'Util2');
M_.endo_names_long = char(M_.endo_names_long, 'Util2');
M_.endo_names = char(M_.endo_names, 'c1c');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1c');
M_.endo_names_long = char(M_.endo_names_long, 'c1c');
M_.endo_names = char(M_.endo_names, 'c1cd');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1cd');
M_.endo_names_long = char(M_.endo_names_long, 'c1cd');
M_.endo_names = char(M_.endo_names, 'c1mc');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1mc');
M_.endo_names_long = char(M_.endo_names_long, 'c1mc');
M_.endo_names = char(M_.endo_names, 'c1y');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1y');
M_.endo_names_long = char(M_.endo_names_long, 'c1y');
M_.endo_names = char(M_.endo_names, 'c1g');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1g');
M_.endo_names_long = char(M_.endo_names_long, 'c1g');
M_.endo_names = char(M_.endo_names, 'c1rpcpd');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rpcpd');
M_.endo_names_long = char(M_.endo_names_long, 'c1rpcpd');
M_.endo_names = char(M_.endo_names, 'c1pid');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1pid');
M_.endo_names_long = char(M_.endo_names_long, 'c1pid');
M_.endo_names = char(M_.endo_names, 'c1hp');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1hp');
M_.endo_names_long = char(M_.endo_names_long, 'c1hp');
M_.endo_names = char(M_.endo_names, 'c1gp');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1gp');
M_.endo_names_long = char(M_.endo_names_long, 'c1gp');
M_.endo_names = char(M_.endo_names, 'c1pstar');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1pstar');
M_.endo_names_long = char(M_.endo_names_long, 'c1pstar');
M_.endo_names = char(M_.endo_names, 'c1deltad');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1deltad');
M_.endo_names_long = char(M_.endo_names_long, 'c1deltad');
M_.endo_names = char(M_.endo_names, 'c1rn');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rn');
M_.endo_names_long = char(M_.endo_names_long, 'c1rn');
M_.endo_names = char(M_.endo_names, 'c1rer');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rer');
M_.endo_names_long = char(M_.endo_names_long, 'c1rer');
M_.endo_names = char(M_.endo_names, 'c1dcore');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1dcore');
M_.endo_names_long = char(M_.endo_names_long, 'c1dcore');
M_.endo_names = char(M_.endo_names, 'c2c');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2c');
M_.endo_names_long = char(M_.endo_names_long, 'c2c');
M_.endo_names = char(M_.endo_names, 'c2cd');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2cd');
M_.endo_names_long = char(M_.endo_names_long, 'c2cd');
M_.endo_names = char(M_.endo_names, 'c2mc');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2mc');
M_.endo_names_long = char(M_.endo_names_long, 'c2mc');
M_.endo_names = char(M_.endo_names, 'c2y');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2y');
M_.endo_names_long = char(M_.endo_names_long, 'c2y');
M_.endo_names = char(M_.endo_names, 'c2g');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2g');
M_.endo_names_long = char(M_.endo_names_long, 'c2g');
M_.endo_names = char(M_.endo_names, 'c2rpcpd');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rpcpd');
M_.endo_names_long = char(M_.endo_names_long, 'c2rpcpd');
M_.endo_names = char(M_.endo_names, 'c2pid');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2pid');
M_.endo_names_long = char(M_.endo_names_long, 'c2pid');
M_.endo_names = char(M_.endo_names, 'c2hp');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2hp');
M_.endo_names_long = char(M_.endo_names_long, 'c2hp');
M_.endo_names = char(M_.endo_names, 'c2gp');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2gp');
M_.endo_names_long = char(M_.endo_names_long, 'c2gp');
M_.endo_names = char(M_.endo_names, 'c2pstar');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2pstar');
M_.endo_names_long = char(M_.endo_names_long, 'c2pstar');
M_.endo_names = char(M_.endo_names, 'c2deltad');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2deltad');
M_.endo_names_long = char(M_.endo_names_long, 'c2deltad');
M_.endo_names = char(M_.endo_names, 'c2rn');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rn');
M_.endo_names_long = char(M_.endo_names_long, 'c2rn');
M_.endo_names = char(M_.endo_names, 'c2dcore');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2dcore');
M_.endo_names_long = char(M_.endo_names_long, 'c2dcore');
M_.endo_names = char(M_.endo_names, 'Welfcon1');
M_.endo_names_tex = char(M_.endo_names_tex, 'Welfcon1');
M_.endo_names_long = char(M_.endo_names_long, 'Welfcon1');
M_.endo_names = char(M_.endo_names, 'c1deltadlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1deltadlag');
M_.endo_names_long = char(M_.endo_names_long, 'c1deltadlag');
M_.endo_names = char(M_.endo_names, 'c1rnlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rnlag');
M_.endo_names_long = char(M_.endo_names_long, 'c1rnlag');
M_.endo_names = char(M_.endo_names, 'c1rpcpdlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rpcpdlag');
M_.endo_names_long = char(M_.endo_names_long, 'c1rpcpdlag');
M_.endo_names = char(M_.endo_names, 'c2deltadlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2deltadlag');
M_.endo_names_long = char(M_.endo_names_long, 'c2deltadlag');
M_.endo_names = char(M_.endo_names, 'c2rnlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rnlag');
M_.endo_names_long = char(M_.endo_names_long, 'c2rnlag');
M_.endo_names = char(M_.endo_names, 'c2rpcpdlag');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rpcpdlag');
M_.endo_names_long = char(M_.endo_names_long, 'c2rpcpdlag');
M_.endo_names = char(M_.endo_names, 'c1deltadlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1deltadlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c1deltadlag2');
M_.endo_names = char(M_.endo_names, 'c1rnlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rnlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c1rnlag2');
M_.endo_names = char(M_.endo_names, 'c1rpcpdlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1rpcpdlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c1rpcpdlag2');
M_.endo_names = char(M_.endo_names, 'c2deltadlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2deltadlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c2deltadlag2');
M_.endo_names = char(M_.endo_names, 'c2rnlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rnlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c2rnlag2');
M_.endo_names = char(M_.endo_names, 'c2rpcpdlag2');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2rpcpdlag2');
M_.endo_names_long = char(M_.endo_names_long, 'c2rpcpdlag2');
M_.endo_names = char(M_.endo_names, 'c1shockgy');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1shockgy');
M_.endo_names_long = char(M_.endo_names_long, 'c1shockgy');
M_.endo_names = char(M_.endo_names, 'c1z');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1z');
M_.endo_names_long = char(M_.endo_names_long, 'c1z');
M_.endo_names = char(M_.endo_names, 'c1taupvar');
M_.endo_names_tex = char(M_.endo_names_tex, 'c1taupvar');
M_.endo_names_long = char(M_.endo_names_long, 'c1taupvar');
M_.endo_names = char(M_.endo_names, 'c2shockgy');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2shockgy');
M_.endo_names_long = char(M_.endo_names_long, 'c2shockgy');
M_.endo_names = char(M_.endo_names, 'c2z');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2z');
M_.endo_names_long = char(M_.endo_names_long, 'c2z');
M_.endo_names = char(M_.endo_names, 'c2taupvar');
M_.endo_names_tex = char(M_.endo_names_tex, 'c2taupvar');
M_.endo_names_long = char(M_.endo_names_long, 'c2taupvar');
M_.endo_names = char(M_.endo_names, 'lmult1');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult1');
M_.endo_names_long = char(M_.endo_names_long, 'lmult1');
M_.endo_names = char(M_.endo_names, 'lmult2');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult2');
M_.endo_names_long = char(M_.endo_names_long, 'lmult2');
M_.endo_names = char(M_.endo_names, 'lmult3');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult3');
M_.endo_names_long = char(M_.endo_names_long, 'lmult3');
M_.endo_names = char(M_.endo_names, 'lmult4');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult4');
M_.endo_names_long = char(M_.endo_names_long, 'lmult4');
M_.endo_names = char(M_.endo_names, 'lmult5');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult5');
M_.endo_names_long = char(M_.endo_names_long, 'lmult5');
M_.endo_names = char(M_.endo_names, 'lmult6');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult6');
M_.endo_names_long = char(M_.endo_names_long, 'lmult6');
M_.endo_names = char(M_.endo_names, 'lmult7');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult7');
M_.endo_names_long = char(M_.endo_names_long, 'lmult7');
M_.endo_names = char(M_.endo_names, 'lmult8');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult8');
M_.endo_names_long = char(M_.endo_names_long, 'lmult8');
M_.endo_names = char(M_.endo_names, 'lmult9');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult9');
M_.endo_names_long = char(M_.endo_names_long, 'lmult9');
M_.endo_names = char(M_.endo_names, 'lmult10');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult10');
M_.endo_names_long = char(M_.endo_names_long, 'lmult10');
M_.endo_names = char(M_.endo_names, 'lmult11');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult11');
M_.endo_names_long = char(M_.endo_names_long, 'lmult11');
M_.endo_names = char(M_.endo_names, 'lmult12');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult12');
M_.endo_names_long = char(M_.endo_names_long, 'lmult12');
M_.endo_names = char(M_.endo_names, 'lmult13');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult13');
M_.endo_names_long = char(M_.endo_names_long, 'lmult13');
M_.endo_names = char(M_.endo_names, 'lmult14');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult14');
M_.endo_names_long = char(M_.endo_names_long, 'lmult14');
M_.endo_names = char(M_.endo_names, 'lmult15');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult15');
M_.endo_names_long = char(M_.endo_names_long, 'lmult15');
M_.endo_names = char(M_.endo_names, 'lmult16');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult16');
M_.endo_names_long = char(M_.endo_names_long, 'lmult16');
M_.endo_names = char(M_.endo_names, 'lmult17');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult17');
M_.endo_names_long = char(M_.endo_names_long, 'lmult17');
M_.endo_names = char(M_.endo_names, 'lmult18');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult18');
M_.endo_names_long = char(M_.endo_names_long, 'lmult18');
M_.endo_names = char(M_.endo_names, 'lmult19');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult19');
M_.endo_names_long = char(M_.endo_names_long, 'lmult19');
M_.endo_names = char(M_.endo_names, 'lmult20');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult20');
M_.endo_names_long = char(M_.endo_names_long, 'lmult20');
M_.endo_names = char(M_.endo_names, 'lmult21');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult21');
M_.endo_names_long = char(M_.endo_names_long, 'lmult21');
M_.endo_names = char(M_.endo_names, 'lmult22');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult22');
M_.endo_names_long = char(M_.endo_names_long, 'lmult22');
M_.endo_names = char(M_.endo_names, 'lmult23');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult23');
M_.endo_names_long = char(M_.endo_names_long, 'lmult23');
M_.endo_names = char(M_.endo_names, 'lmult24');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult24');
M_.endo_names_long = char(M_.endo_names_long, 'lmult24');
M_.endo_names = char(M_.endo_names, 'lmult25');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult25');
M_.endo_names_long = char(M_.endo_names_long, 'lmult25');
M_.endo_names = char(M_.endo_names, 'lmult26');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult26');
M_.endo_names_long = char(M_.endo_names_long, 'lmult26');
M_.endo_names = char(M_.endo_names, 'lmult27');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult27');
M_.endo_names_long = char(M_.endo_names_long, 'lmult27');
M_.endo_names = char(M_.endo_names, 'lmult28');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult28');
M_.endo_names_long = char(M_.endo_names_long, 'lmult28');
M_.endo_names = char(M_.endo_names, 'lmult29');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult29');
M_.endo_names_long = char(M_.endo_names_long, 'lmult29');
M_.endo_names = char(M_.endo_names, 'lmult30');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult30');
M_.endo_names_long = char(M_.endo_names_long, 'lmult30');
M_.endo_names = char(M_.endo_names, 'lmult31');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult31');
M_.endo_names_long = char(M_.endo_names_long, 'lmult31');
M_.endo_names = char(M_.endo_names, 'lmult32');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult32');
M_.endo_names_long = char(M_.endo_names_long, 'lmult32');
M_.endo_names = char(M_.endo_names, 'lmult33');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult33');
M_.endo_names_long = char(M_.endo_names_long, 'lmult33');
M_.endo_names = char(M_.endo_names, 'lmult34');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult34');
M_.endo_names_long = char(M_.endo_names_long, 'lmult34');
M_.endo_names = char(M_.endo_names, 'lmult35');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult35');
M_.endo_names_long = char(M_.endo_names_long, 'lmult35');
M_.endo_names = char(M_.endo_names, 'lmult36');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult36');
M_.endo_names_long = char(M_.endo_names_long, 'lmult36');
M_.endo_names = char(M_.endo_names, 'lmult37');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult37');
M_.endo_names_long = char(M_.endo_names_long, 'lmult37');
M_.endo_names = char(M_.endo_names, 'lmult38');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult38');
M_.endo_names_long = char(M_.endo_names_long, 'lmult38');
M_.endo_names = char(M_.endo_names, 'lmult39');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult39');
M_.endo_names_long = char(M_.endo_names_long, 'lmult39');
M_.endo_names = char(M_.endo_names, 'lmult40');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult40');
M_.endo_names_long = char(M_.endo_names_long, 'lmult40');
M_.endo_names = char(M_.endo_names, 'lmult41');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult41');
M_.endo_names_long = char(M_.endo_names_long, 'lmult41');
M_.endo_names = char(M_.endo_names, 'lmult42');
M_.endo_names_tex = char(M_.endo_names_tex, 'lmult42');
M_.endo_names_long = char(M_.endo_names_long, 'lmult42');
M_.endo_names = char(M_.endo_names, 'Welf1');
M_.endo_names_tex = char(M_.endo_names_tex, 'Welf1');
M_.endo_names_long = char(M_.endo_names_long, 'Welf1');
M_.endo_names = char(M_.endo_names, 'Welf2');
M_.endo_names_tex = char(M_.endo_names_tex, 'Welf2');
M_.endo_names_long = char(M_.endo_names_long, 'Welf2');
M_.endo_names = char(M_.endo_names, 'Welfcorrection');
M_.endo_names_tex = char(M_.endo_names_tex, 'Welfcorrection');
M_.endo_names_long = char(M_.endo_names_long, 'Welfcorrection');
M_.param_names = 'omega_welf1';
M_.param_names_tex = 'omega\_welf1';
M_.param_names_long = 'omega_welf1';
M_.param_names = char(M_.param_names, 'omega_welf2');
M_.param_names_tex = char(M_.param_names_tex, 'omega\_welf2');
M_.param_names_long = char(M_.param_names_long, 'omega_welf2');
M_.param_names = char(M_.param_names, 'nbeta');
M_.param_names_tex = char(M_.param_names_tex, 'nbeta');
M_.param_names_long = char(M_.param_names_long, 'nbeta');
M_.param_names = char(M_.param_names, 'c1sigma');
M_.param_names_tex = char(M_.param_names_tex, 'c1sigma');
M_.param_names_long = char(M_.param_names_long, 'c1sigma');
M_.param_names = char(M_.param_names, 'c1beta');
M_.param_names_tex = char(M_.param_names_tex, 'c1beta');
M_.param_names_long = char(M_.param_names_long, 'c1beta');
M_.param_names = char(M_.param_names, 'c1rhoc');
M_.param_names_tex = char(M_.param_names_tex, 'c1rhoc');
M_.param_names_long = char(M_.param_names_long, 'c1rhoc');
M_.param_names = char(M_.param_names, 'c1sharegy');
M_.param_names_tex = char(M_.param_names_tex, 'c1sharegy');
M_.param_names_long = char(M_.param_names_long, 'c1sharegy');
M_.param_names = char(M_.param_names, 'c1rhogy');
M_.param_names_tex = char(M_.param_names_tex, 'c1rhogy');
M_.param_names_long = char(M_.param_names_long, 'c1rhogy');
M_.param_names = char(M_.param_names, 'c1sigmagy');
M_.param_names_tex = char(M_.param_names_tex, 'c1sigmagy');
M_.param_names_long = char(M_.param_names_long, 'c1sigmagy');
M_.param_names = char(M_.param_names, 'c1rhoz');
M_.param_names_tex = char(M_.param_names_tex, 'c1rhoz');
M_.param_names_long = char(M_.param_names_long, 'c1rhoz');
M_.param_names = char(M_.param_names, 'c1sigmaz');
M_.param_names_tex = char(M_.param_names_tex, 'c1sigmaz');
M_.param_names_long = char(M_.param_names_long, 'c1sigmaz');
M_.param_names = char(M_.param_names, 'c2sigma');
M_.param_names_tex = char(M_.param_names_tex, 'c2sigma');
M_.param_names_long = char(M_.param_names_long, 'c2sigma');
M_.param_names = char(M_.param_names, 'c2beta');
M_.param_names_tex = char(M_.param_names_tex, 'c2beta');
M_.param_names_long = char(M_.param_names_long, 'c2beta');
M_.param_names = char(M_.param_names, 'c2rhoc');
M_.param_names_tex = char(M_.param_names_tex, 'c2rhoc');
M_.param_names_long = char(M_.param_names_long, 'c2rhoc');
M_.param_names = char(M_.param_names, 'c2sharegy');
M_.param_names_tex = char(M_.param_names_tex, 'c2sharegy');
M_.param_names_long = char(M_.param_names_long, 'c2sharegy');
M_.param_names = char(M_.param_names, 'c2rhogy');
M_.param_names_tex = char(M_.param_names_tex, 'c2rhogy');
M_.param_names_long = char(M_.param_names_long, 'c2rhogy');
M_.param_names = char(M_.param_names, 'c2sigmagy');
M_.param_names_tex = char(M_.param_names_tex, 'c2sigmagy');
M_.param_names_long = char(M_.param_names_long, 'c2sigmagy');
M_.param_names = char(M_.param_names, 'c2rhoz');
M_.param_names_tex = char(M_.param_names_tex, 'c2rhoz');
M_.param_names_long = char(M_.param_names_long, 'c2rhoz');
M_.param_names = char(M_.param_names, 'c2sigmaz');
M_.param_names_tex = char(M_.param_names_tex, 'c2sigmaz');
M_.param_names_long = char(M_.param_names_long, 'c2sigmaz');
M_.param_names = char(M_.param_names, 'c2rhotaupvar');
M_.param_names_tex = char(M_.param_names_tex, 'c2rhotaupvar');
M_.param_names_long = char(M_.param_names_long, 'c2rhotaupvar');
M_.param_names = char(M_.param_names, 'c2sigmataupvarerr');
M_.param_names_tex = char(M_.param_names_tex, 'c2sigmataupvarerr');
M_.param_names_long = char(M_.param_names_long, 'c2sigmataupvarerr');
M_.param_names = char(M_.param_names, 'c1rhotaupvar');
M_.param_names_tex = char(M_.param_names_tex, 'c1rhotaupvar');
M_.param_names_long = char(M_.param_names_long, 'c1rhotaupvar');
M_.param_names = char(M_.param_names, 'c1sigmataupvarerr');
M_.param_names_tex = char(M_.param_names_tex, 'c1sigmataupvarerr');
M_.param_names_long = char(M_.param_names_long, 'c1sigmataupvarerr');
M_.param_names = char(M_.param_names, 'c2chi');
M_.param_names_tex = char(M_.param_names_tex, 'c2chi');
M_.param_names_long = char(M_.param_names_long, 'c2chi');
M_.param_names = char(M_.param_names, 'c1chi');
M_.param_names_tex = char(M_.param_names_tex, 'c1chi');
M_.param_names_long = char(M_.param_names_long, 'c1chi');
M_.param_names = char(M_.param_names, 'c2nup');
M_.param_names_tex = char(M_.param_names_tex, 'c2nup');
M_.param_names_long = char(M_.param_names_long, 'c2nup');
M_.param_names = char(M_.param_names, 'c1nup');
M_.param_names_tex = char(M_.param_names_tex, 'c1nup');
M_.param_names_long = char(M_.param_names_long, 'c1nup');
M_.param_names = char(M_.param_names, 'c2xip');
M_.param_names_tex = char(M_.param_names_tex, 'c2xip');
M_.param_names_long = char(M_.param_names_long, 'c2xip');
M_.param_names = char(M_.param_names, 'c1xip');
M_.param_names_tex = char(M_.param_names_tex, 'c1xip');
M_.param_names_long = char(M_.param_names_long, 'c1xip');
M_.param_names = char(M_.param_names, 'c1chi0');
M_.param_names_tex = char(M_.param_names_tex, 'c1chi0');
M_.param_names_long = char(M_.param_names_long, 'c1chi0');
M_.param_names = char(M_.param_names, 'c1omegac');
M_.param_names_tex = char(M_.param_names_tex, 'c1omegac');
M_.param_names_long = char(M_.param_names_long, 'c1omegac');
M_.param_names = char(M_.param_names, 'c1omegamc');
M_.param_names_tex = char(M_.param_names_tex, 'c1omegamc');
M_.param_names_long = char(M_.param_names_long, 'c1omegamc');
M_.param_names = char(M_.param_names, 'c1relc2');
M_.param_names_tex = char(M_.param_names_tex, 'c1relc2');
M_.param_names_long = char(M_.param_names_long, 'c1relc2');
M_.param_names = char(M_.param_names, 'c1pistar');
M_.param_names_tex = char(M_.param_names_tex, 'c1pistar');
M_.param_names_long = char(M_.param_names_long, 'c1pistar');
M_.param_names = char(M_.param_names, 'c1taup');
M_.param_names_tex = char(M_.param_names_tex, 'c1taup');
M_.param_names_long = char(M_.param_names_long, 'c1taup');
M_.param_names = char(M_.param_names, 'c2chi0');
M_.param_names_tex = char(M_.param_names_tex, 'c2chi0');
M_.param_names_long = char(M_.param_names_long, 'c2chi0');
M_.param_names = char(M_.param_names, 'c2omegac');
M_.param_names_tex = char(M_.param_names_tex, 'c2omegac');
M_.param_names_long = char(M_.param_names_long, 'c2omegac');
M_.param_names = char(M_.param_names, 'c2omegamc');
M_.param_names_tex = char(M_.param_names_tex, 'c2omegamc');
M_.param_names_long = char(M_.param_names_long, 'c2omegamc');
M_.param_names = char(M_.param_names, 'c2pistar');
M_.param_names_tex = char(M_.param_names_tex, 'c2pistar');
M_.param_names_long = char(M_.param_names_long, 'c2pistar');
M_.param_names = char(M_.param_names, 'c2taup');
M_.param_names_tex = char(M_.param_names_tex, 'c2taup');
M_.param_names_long = char(M_.param_names_long, 'c2taup');
M_.param_names = char(M_.param_names, 'c1rnss');
M_.param_names_tex = char(M_.param_names_tex, 'c1rnss');
M_.param_names_long = char(M_.param_names_long, 'c1rnss');
M_.param_names = char(M_.param_names, 'c2rnss');
M_.param_names_tex = char(M_.param_names_tex, 'c2rnss');
M_.param_names_long = char(M_.param_names_long, 'c2rnss');
M_.param_names = char(M_.param_names, 'c1gamrn');
M_.param_names_tex = char(M_.param_names_tex, 'c1gamrn');
M_.param_names_long = char(M_.param_names_long, 'c1gamrn');
M_.param_names = char(M_.param_names, 'c1gamdpc');
M_.param_names_tex = char(M_.param_names_tex, 'c1gamdpc');
M_.param_names_long = char(M_.param_names_long, 'c1gamdpc');
M_.param_names = char(M_.param_names, 'c2gamrn');
M_.param_names_tex = char(M_.param_names_tex, 'c2gamrn');
M_.param_names_long = char(M_.param_names_long, 'c2gamrn');
M_.param_names = char(M_.param_names, 'c2gamdpc');
M_.param_names_tex = char(M_.param_names_tex, 'c2gamdpc');
M_.param_names_long = char(M_.param_names_long, 'c2gamdpc');
M_.param_names = char(M_.param_names, 'c2lambdaqss');
M_.param_names_tex = char(M_.param_names_tex, 'c2lambdaqss');
M_.param_names_long = char(M_.param_names_long, 'c2lambdaqss');
M_.param_names = char(M_.param_names, 'c2rpcpdss');
M_.param_names_tex = char(M_.param_names_tex, 'c2rpcpdss');
M_.param_names_long = char(M_.param_names_long, 'c2rpcpdss');
M_.param_names = char(M_.param_names, 'c1rerss');
M_.param_names_tex = char(M_.param_names_tex, 'c1rerss');
M_.param_names_long = char(M_.param_names_long, 'c1rerss');
M_.param_names = char(M_.param_names, 'c1lambdaqss');
M_.param_names_tex = char(M_.param_names_tex, 'c1lambdaqss');
M_.param_names_long = char(M_.param_names_long, 'c1lambdaqss');
M_.param_names = char(M_.param_names, 'c1rpcpdss');
M_.param_names_tex = char(M_.param_names_tex, 'c1rpcpdss');
M_.param_names_long = char(M_.param_names_long, 'c1rpcpdss');
M_.exo_det_nbr = 0;
M_.exo_nbr = 8;
M_.endo_nbr = 97;
M_.param_nbr = 51;
M_.orig_endo_nbr = 97;
M_.aux_vars = [];
M_.Sigma_e = zeros(8, 8);
M_.Correlation_matrix = eye(8, 8);
M_.H = 0;
M_.Correlation_matrix_ME = 1;
options_.block=0;
options_.bytecode=0;
options_.use_dll=0;
erase_compiled_function('BBCDLmodelcomp_ramsey_c1pid_c2pid_static');
erase_compiled_function('BBCDLmodelcomp_ramsey_c1pid_c2pid_dynamic');
M_.lead_lag_incidence = [
 0 35 0;
 0 36 132;
 0 37 0;
 0 38 0;
 0 39 0;
 0 40 0;
 1 41 133;
 0 42 0;
 0 43 0;
 2 44 0;
 0 45 0;
 3 46 134;
 0 47 135;
 4 48 136;
 5 49 137;
 0 50 0;
 6 51 0;
 7 52 0;
 0 53 0;
 0 54 0;
 8 55 138;
 0 56 0;
 0 57 0;
 9 58 0;
 0 59 0;
 10 60 139;
 0 61 140;
 11 62 141;
 12 63 142;
 0 64 0;
 13 65 0;
 14 66 0;
 0 67 0;
 15 68 143;
 16 69 0;
 17 70 0;
 18 71 0;
 19 72 0;
 20 73 0;
 21 74 0;
 0 75 0;
 0 76 0;
 0 77 0;
 0 78 0;
 0 79 0;
 0 80 0;
 22 81 0;
 23 82 0;
 24 83 0;
 25 84 0;
 26 85 0;
 27 86 0;
 0 87 0;
 0 88 0;
 0 89 144;
 0 90 145;
 0 91 146;
 0 92 147;
 0 93 148;
 0 94 149;
 0 95 150;
 0 96 151;
 0 97 152;
 0 98 153;
 0 99 154;
 0 100 155;
 28 101 0;
 29 102 0;
 0 103 0;
 0 104 0;
 0 105 0;
 0 106 0;
 30 107 0;
 31 108 0;
 0 109 0;
 0 110 0;
 0 111 0;
 0 112 0;
 0 113 0;
 32 114 0;
 0 115 0;
 0 116 0;
 0 117 0;
 0 118 0;
 33 119 0;
 34 120 0;
 0 121 0;
 0 122 0;
 0 123 0;
 0 124 0;
 0 125 0;
 0 126 0;
 0 127 0;
 0 128 0;
 0 129 156;
 0 130 157;
 0 131 0;]';
M_.nstatic = 46;
M_.nfwrd   = 17;
M_.npred   = 25;
M_.nboth   = 9;
M_.nsfwrd   = 26;
M_.nspred   = 34;
M_.ndynamic   = 51;
M_.equations_tags = {
};
M_.static_and_dynamic_models_differ = 0;
M_.exo_names_orig_ord = [1:8];
M_.maximum_lag = 1;
M_.maximum_lead = 1;
M_.maximum_endo_lag = 1;
M_.maximum_endo_lead = 1;
oo_.steady_state = zeros(97, 1);
M_.maximum_exo_lag = 0;
M_.maximum_exo_lead = 0;
oo_.exo_steady_state = zeros(8, 1);
M_.params = NaN(51, 1);
M_.NNZDerivatives = zeros(3, 1);
M_.NNZDerivatives(1) = 529;
M_.NNZDerivatives(2) = 2139;
M_.NNZDerivatives(3) = -1;
options_.irf = 0;
options_.nocorr = 1;
options_.order = 2;
var_list_=[];
info = stoch_simul(var_list_);
save('BBCDLmodelcomp_ramsey_c1pid_c2pid_results.mat', 'oo_', 'M_', 'options_');
if exist('estim_params_', 'var') == 1
  save('BBCDLmodelcomp_ramsey_c1pid_c2pid_results.mat', 'estim_params_', '-append');
end
if exist('bayestopt_', 'var') == 1
  save('BBCDLmodelcomp_ramsey_c1pid_c2pid_results.mat', 'bayestopt_', '-append');
end
if exist('dataset_', 'var') == 1
  save('BBCDLmodelcomp_ramsey_c1pid_c2pid_results.mat', 'dataset_', '-append');
end
if exist('estimation_info', 'var') == 1
  save('BBCDLmodelcomp_ramsey_c1pid_c2pid_results.mat', 'estimation_info', '-append');
end


disp(['Total computing time : ' dynsec2hms(toc) ]);
disp('Note: 1 warning(s) encountered in the preprocessor')
if ~isempty(lastwarn)
  disp('Note: warning(s) encountered in MATLAB/Octave code')
end
diary off
