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

if isoctave || matlab_ver_less_than('8.6')
    clear all
else
    clearvars -global
    clear_persistent_variables(fileparts(which('dynare')), false)
end
tic0 = tic;
% Save empty dates and dseries objects in memory.
dates('initialize');
dseries('initialize');
% Define global variables.
global M_ options_ oo_ estim_params_ bayestopt_ dataset_ dataset_info estimation_info ys0_ ex0_
options_ = [];
M_.fname = 'CA_BMZ12';
M_.dynare_version = '4.5.4';
oo_.dynare_version = '4.5.4';
options_.dynare_version = '4.5.4';
%
% Some global variables initialization
%
global_initialization;
diary off;
diary('CA_BMZ12.log');
M_.exo_names = 'epszt';
M_.exo_names_tex = 'epszt';
M_.exo_names_long = 'epszt';
M_.exo_names = char(M_.exo_names, 'epsxt');
M_.exo_names_tex = char(M_.exo_names_tex, 'epsxt');
M_.exo_names_long = char(M_.exo_names_long, 'epsxt');
M_.exo_names = char(M_.exo_names, 'epspt');
M_.exo_names_tex = char(M_.exo_names_tex, 'epspt');
M_.exo_names_long = char(M_.exo_names_long, 'epspt');
M_.exo_names = char(M_.exo_names, 'epsft');
M_.exo_names_tex = char(M_.exo_names_tex, 'epsft');
M_.exo_names_long = char(M_.exo_names_long, 'epsft');
M_.exo_names = char(M_.exo_names, 'interest_');
M_.exo_names_tex = char(M_.exo_names_tex, 'interest\_');
M_.exo_names_long = char(M_.exo_names_long, 'interest_');
M_.endo_names = 'auxt';
M_.endo_names_tex = 'auxt';
M_.endo_names_long = 'auxt';
M_.endo_names = char(M_.endo_names, 'bigXt');
M_.endo_names_tex = char(M_.endo_names_tex, 'bigXt');
M_.endo_names_long = char(M_.endo_names_long, 'bigXt');
M_.endo_names = char(M_.endo_names, 'bigZt');
M_.endo_names_tex = char(M_.endo_names_tex, 'bigZt');
M_.endo_names_long = char(M_.endo_names_long, 'bigZt');
M_.endo_names = char(M_.endo_names, 'ct');
M_.endo_names_tex = char(M_.endo_names_tex, 'ct');
M_.endo_names_long = char(M_.endo_names_long, 'ct');
M_.endo_names = char(M_.endo_names, 'eqti');
M_.endo_names_tex = char(M_.endo_names_tex, 'eqti');
M_.endo_names_long = char(M_.endo_names_long, 'eqti');
M_.endo_names = char(M_.endo_names, 'ht');
M_.endo_names_tex = char(M_.endo_names_tex, 'ht');
M_.endo_names_long = char(M_.endo_names_long, 'ht');
M_.endo_names = char(M_.endo_names, 'it');
M_.endo_names_tex = char(M_.endo_names_tex, 'it');
M_.endo_names_long = char(M_.endo_names_long, 'it');
M_.endo_names = char(M_.endo_names, 'kt');
M_.endo_names_tex = char(M_.endo_names_tex, 'kt');
M_.endo_names_long = char(M_.endo_names_long, 'kt');
M_.endo_names = char(M_.endo_names, 'lambdat');
M_.endo_names_tex = char(M_.endo_names_tex, 'lambdat');
M_.endo_names_long = char(M_.endo_names_long, 'lambdat');
M_.endo_names = char(M_.endo_names, 'llt');
M_.endo_names_tex = char(M_.endo_names_tex, 'llt');
M_.endo_names_long = char(M_.endo_names_long, 'llt');
M_.endo_names = char(M_.endo_names, 'mct');
M_.endo_names_tex = char(M_.endo_names_tex, 'mct');
M_.endo_names_long = char(M_.endo_names_long, 'mct');
M_.endo_names = char(M_.endo_names, 'nt');
M_.endo_names_tex = char(M_.endo_names_tex, 'nt');
M_.endo_names_long = char(M_.endo_names_long, 'nt');
M_.endo_names = char(M_.endo_names, 'pit');
M_.endo_names_tex = char(M_.endo_names_tex, 'pit');
M_.endo_names_long = char(M_.endo_names_long, 'pit');
M_.endo_names = char(M_.endo_names, 'pref');
M_.endo_names_tex = char(M_.endo_names_tex, 'pref');
M_.endo_names_long = char(M_.endo_names_long, 'pref');
M_.endo_names = char(M_.endo_names, 'pstart');
M_.endo_names_tex = char(M_.endo_names_tex, 'pstart');
M_.endo_names_long = char(M_.endo_names_long, 'pstart');
M_.endo_names = char(M_.endo_names, 'qt');
M_.endo_names_tex = char(M_.endo_names_tex, 'qt');
M_.endo_names_long = char(M_.endo_names_long, 'qt');
M_.endo_names = char(M_.endo_names, 'rkt');
M_.endo_names_tex = char(M_.endo_names_tex, 'rkt');
M_.endo_names_long = char(M_.endo_names_long, 'rkt');
M_.endo_names = char(M_.endo_names, 'rnt');
M_.endo_names_tex = char(M_.endo_names_tex, 'rnt');
M_.endo_names_long = char(M_.endo_names_long, 'rnt');
M_.endo_names = char(M_.endo_names, 'st');
M_.endo_names_tex = char(M_.endo_names_tex, 'st');
M_.endo_names_long = char(M_.endo_names_long, 'st');
M_.endo_names = char(M_.endo_names, 'xt');
M_.endo_names_tex = char(M_.endo_names_tex, 'xt');
M_.endo_names_long = char(M_.endo_names_long, 'xt');
M_.endo_names = char(M_.endo_names, 'yt');
M_.endo_names_tex = char(M_.endo_names_tex, 'yt');
M_.endo_names_long = char(M_.endo_names_long, 'yt');
M_.endo_names = char(M_.endo_names, 'zt');
M_.endo_names_tex = char(M_.endo_names_tex, 'zt');
M_.endo_names_long = char(M_.endo_names_long, 'zt');
M_.endo_names = char(M_.endo_names, 'auxtfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'auxtfp');
M_.endo_names_long = char(M_.endo_names_long, 'auxtfp');
M_.endo_names = char(M_.endo_names, 'ctfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'ctfp');
M_.endo_names_long = char(M_.endo_names_long, 'ctfp');
M_.endo_names = char(M_.endo_names, 'htfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'htfp');
M_.endo_names_long = char(M_.endo_names_long, 'htfp');
M_.endo_names = char(M_.endo_names, 'itfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'itfp');
M_.endo_names_long = char(M_.endo_names_long, 'itfp');
M_.endo_names = char(M_.endo_names, 'ktfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'ktfp');
M_.endo_names_long = char(M_.endo_names_long, 'ktfp');
M_.endo_names = char(M_.endo_names, 'lambdatfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'lambdatfp');
M_.endo_names_long = char(M_.endo_names_long, 'lambdatfp');
M_.endo_names = char(M_.endo_names, 'lltfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'lltfp');
M_.endo_names_long = char(M_.endo_names_long, 'lltfp');
M_.endo_names = char(M_.endo_names, 'mctfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'mctfp');
M_.endo_names_long = char(M_.endo_names_long, 'mctfp');
M_.endo_names = char(M_.endo_names, 'qtfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'qtfp');
M_.endo_names_long = char(M_.endo_names_long, 'qtfp');
M_.endo_names = char(M_.endo_names, 'rktfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'rktfp');
M_.endo_names_long = char(M_.endo_names_long, 'rktfp');
M_.endo_names = char(M_.endo_names, 'rntfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'rntfp');
M_.endo_names_long = char(M_.endo_names_long, 'rntfp');
M_.endo_names = char(M_.endo_names, 'ytfp');
M_.endo_names_tex = char(M_.endo_names_tex, 'ytfp');
M_.endo_names_long = char(M_.endo_names_long, 'ytfp');
M_.endo_names = char(M_.endo_names, 'ygap');
M_.endo_names_tex = char(M_.endo_names_tex, 'ygap');
M_.endo_names_long = char(M_.endo_names_long, 'ygap');
M_.endo_names = char(M_.endo_names, 'lnyt');
M_.endo_names_tex = char(M_.endo_names_tex, 'lnyt');
M_.endo_names_long = char(M_.endo_names_long, 'lnyt');
M_.endo_names = char(M_.endo_names, 'lnit');
M_.endo_names_tex = char(M_.endo_names_tex, 'lnit');
M_.endo_names_long = char(M_.endo_names_long, 'lnit');
M_.endo_names = char(M_.endo_names, 'lnygap');
M_.endo_names_tex = char(M_.endo_names_tex, 'lnygap');
M_.endo_names_long = char(M_.endo_names_long, 'lnygap');
M_.endo_names = char(M_.endo_names, 'ft');
M_.endo_names_tex = char(M_.endo_names_tex, 'ft');
M_.endo_names_long = char(M_.endo_names_long, 'ft');
M_.endo_names = char(M_.endo_names, 'taut');
M_.endo_names_tex = char(M_.endo_names_tex, 'taut');
M_.endo_names_long = char(M_.endo_names_long, 'taut');
M_.endo_names = char(M_.endo_names, 'bt');
M_.endo_names_tex = char(M_.endo_names_tex, 'bt');
M_.endo_names_long = char(M_.endo_names_long, 'bt');
M_.endo_names = char(M_.endo_names, 'cgn');
M_.endo_names_tex = char(M_.endo_names_tex, 'cgn');
M_.endo_names_long = char(M_.endo_names_long, 'cgn');
M_.endo_names = char(M_.endo_names, 'cg');
M_.endo_names_tex = char(M_.endo_names_tex, 'cg');
M_.endo_names_long = char(M_.endo_names_long, 'cg');
M_.endo_names = char(M_.endo_names, 'mpl');
M_.endo_names_tex = char(M_.endo_names_tex, 'mpl');
M_.endo_names_long = char(M_.endo_names_long, 'mpl');
M_.endo_names = char(M_.endo_names, 'kl');
M_.endo_names_tex = char(M_.endo_names_tex, 'kl');
M_.endo_names_long = char(M_.endo_names_long, 'kl');
M_.endo_names = char(M_.endo_names, 'mpk');
M_.endo_names_tex = char(M_.endo_names_tex, 'mpk');
M_.endo_names_long = char(M_.endo_names_long, 'mpk');
M_.endo_names = char(M_.endo_names, 'rw');
M_.endo_names_tex = char(M_.endo_names_tex, 'rw');
M_.endo_names_long = char(M_.endo_names_long, 'rw');
M_.endo_names = char(M_.endo_names, 'mcl');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcl');
M_.endo_names_long = char(M_.endo_names_long, 'mcl');
M_.endo_names = char(M_.endo_names, 'mck');
M_.endo_names_tex = char(M_.endo_names_tex, 'mck');
M_.endo_names_long = char(M_.endo_names_long, 'mck');
M_.endo_names = char(M_.endo_names, 'mcb');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcb');
M_.endo_names_long = char(M_.endo_names_long, 'mcb');
M_.endo_names = char(M_.endo_names, 'mcc');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcc');
M_.endo_names_long = char(M_.endo_names_long, 'mcc');
M_.endo_names = char(M_.endo_names, 'mcd');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcd');
M_.endo_names_long = char(M_.endo_names_long, 'mcd');
M_.endo_names = char(M_.endo_names, 'mce');
M_.endo_names_tex = char(M_.endo_names_tex, 'mce');
M_.endo_names_long = char(M_.endo_names_long, 'mce');
M_.endo_names = char(M_.endo_names, 'htb');
M_.endo_names_tex = char(M_.endo_names_tex, 'htb');
M_.endo_names_long = char(M_.endo_names_long, 'htb');
M_.endo_names = char(M_.endo_names, 'qgap');
M_.endo_names_tex = char(M_.endo_names_tex, 'qgap');
M_.endo_names_long = char(M_.endo_names_long, 'qgap');
M_.endo_names = char(M_.endo_names, 'expi');
M_.endo_names_tex = char(M_.endo_names_tex, 'expi');
M_.endo_names_long = char(M_.endo_names_long, 'expi');
M_.endo_names = char(M_.endo_names, 'lev');
M_.endo_names_tex = char(M_.endo_names_tex, 'lev');
M_.endo_names_long = char(M_.endo_names_long, 'lev');
M_.endo_names = char(M_.endo_names, 'kc');
M_.endo_names_tex = char(M_.endo_names_tex, 'kc');
M_.endo_names_long = char(M_.endo_names_long, 'kc');
M_.endo_names = char(M_.endo_names, 'ce');
M_.endo_names_tex = char(M_.endo_names_tex, 'ce');
M_.endo_names_long = char(M_.endo_names_long, 'ce');
M_.endo_names = char(M_.endo_names, 'ste');
M_.endo_names_tex = char(M_.endo_names_tex, 'ste');
M_.endo_names_long = char(M_.endo_names_long, 'ste');
M_.endo_names = char(M_.endo_names, 'efc');
M_.endo_names_tex = char(M_.endo_names_tex, 'efc');
M_.endo_names_long = char(M_.endo_names_long, 'efc');
M_.endo_names = char(M_.endo_names, 'uu');
M_.endo_names_tex = char(M_.endo_names_tex, 'uu');
M_.endo_names_long = char(M_.endo_names_long, 'uu');
M_.endo_names = char(M_.endo_names, 'vf');
M_.endo_names_tex = char(M_.endo_names_tex, 'vf');
M_.endo_names_long = char(M_.endo_names_long, 'vf');
M_.endo_names = char(M_.endo_names, 'welfareloss');
M_.endo_names_tex = char(M_.endo_names_tex, 'welfareloss');
M_.endo_names_long = char(M_.endo_names_long, 'welfareloss');
M_.endo_names = char(M_.endo_names, 'interest');
M_.endo_names_tex = char(M_.endo_names_tex, 'interest');
M_.endo_names_long = char(M_.endo_names_long, 'interest');
M_.endo_names = char(M_.endo_names, 'inflation');
M_.endo_names_tex = char(M_.endo_names_tex, 'inflation');
M_.endo_names_long = char(M_.endo_names_long, 'inflation');
M_.endo_names = char(M_.endo_names, 'inflationq');
M_.endo_names_tex = char(M_.endo_names_tex, 'inflationq');
M_.endo_names_long = char(M_.endo_names_long, 'inflationq');
M_.endo_names = char(M_.endo_names, 'outputgap');
M_.endo_names_tex = char(M_.endo_names_tex, 'outputgap');
M_.endo_names_long = char(M_.endo_names_long, 'outputgap');
M_.endo_names = char(M_.endo_names, 'output');
M_.endo_names_tex = char(M_.endo_names_tex, 'output');
M_.endo_names_long = char(M_.endo_names_long, 'output');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_98');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_98');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_98');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_102');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_102');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_102');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_106');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_106');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_106');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_133');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_133');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_133');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_137');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_137');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_137');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_141');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_141');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_141');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_168');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_168');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_168');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_172');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_172');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_172');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LEAD_176');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LEAD\_176');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LEAD_176');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_66_1');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_66\_1');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_66_1');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_66_2');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_66\_2');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_66_2');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_68_1');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_68\_1');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_68_1');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_68_2');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_68\_2');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_68_2');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_68_3');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_68\_3');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_68_3');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_67_1');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_67\_1');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_67_1');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_67_2');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_67\_2');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_67_2');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_67_3');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_67\_3');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_67_3');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_64_1');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_64\_1');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_64_1');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_64_2');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_64\_2');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_64_2');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_64_3');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_64\_3');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_64_3');
M_.endo_names = char(M_.endo_names, 'AUX_ENDO_LAG_66_3');
M_.endo_names_tex = char(M_.endo_names_tex, 'AUX\_ENDO\_LAG\_66\_3');
M_.endo_names_long = char(M_.endo_names_long, 'AUX_ENDO_LAG_66_3');
M_.endo_partitions = struct();
M_.param_names = 'cofintintb1';
M_.param_names_tex = 'cofintintb1';
M_.param_names_long = 'cofintintb1';
M_.param_names = char(M_.param_names, 'cofintintb2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintintb2');
M_.param_names_long = char(M_.param_names_long, 'cofintintb2');
M_.param_names = char(M_.param_names, 'cofintintb3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintintb3');
M_.param_names_long = char(M_.param_names_long, 'cofintintb3');
M_.param_names = char(M_.param_names, 'cofintintb4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintintb4');
M_.param_names_long = char(M_.param_names_long, 'cofintintb4');
M_.param_names = char(M_.param_names, 'cofintinf0');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinf0');
M_.param_names_long = char(M_.param_names_long, 'cofintinf0');
M_.param_names = char(M_.param_names, 'cofintinfb1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinfb1');
M_.param_names_long = char(M_.param_names_long, 'cofintinfb1');
M_.param_names = char(M_.param_names, 'cofintinfb2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinfb2');
M_.param_names_long = char(M_.param_names_long, 'cofintinfb2');
M_.param_names = char(M_.param_names, 'cofintinfb3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinfb3');
M_.param_names_long = char(M_.param_names_long, 'cofintinfb3');
M_.param_names = char(M_.param_names, 'cofintinfb4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinfb4');
M_.param_names_long = char(M_.param_names_long, 'cofintinfb4');
M_.param_names = char(M_.param_names, 'cofintinff1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinff1');
M_.param_names_long = char(M_.param_names_long, 'cofintinff1');
M_.param_names = char(M_.param_names, 'cofintinff2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinff2');
M_.param_names_long = char(M_.param_names_long, 'cofintinff2');
M_.param_names = char(M_.param_names, 'cofintinff3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinff3');
M_.param_names_long = char(M_.param_names_long, 'cofintinff3');
M_.param_names = char(M_.param_names, 'cofintinff4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintinff4');
M_.param_names_long = char(M_.param_names_long, 'cofintinff4');
M_.param_names = char(M_.param_names, 'cofintout');
M_.param_names_tex = char(M_.param_names_tex, 'cofintout');
M_.param_names_long = char(M_.param_names_long, 'cofintout');
M_.param_names = char(M_.param_names, 'cofintoutb1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutb1');
M_.param_names_long = char(M_.param_names_long, 'cofintoutb1');
M_.param_names = char(M_.param_names, 'cofintoutb2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutb2');
M_.param_names_long = char(M_.param_names_long, 'cofintoutb2');
M_.param_names = char(M_.param_names, 'cofintoutb3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutb3');
M_.param_names_long = char(M_.param_names_long, 'cofintoutb3');
M_.param_names = char(M_.param_names, 'cofintoutb4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutb4');
M_.param_names_long = char(M_.param_names_long, 'cofintoutb4');
M_.param_names = char(M_.param_names, 'cofintoutf1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutf1');
M_.param_names_long = char(M_.param_names_long, 'cofintoutf1');
M_.param_names = char(M_.param_names, 'cofintoutf2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutf2');
M_.param_names_long = char(M_.param_names_long, 'cofintoutf2');
M_.param_names = char(M_.param_names, 'cofintoutf3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutf3');
M_.param_names_long = char(M_.param_names_long, 'cofintoutf3');
M_.param_names = char(M_.param_names, 'cofintoutf4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutf4');
M_.param_names_long = char(M_.param_names_long, 'cofintoutf4');
M_.param_names = char(M_.param_names, 'cofintoutp');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutp');
M_.param_names_long = char(M_.param_names_long, 'cofintoutp');
M_.param_names = char(M_.param_names, 'cofintoutpb1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpb1');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpb1');
M_.param_names = char(M_.param_names, 'cofintoutpb2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpb2');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpb2');
M_.param_names = char(M_.param_names, 'cofintoutpb3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpb3');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpb3');
M_.param_names = char(M_.param_names, 'cofintoutpb4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpb4');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpb4');
M_.param_names = char(M_.param_names, 'cofintoutpf1');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpf1');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpf1');
M_.param_names = char(M_.param_names, 'cofintoutpf2');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpf2');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpf2');
M_.param_names = char(M_.param_names, 'cofintoutpf3');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpf3');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpf3');
M_.param_names = char(M_.param_names, 'cofintoutpf4');
M_.param_names_tex = char(M_.param_names_tex, 'cofintoutpf4');
M_.param_names_long = char(M_.param_names_long, 'cofintoutpf4');
M_.param_names = char(M_.param_names, 'std_r_');
M_.param_names_tex = char(M_.param_names_tex, 'std\_r\_');
M_.param_names_long = char(M_.param_names_long, 'std_r_');
M_.param_names = char(M_.param_names, 'std_r_quart');
M_.param_names_tex = char(M_.param_names_tex, 'std\_r\_quart');
M_.param_names_long = char(M_.param_names_long, 'std_r_quart');
M_.param_names = char(M_.param_names, 'b');
M_.param_names_tex = char(M_.param_names_tex, 'b');
M_.param_names_long = char(M_.param_names_long, 'b');
M_.param_names = char(M_.param_names, 'a');
M_.param_names_tex = char(M_.param_names_tex, 'a');
M_.param_names_long = char(M_.param_names_long, 'a');
M_.param_names = char(M_.param_names, 'chi');
M_.param_names_tex = char(M_.param_names_tex, 'chi');
M_.param_names_long = char(M_.param_names_long, 'chi');
M_.param_names = char(M_.param_names, 'd');
M_.param_names_tex = char(M_.param_names_tex, 'd');
M_.param_names_long = char(M_.param_names_long, 'd');
M_.param_names = char(M_.param_names, 'g');
M_.param_names_tex = char(M_.param_names_tex, 'g');
M_.param_names_long = char(M_.param_names_long, 'g');
M_.param_names = char(M_.param_names, 'te');
M_.param_names_tex = char(M_.param_names_tex, 'te');
M_.param_names_long = char(M_.param_names_long, 'te');
M_.param_names = char(M_.param_names, 'veps');
M_.param_names_tex = char(M_.param_names_tex, 'veps');
M_.param_names_long = char(M_.param_names_long, 'veps');
M_.param_names = char(M_.param_names, 'xi');
M_.param_names_tex = char(M_.param_names_tex, 'xi');
M_.param_names_long = char(M_.param_names_long, 'xi');
M_.param_names = char(M_.param_names, 'nu');
M_.param_names_tex = char(M_.param_names_tex, 'nu');
M_.param_names_long = char(M_.param_names_long, 'nu');
M_.param_names = char(M_.param_names, 'tau');
M_.param_names_tex = char(M_.param_names_tex, 'tau');
M_.param_names_long = char(M_.param_names_long, 'tau');
M_.param_names = char(M_.param_names, 'r_p');
M_.param_names_tex = char(M_.param_names_tex, 'r\_p');
M_.param_names_long = char(M_.param_names_long, 'r_p');
M_.param_names = char(M_.param_names, 'r_r');
M_.param_names_tex = char(M_.param_names_tex, 'r\_r');
M_.param_names_long = char(M_.param_names_long, 'r_r');
M_.param_names = char(M_.param_names, 'r_y');
M_.param_names_tex = char(M_.param_names_tex, 'r\_y');
M_.param_names_long = char(M_.param_names_long, 'r_y');
M_.param_names = char(M_.param_names, 'rho_z');
M_.param_names_tex = char(M_.param_names_tex, 'rho\_z');
M_.param_names_long = char(M_.param_names_long, 'rho_z');
M_.param_names = char(M_.param_names, 'rho_e');
M_.param_names_tex = char(M_.param_names_tex, 'rho\_e');
M_.param_names_long = char(M_.param_names_long, 'rho_e');
M_.param_names = char(M_.param_names, 'rho_x');
M_.param_names_tex = char(M_.param_names_tex, 'rho\_x');
M_.param_names_long = char(M_.param_names_long, 'rho_x');
M_.param_names = char(M_.param_names, 'mub');
M_.param_names_tex = char(M_.param_names_tex, 'mub');
M_.param_names_long = char(M_.param_names_long, 'mub');
M_.param_names = char(M_.param_names, 'tau1');
M_.param_names_tex = char(M_.param_names_tex, 'tau1');
M_.param_names_long = char(M_.param_names_long, 'tau1');
M_.param_names = char(M_.param_names, 'rho_p');
M_.param_names_tex = char(M_.param_names_tex, 'rho\_p');
M_.param_names_long = char(M_.param_names_long, 'rho_p');
M_.param_names = char(M_.param_names, 'aux_ss');
M_.param_names_tex = char(M_.param_names_tex, 'aux\_ss');
M_.param_names_long = char(M_.param_names_long, 'aux_ss');
M_.param_names = char(M_.param_names, 'pi_ss');
M_.param_names_tex = char(M_.param_names_tex, 'pi\_ss');
M_.param_names_long = char(M_.param_names_long, 'pi_ss');
M_.param_names = char(M_.param_names, 'q_ss');
M_.param_names_tex = char(M_.param_names_tex, 'q\_ss');
M_.param_names_long = char(M_.param_names_long, 'q_ss');
M_.param_names = char(M_.param_names, 'z_ss');
M_.param_names_tex = char(M_.param_names_tex, 'z\_ss');
M_.param_names_long = char(M_.param_names_long, 'z_ss');
M_.param_names = char(M_.param_names, 'e_ss');
M_.param_names_tex = char(M_.param_names_tex, 'e\_ss');
M_.param_names_long = char(M_.param_names_long, 'e_ss');
M_.param_names = char(M_.param_names, 'mc_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mc\_ss');
M_.param_names_long = char(M_.param_names_long, 'mc_ss');
M_.param_names = char(M_.param_names, 'rn_ss');
M_.param_names_tex = char(M_.param_names_tex, 'rn\_ss');
M_.param_names_long = char(M_.param_names_long, 'rn_ss');
M_.param_names = char(M_.param_names, 'rk_ss');
M_.param_names_tex = char(M_.param_names_tex, 'rk\_ss');
M_.param_names_long = char(M_.param_names_long, 'rk_ss');
M_.param_names = char(M_.param_names, 's_ss');
M_.param_names_tex = char(M_.param_names_tex, 's\_ss');
M_.param_names_long = char(M_.param_names_long, 's_ss');
M_.param_names = char(M_.param_names, 'ik_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ik\_ss');
M_.param_names_long = char(M_.param_names_long, 'ik_ss');
M_.param_names = char(M_.param_names, 'eqti_ss');
M_.param_names_tex = char(M_.param_names_tex, 'eqti\_ss');
M_.param_names_long = char(M_.param_names_long, 'eqti_ss');
M_.param_names = char(M_.param_names, 'yk_ss');
M_.param_names_tex = char(M_.param_names_tex, 'yk\_ss');
M_.param_names_long = char(M_.param_names_long, 'yk_ss');
M_.param_names = char(M_.param_names, 'ck_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ck\_ss');
M_.param_names_long = char(M_.param_names_long, 'ck_ss');
M_.param_names = char(M_.param_names, 'yc_ss');
M_.param_names_tex = char(M_.param_names_tex, 'yc\_ss');
M_.param_names_long = char(M_.param_names_long, 'yc_ss');
M_.param_names = char(M_.param_names, 'h_ss');
M_.param_names_tex = char(M_.param_names_tex, 'h\_ss');
M_.param_names_long = char(M_.param_names_long, 'h_ss');
M_.param_names = char(M_.param_names, 'k_ss');
M_.param_names_tex = char(M_.param_names_tex, 'k\_ss');
M_.param_names_long = char(M_.param_names_long, 'k_ss');
M_.param_names = char(M_.param_names, 'n_ss');
M_.param_names_tex = char(M_.param_names_tex, 'n\_ss');
M_.param_names_long = char(M_.param_names_long, 'n_ss');
M_.param_names = char(M_.param_names, 'c_ss');
M_.param_names_tex = char(M_.param_names_tex, 'c\_ss');
M_.param_names_long = char(M_.param_names_long, 'c_ss');
M_.param_names = char(M_.param_names, 'i_ss');
M_.param_names_tex = char(M_.param_names_tex, 'i\_ss');
M_.param_names_long = char(M_.param_names_long, 'i_ss');
M_.param_names = char(M_.param_names, 'y_ss');
M_.param_names_tex = char(M_.param_names_tex, 'y\_ss');
M_.param_names_long = char(M_.param_names_long, 'y_ss');
M_.param_names = char(M_.param_names, 'lambda_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lambda\_ss');
M_.param_names_long = char(M_.param_names_long, 'lambda_ss');
M_.param_names = char(M_.param_names, 'bigX_ss');
M_.param_names_tex = char(M_.param_names_tex, 'bigX\_ss');
M_.param_names_long = char(M_.param_names_long, 'bigX_ss');
M_.param_names = char(M_.param_names, 'bigZ_ss');
M_.param_names_tex = char(M_.param_names_tex, 'bigZ\_ss');
M_.param_names_long = char(M_.param_names_long, 'bigZ_ss');
M_.param_names = char(M_.param_names, 'pstar_ss');
M_.param_names_tex = char(M_.param_names_tex, 'pstar\_ss');
M_.param_names_long = char(M_.param_names_long, 'pstar_ss');
M_.param_names = char(M_.param_names, 'x_ss');
M_.param_names_tex = char(M_.param_names_tex, 'x\_ss');
M_.param_names_long = char(M_.param_names_long, 'x_ss');
M_.param_names = char(M_.param_names, 'p_ss');
M_.param_names_tex = char(M_.param_names_tex, 'p\_ss');
M_.param_names_long = char(M_.param_names_long, 'p_ss');
M_.param_names = char(M_.param_names, 'll_ss');
M_.param_names_tex = char(M_.param_names_tex, 'll\_ss');
M_.param_names_long = char(M_.param_names_long, 'll_ss');
M_.param_names = char(M_.param_names, 'qfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'qfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'qfp_ss');
M_.param_names = char(M_.param_names, 'sfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'sfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'sfp_ss');
M_.param_names = char(M_.param_names, 'rkfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'rkfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'rkfp_ss');
M_.param_names = char(M_.param_names, 'ykfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ykfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'ykfp_ss');
M_.param_names = char(M_.param_names, 'ckfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ckfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'ckfp_ss');
M_.param_names = char(M_.param_names, 'ycfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ycfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'ycfp_ss');
M_.param_names = char(M_.param_names, 'hfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'hfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'hfp_ss');
M_.param_names = char(M_.param_names, 'kfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'kfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'kfp_ss');
M_.param_names = char(M_.param_names, 'nfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'nfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'nfp_ss');
M_.param_names = char(M_.param_names, 'cfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'cfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'cfp_ss');
M_.param_names = char(M_.param_names, 'ifp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ifp\_ss');
M_.param_names_long = char(M_.param_names_long, 'ifp_ss');
M_.param_names = char(M_.param_names, 'yfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'yfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'yfp_ss');
M_.param_names = char(M_.param_names, 'lambdafp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lambdafp\_ss');
M_.param_names_long = char(M_.param_names_long, 'lambdafp_ss');
M_.param_names = char(M_.param_names, 'pstarfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'pstarfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'pstarfp_ss');
M_.param_names = char(M_.param_names, 'llfp_ss');
M_.param_names_tex = char(M_.param_names_tex, 'llfp\_ss');
M_.param_names_long = char(M_.param_names_long, 'llfp_ss');
M_.param_names = char(M_.param_names, 'ygap_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ygap\_ss');
M_.param_names_long = char(M_.param_names_long, 'ygap_ss');
M_.param_names = char(M_.param_names, 'eta');
M_.param_names_tex = char(M_.param_names_tex, 'eta');
M_.param_names_long = char(M_.param_names_long, 'eta');
M_.param_names = char(M_.param_names, 'nkratio');
M_.param_names_tex = char(M_.param_names_tex, 'nkratio');
M_.param_names_long = char(M_.param_names_long, 'nkratio');
M_.param_names = char(M_.param_names, 'lny_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lny\_ss');
M_.param_names_long = char(M_.param_names_long, 'lny_ss');
M_.param_names = char(M_.param_names, 'lni_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lni\_ss');
M_.param_names_long = char(M_.param_names_long, 'lni_ss');
M_.param_names = char(M_.param_names, 'lnygap_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lnygap\_ss');
M_.param_names_long = char(M_.param_names_long, 'lnygap_ss');
M_.param_names = char(M_.param_names, 'r_q');
M_.param_names_tex = char(M_.param_names_tex, 'r\_q');
M_.param_names_long = char(M_.param_names_long, 'r_q');
M_.param_names = char(M_.param_names, 'f_ss');
M_.param_names_tex = char(M_.param_names_tex, 'f\_ss');
M_.param_names_long = char(M_.param_names_long, 'f_ss');
M_.param_names = char(M_.param_names, 'rho_f');
M_.param_names_tex = char(M_.param_names_tex, 'rho\_f');
M_.param_names_long = char(M_.param_names_long, 'rho_f');
M_.param_names = char(M_.param_names, 'r_c');
M_.param_names_tex = char(M_.param_names_tex, 'r\_c');
M_.param_names_long = char(M_.param_names_long, 'r_c');
M_.param_names = char(M_.param_names, 'rhotau');
M_.param_names_tex = char(M_.param_names_tex, 'rhotau');
M_.param_names_long = char(M_.param_names_long, 'rhotau');
M_.param_names = char(M_.param_names, 'taut_ss');
M_.param_names_tex = char(M_.param_names_tex, 'taut\_ss');
M_.param_names_long = char(M_.param_names_long, 'taut_ss');
M_.param_names = char(M_.param_names, 'bt_ss');
M_.param_names_tex = char(M_.param_names_tex, 'bt\_ss');
M_.param_names_long = char(M_.param_names_long, 'bt_ss');
M_.param_names = char(M_.param_names, 'cgn_ss');
M_.param_names_tex = char(M_.param_names_tex, 'cgn\_ss');
M_.param_names_long = char(M_.param_names_long, 'cgn_ss');
M_.param_names = char(M_.param_names, 'cg_ss');
M_.param_names_tex = char(M_.param_names_tex, 'cg\_ss');
M_.param_names_long = char(M_.param_names_long, 'cg_ss');
M_.param_names = char(M_.param_names, 'r_s');
M_.param_names_tex = char(M_.param_names_tex, 'r\_s');
M_.param_names_long = char(M_.param_names_long, 'r_s');
M_.param_names = char(M_.param_names, 'hbar');
M_.param_names_tex = char(M_.param_names_tex, 'hbar');
M_.param_names_long = char(M_.param_names_long, 'hbar');
M_.param_names = char(M_.param_names, 'mpl_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mpl\_ss');
M_.param_names_long = char(M_.param_names_long, 'mpl_ss');
M_.param_names = char(M_.param_names, 'kl_ss');
M_.param_names_tex = char(M_.param_names_tex, 'kl\_ss');
M_.param_names_long = char(M_.param_names_long, 'kl_ss');
M_.param_names = char(M_.param_names, 'mpk_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mpk\_ss');
M_.param_names_long = char(M_.param_names_long, 'mpk_ss');
M_.param_names = char(M_.param_names, 'rw_ss');
M_.param_names_tex = char(M_.param_names_tex, 'rw\_ss');
M_.param_names_long = char(M_.param_names_long, 'rw_ss');
M_.param_names = char(M_.param_names, 'mcl_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mcl\_ss');
M_.param_names_long = char(M_.param_names_long, 'mcl_ss');
M_.param_names = char(M_.param_names, 'mck_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mck\_ss');
M_.param_names_long = char(M_.param_names_long, 'mck_ss');
M_.param_names = char(M_.param_names, 'mcb_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mcb\_ss');
M_.param_names_long = char(M_.param_names_long, 'mcb_ss');
M_.param_names = char(M_.param_names, 'mcc_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mcc\_ss');
M_.param_names_long = char(M_.param_names_long, 'mcc_ss');
M_.param_names = char(M_.param_names, 'mcd_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mcd\_ss');
M_.param_names_long = char(M_.param_names_long, 'mcd_ss');
M_.param_names = char(M_.param_names, 'mce_ss');
M_.param_names_tex = char(M_.param_names_tex, 'mce\_ss');
M_.param_names_long = char(M_.param_names_long, 'mce_ss');
M_.param_names = char(M_.param_names, 'htb_ss');
M_.param_names_tex = char(M_.param_names_tex, 'htb\_ss');
M_.param_names_long = char(M_.param_names_long, 'htb_ss');
M_.param_names = char(M_.param_names, 'expi_ss');
M_.param_names_tex = char(M_.param_names_tex, 'expi\_ss');
M_.param_names_long = char(M_.param_names_long, 'expi_ss');
M_.param_names = char(M_.param_names, 'lev_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lev\_ss');
M_.param_names_long = char(M_.param_names_long, 'lev_ss');
M_.param_names = char(M_.param_names, 'kc_ss');
M_.param_names_tex = char(M_.param_names_tex, 'kc\_ss');
M_.param_names_long = char(M_.param_names_long, 'kc_ss');
M_.param_names = char(M_.param_names, 'ce_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ce\_ss');
M_.param_names_long = char(M_.param_names_long, 'ce_ss');
M_.param_names = char(M_.param_names, 'ste_ss');
M_.param_names_tex = char(M_.param_names_tex, 'ste\_ss');
M_.param_names_long = char(M_.param_names_long, 'ste_ss');
M_.param_names = char(M_.param_names, 'efc_ss');
M_.param_names_tex = char(M_.param_names_tex, 'efc\_ss');
M_.param_names_long = char(M_.param_names_long, 'efc_ss');
M_.param_names = char(M_.param_names, 'lnyt_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lnyt\_ss');
M_.param_names_long = char(M_.param_names_long, 'lnyt_ss');
M_.param_names = char(M_.param_names, 'lnit_ss');
M_.param_names_tex = char(M_.param_names_tex, 'lnit\_ss');
M_.param_names_long = char(M_.param_names_long, 'lnit_ss');
M_.param_names = char(M_.param_names, 'qgap_ss');
M_.param_names_tex = char(M_.param_names_tex, 'qgap\_ss');
M_.param_names_long = char(M_.param_names_long, 'qgap_ss');
M_.param_partitions = struct();
M_.exo_det_nbr = 0;
M_.exo_nbr = 5;
M_.endo_nbr = 90;
M_.param_nbr = 131;
M_.orig_endo_nbr = 69;
M_.aux_vars(1).endo_index = 70;
M_.aux_vars(1).type = 0;
M_.aux_vars(2).endo_index = 71;
M_.aux_vars(2).type = 0;
M_.aux_vars(3).endo_index = 72;
M_.aux_vars(3).type = 0;
M_.aux_vars(4).endo_index = 73;
M_.aux_vars(4).type = 0;
M_.aux_vars(5).endo_index = 74;
M_.aux_vars(5).type = 0;
M_.aux_vars(6).endo_index = 75;
M_.aux_vars(6).type = 0;
M_.aux_vars(7).endo_index = 76;
M_.aux_vars(7).type = 0;
M_.aux_vars(8).endo_index = 77;
M_.aux_vars(8).type = 0;
M_.aux_vars(9).endo_index = 78;
M_.aux_vars(9).type = 0;
M_.aux_vars(10).endo_index = 79;
M_.aux_vars(10).type = 1;
M_.aux_vars(10).orig_index = 67;
M_.aux_vars(10).orig_lead_lag = -1;
M_.aux_vars(11).endo_index = 80;
M_.aux_vars(11).type = 1;
M_.aux_vars(11).orig_index = 67;
M_.aux_vars(11).orig_lead_lag = -2;
M_.aux_vars(12).endo_index = 81;
M_.aux_vars(12).type = 1;
M_.aux_vars(12).orig_index = 69;
M_.aux_vars(12).orig_lead_lag = -1;
M_.aux_vars(13).endo_index = 82;
M_.aux_vars(13).type = 1;
M_.aux_vars(13).orig_index = 69;
M_.aux_vars(13).orig_lead_lag = -2;
M_.aux_vars(14).endo_index = 83;
M_.aux_vars(14).type = 1;
M_.aux_vars(14).orig_index = 69;
M_.aux_vars(14).orig_lead_lag = -3;
M_.aux_vars(15).endo_index = 84;
M_.aux_vars(15).type = 1;
M_.aux_vars(15).orig_index = 68;
M_.aux_vars(15).orig_lead_lag = -1;
M_.aux_vars(16).endo_index = 85;
M_.aux_vars(16).type = 1;
M_.aux_vars(16).orig_index = 68;
M_.aux_vars(16).orig_lead_lag = -2;
M_.aux_vars(17).endo_index = 86;
M_.aux_vars(17).type = 1;
M_.aux_vars(17).orig_index = 68;
M_.aux_vars(17).orig_lead_lag = -3;
M_.aux_vars(18).endo_index = 87;
M_.aux_vars(18).type = 1;
M_.aux_vars(18).orig_index = 65;
M_.aux_vars(18).orig_lead_lag = -1;
M_.aux_vars(19).endo_index = 88;
M_.aux_vars(19).type = 1;
M_.aux_vars(19).orig_index = 65;
M_.aux_vars(19).orig_lead_lag = -2;
M_.aux_vars(20).endo_index = 89;
M_.aux_vars(20).type = 1;
M_.aux_vars(20).orig_index = 65;
M_.aux_vars(20).orig_lead_lag = -3;
M_.aux_vars(21).endo_index = 90;
M_.aux_vars(21).type = 1;
M_.aux_vars(21).orig_index = 67;
M_.aux_vars(21).orig_lead_lag = -3;
M_.Sigma_e = zeros(5, 5);
M_.Correlation_matrix = eye(5, 5);
M_.H = 0;
M_.Correlation_matrix_ME = 1;
M_.sigma_e_is_diagonal = 1;
M_.det_shocks = [];
options_.block=0;
options_.bytecode=0;
options_.use_dll=0;
M_.hessian_eq_zero = 0;
erase_compiled_function('CA_BMZ12_static');
erase_compiled_function('CA_BMZ12_dynamic');
M_.orig_eq_nbr = 69;
M_.eq_nbr = 90;
M_.ramsey_eq_nbr = 0;
M_.set_auxiliary_variables = exist(['./' M_.fname '_set_auxiliary_variables.m'], 'file') == 2;
M_.lead_lag_incidence = [
 1 30 0;
 0 31 120;
 0 32 121;
 0 33 0;
 0 34 0;
 0 35 0;
 0 36 0;
 2 37 0;
 0 38 122;
 3 39 0;
 0 40 0;
 4 41 0;
 0 42 123;
 5 43 0;
 0 44 0;
 6 45 0;
 0 46 124;
 0 47 0;
 7 48 0;
 8 49 0;
 0 50 0;
 9 51 0;
 0 52 0;
 0 53 0;
 0 54 0;
 0 55 0;
 10 56 0;
 0 57 125;
 0 58 0;
 0 59 0;
 11 60 0;
 0 61 126;
 0 62 0;
 0 63 0;
 0 64 0;
 0 65 0;
 0 66 0;
 0 67 0;
 12 68 0;
 0 69 0;
 13 70 0;
 0 71 0;
 0 72 0;
 0 73 0;
 0 74 0;
 0 75 0;
 0 76 0;
 0 77 0;
 0 78 0;
 0 79 0;
 0 80 0;
 0 81 0;
 0 82 0;
 0 83 0;
 0 84 0;
 0 85 0;
 0 86 0;
 0 87 0;
 0 88 0;
 0 89 0;
 0 90 0;
 0 91 0;
 0 92 127;
 0 93 0;
 14 94 0;
 0 95 0;
 15 96 128;
 16 97 129;
 17 98 130;
 0 99 131;
 0 100 132;
 0 101 133;
 0 102 134;
 0 103 135;
 0 104 136;
 0 105 137;
 0 106 138;
 0 107 139;
 18 108 0;
 19 109 0;
 20 110 0;
 21 111 0;
 22 112 0;
 23 113 0;
 24 114 0;
 25 115 0;
 26 116 0;
 27 117 0;
 28 118 0;
 29 119 0;]';
M_.nstatic = 44;
M_.nfwrd   = 17;
M_.npred   = 26;
M_.nboth   = 3;
M_.nsfwrd   = 20;
M_.nspred   = 29;
M_.ndynamic   = 46;
M_.equations_tags = {
};
M_.static_and_dynamic_models_differ = 0;
M_.exo_names_orig_ord = [1:5];
M_.maximum_lag = 1;
M_.maximum_lead = 1;
M_.maximum_endo_lag = 1;
M_.maximum_endo_lead = 1;
oo_.steady_state = zeros(90, 1);
M_.maximum_exo_lag = 0;
M_.maximum_exo_lead = 0;
oo_.exo_steady_state = zeros(5, 1);
M_.params = NaN(131, 1);
M_.NNZDerivatives = [316; 374; -1];
close all
M_.params( 101 ) = 0;
r_q = M_.params( 101 );
M_.params( 110 ) = 0;
r_s = M_.params( 110 );
M_.params( 104 ) = 0.5;
r_c = M_.params( 104 );
M_.params( 105 ) = 0.5;
rhotau = M_.params( 105 );
M_.params( 111 ) = 0;
hbar = M_.params( 111 );
M_.params( 103 ) = 0.7980;
rho_f = M_.params( 103 );
M_.params( 34 ) = 0.99;
b = M_.params( 34 );
M_.params( 35 ) = 0.6666666666666666;
a = M_.params( 35 );
M_.params( 36 ) = 0.0594;
chi = M_.params( 36 );
M_.params( 97 ) = 0.6;
nkratio = M_.params( 97 );
M_.params( 37 ) = 0.025;
d = M_.params( 37 );
M_.params( 96 ) = 0.9728;
eta = M_.params( 96 );
M_.params( 38 ) = 1;
g = M_.params( 38 );
M_.params( 39 ) = 5.75;
te = M_.params( 39 );
M_.params( 40 ) = 6;
veps = M_.params( 40 );
M_.params( 41 ) = 0.2603;
xi = M_.params( 41 );
M_.params( 43 ) = 0;
tau = M_.params( 43 );
M_.params( 51 ) = 0;
tau1 = M_.params( 51 );
M_.params( 42 ) = 0.4824;
nu = M_.params( 42 );
M_.params( 44 ) = 1.7062;
r_p = M_.params( 44 );
M_.params( 46 ) = 0.0776;
r_y = M_.params( 46 );
M_.params( 45 ) = 0.7145;
r_r = M_.params( 45 );
M_.params( 47 ) = 0.8342;
rho_z = M_.params( 47 );
M_.params( 48 ) = 0.0;
rho_e = M_.params( 48 );
M_.params( 49 ) = 0.8810;
rho_x = M_.params( 49 );
M_.params( 52 ) = 0.9546;
rho_p = M_.params( 52 );
M_.params( 50 ) = 1.005;
mub = M_.params( 50 );
M_.params( 54 ) = M_.params(50);
pi_ss = M_.params( 54 );
M_.params( 56 ) = 1;
z_ss = M_.params( 56 );
M_.params( 57 ) = 1;
e_ss = M_.params( 57 );
M_.params( 77 ) = 1;
x_ss = M_.params( 77 );
M_.params( 78 ) = 1;
p_ss = M_.params( 78 );
M_.params( 102 ) = 1;
f_ss = M_.params( 102 );
M_.params( 123 ) = M_.params(54);
expi_ss = M_.params( 123 );
M_.params( 76 ) = ((1-M_.params(42)*M_.params(54)^(M_.params(40)-1))/(1-M_.params(42)))^(1/(1-M_.params(40)));
pstar_ss = M_.params( 76 );
M_.params( 79 ) = (1-M_.params(42))*M_.params(76)^(-M_.params(40))/(1-M_.params(42)*M_.params(50)^M_.params(40));
ll_ss = M_.params( 79 );
M_.params( 58 ) = M_.params(76)*(M_.params(40)-1)/M_.params(40)*(1-M_.params(42)*M_.params(34)*M_.params(54)^M_.params(40))/(1-M_.params(54)^(M_.params(40)-1)*M_.params(42)*M_.params(34));
mc_ss = M_.params( 58 );
M_.params( 59 ) = M_.params(54)/M_.params(34);
rn_ss = M_.params( 59 );
M_.params( 60 ) = 1/M_.params(96);
rk_ss = M_.params( 60 );
M_.params( 53 ) = M_.params(59)/M_.params(54);
aux_ss = M_.params( 53 );
M_.params( 61 ) = M_.params(60)/(M_.params(59)/M_.params(54));
s_ss = M_.params( 61 );
M_.params( 62 ) = M_.params(37);
ik_ss = M_.params( 62 );
M_.params( 64 ) = 1/((1-M_.params(35))*M_.params(58))*(M_.params(60)-(1-M_.params(37)))/M_.params(79);
yk_ss = M_.params( 64 );
M_.params( 65 ) = M_.params(64)-M_.params(62);
ck_ss = M_.params( 65 );
M_.params( 66 ) = M_.params(64)/M_.params(65);
yc_ss = M_.params( 66 );
M_.params( 67 ) = (M_.params(35)/M_.params(39)*M_.params(58)*M_.params(79)*M_.params(66))^(1/(1+M_.params(38)));
h_ss = M_.params( 67 );
M_.params( 68 ) = M_.params(67)/(M_.params(79)*M_.params(64))^(1/M_.params(35));
k_ss = M_.params( 68 );
M_.params( 70 ) = M_.params(65)*M_.params(68);
c_ss = M_.params( 70 );
M_.params( 71 ) = M_.params(62)*M_.params(68);
i_ss = M_.params( 71 );
M_.params( 72 ) = M_.params(64)*M_.params(68);
y_ss = M_.params( 72 );
M_.params( 69 ) = M_.params(68)*M_.params(97);
n_ss = M_.params( 69 );
M_.params( 73 ) = 1/M_.params(70);
lambda_ss = M_.params( 73 );
M_.params( 74 ) = M_.params(58)*M_.params(72)/(1-M_.params(42)*M_.params(34)*M_.params(54)^M_.params(40));
bigX_ss = M_.params( 74 );
M_.params( 75 ) = M_.params(72)/(1-M_.params(54)^(M_.params(40)-1)*M_.params(42)*M_.params(34));
bigZ_ss = M_.params( 75 );
M_.params( 55 ) = 1;
q_ss = M_.params( 55 );
M_.params( 98 ) = 0;
lny_ss = M_.params( 98 );
M_.params( 99 ) = 0;
lni_ss = M_.params( 99 );
M_.params( 63 ) = M_.params(43)/2*M_.params(71);
eqti_ss = M_.params( 63 );
M_.params( 127 ) = M_.params(61);
ste_ss = M_.params( 127 );
M_.params( 128 ) = M_.params(59)*M_.params(61)/M_.params(54);
efc_ss = M_.params( 128 );
M_.params( 107 ) = M_.params(68)*M_.params(55)-M_.params(69);
bt_ss = M_.params( 107 );
M_.params( 106 ) = M_.params(54)^M_.params(105);
taut_ss = M_.params( 106 );
M_.params( 108 ) = M_.params(54);
cgn_ss = M_.params( 108 );
M_.params( 109 ) = 1;
cg_ss = M_.params( 109 );
M_.params( 112 ) = M_.params(79)*M_.params(35)*M_.params(72)/M_.params(67);
mpl_ss = M_.params( 112 );
M_.params( 113 ) = M_.params(68)/M_.params(67);
kl_ss = M_.params( 113 );
M_.params( 114 ) = M_.params(79)*(1-M_.params(35))*M_.params(72)/M_.params(68);
mpk_ss = M_.params( 114 );
M_.params( 115 ) = M_.params(70)*M_.params(39)*M_.params(67)^M_.params(38);
rw_ss = M_.params( 115 );
M_.params( 116 ) = M_.params(115)/M_.params(112);
mcl_ss = M_.params( 116 );
M_.params( 117 ) = M_.params(60)/M_.params(114);
mck_ss = M_.params( 117 );
M_.params( 118 ) = M_.params(116)+M_.params(117);
mcb_ss = M_.params( 118 );
M_.params( 119 ) = M_.params(115)/M_.params(35)*(M_.params(60)*M_.params(35)/((1-M_.params(35))*M_.params(115)))^(1-M_.params(35));
mcc_ss = M_.params( 119 );
M_.params( 120 ) = M_.params(115)/M_.params(112);
mcd_ss = M_.params( 120 );
M_.params( 121 ) = (M_.params(60)*M_.params(55)-(1-M_.params(37))*M_.params(55))/(M_.params(79)*(1-M_.params(35))*M_.params(72)/M_.params(68));
mce_ss = M_.params( 121 );
M_.params( 122 ) = M_.params(67);
htb_ss = M_.params( 122 );
M_.params( 124 ) = M_.params(68)*M_.params(55)/M_.params(69);
lev_ss = M_.params( 124 );
M_.params( 126 ) = M_.params(69)*(1-M_.params(96));
ce_ss = M_.params( 126 );
M_.params( 93 ) = 1;
pstarfp_ss = M_.params( 93 );
M_.params( 94 ) = 1;
llfp_ss = M_.params( 94 );
M_.params( 82 ) = M_.params(60);
rkfp_ss = M_.params( 82 );
M_.params( 81 ) = M_.params(61);
sfp_ss = M_.params( 81 );
M_.params( 83 ) = 1/((1-M_.params(35))*M_.params(58))*(M_.params(82)-(1-M_.params(37)))/M_.params(94);
ykfp_ss = M_.params( 83 );
M_.params( 84 ) = M_.params(83)-M_.params(62);
ckfp_ss = M_.params( 84 );
M_.params( 85 ) = M_.params(83)/M_.params(84);
ycfp_ss = M_.params( 85 );
M_.params( 86 ) = (M_.params(35)/M_.params(39)*M_.params(58)*M_.params(94)*M_.params(85))^(1/(1+M_.params(38)));
hfp_ss = M_.params( 86 );
M_.params( 87 ) = M_.params(86)/(M_.params(94)*M_.params(83))^(1/M_.params(35));
kfp_ss = M_.params( 87 );
iyfp_ss     = ik_ss/ykfp_ss;
cyfp_ss     = ckfp_ss/ykfp_ss;
M_.params( 89 ) = M_.params(84)*M_.params(87);
cfp_ss = M_.params( 89 );
M_.params( 90 ) = M_.params(62)*M_.params(87);
ifp_ss = M_.params( 90 );
M_.params( 91 ) = M_.params(83)*M_.params(87);
yfp_ss = M_.params( 91 );
M_.params( 92 ) = 1/M_.params(89);
lambdafp_ss = M_.params( 92 );
M_.params( 88 ) = M_.params(97)*M_.params(87);
nfp_ss = M_.params( 88 );
M_.params( 80 ) = 1;
qfp_ss = M_.params( 80 );
M_.params( 95 ) = M_.params(72)-M_.params(91);
ygap_ss = M_.params( 95 );
M_.params( 100 ) = 0;
lnygap_ss = M_.params( 100 );
uu_ss       = log(c_ss)-te*(h_ss^(1+g))/(1+g);
vf_ss       = uu_ss/(1-b);
M_.params( 125 ) = 0;
kc_ss = M_.params( 125 );
M_.params( 129 ) = 0;
lnyt_ss = M_.params( 129 );
M_.params( 130 ) = 0;
lnit_ss = M_.params( 130 );
M_.params( 131 ) = M_.params(55)-M_.params(80);
qgap_ss = M_.params( 131 );
thispath = cd;                                                           
cd('..');                                                                
load policy_param.mat;                                                   
for i=1:33                                                               
deep_parameter_name = M_.param_names(i,:);                           
eval(['M_.params(i)  = ' deep_parameter_name ' ;'])                  
end                                                                      
cd(thispath);   
M_.params( 32 ) = 100;
std_r_ = M_.params( 32 );
%
% INITVAL instructions
%
options_.initval_file = 0;
oo_.steady_state( 1 ) = M_.params(59)/M_.params(54);
oo_.steady_state( 2 ) = M_.params(74);
oo_.steady_state( 3 ) = M_.params(75);
oo_.steady_state( 4 ) = M_.params(70);
oo_.steady_state( 5 ) = M_.params(63);
oo_.steady_state( 6 ) = M_.params(67);
oo_.steady_state( 7 ) = M_.params(71);
oo_.steady_state( 8 ) = M_.params(68);
oo_.steady_state( 9 ) = M_.params(73);
oo_.steady_state( 10 ) = M_.params(79);
oo_.steady_state( 11 ) = M_.params(58);
oo_.steady_state( 12 ) = M_.params(69);
oo_.steady_state( 13 ) = M_.params(54);
oo_.steady_state( 14 ) = M_.params(78);
oo_.steady_state( 15 ) = M_.params(76);
oo_.steady_state( 16 ) = M_.params(55);
oo_.steady_state( 17 ) = M_.params(60);
oo_.steady_state( 18 ) = M_.params(59);
oo_.steady_state( 19 ) = M_.params(61);
oo_.steady_state( 20 ) = M_.params(77);
oo_.steady_state( 21 ) = M_.params(72);
oo_.steady_state( 22 ) = M_.params(56);
oo_.steady_state( 23 ) = M_.params(59)/M_.params(54);
oo_.steady_state( 24 ) = M_.params(89);
oo_.steady_state( 25 ) = M_.params(86);
oo_.steady_state( 26 ) = M_.params(90);
oo_.steady_state( 27 ) = M_.params(87);
oo_.steady_state( 28 ) = M_.params(92);
oo_.steady_state( 29 ) = M_.params(94);
oo_.steady_state( 30 ) = M_.params(58);
oo_.steady_state( 31 ) = M_.params(80);
oo_.steady_state( 32 ) = M_.params(82);
oo_.steady_state( 33 ) = M_.params(59);
oo_.steady_state( 34 ) = M_.params(91);
oo_.steady_state( 35 ) = M_.params(95);
oo_.steady_state( 36 ) = M_.params(129);
oo_.steady_state( 37 ) = M_.params(130);
oo_.steady_state( 38 ) = 0;
oo_.steady_state( 62 ) = uu_ss;
oo_.steady_state( 63 ) = vf_ss;
oo_.steady_state( 39 ) = 1;
oo_.steady_state( 40 ) = M_.params(106);
oo_.steady_state( 41 ) = M_.params(107);
oo_.steady_state( 42 ) = M_.params(108);
oo_.steady_state( 43 ) = M_.params(109);
oo_.steady_state( 44 ) = M_.params(112);
oo_.steady_state( 45 ) = M_.params(113);
oo_.steady_state( 46 ) = M_.params(114);
oo_.steady_state( 47 ) = M_.params(115);
oo_.steady_state( 48 ) = M_.params(116);
oo_.steady_state( 49 ) = M_.params(117);
oo_.steady_state( 50 ) = M_.params(118);
oo_.steady_state( 51 ) = M_.params(119);
oo_.steady_state( 52 ) = M_.params(120);
oo_.steady_state( 53 ) = M_.params(121);
oo_.steady_state( 54 ) = M_.params(122);
oo_.steady_state( 55 ) = M_.params(131);
oo_.steady_state( 56 ) = M_.params(54);
oo_.steady_state( 57 ) = M_.params(124);
oo_.steady_state( 58 ) = M_.params(125);
oo_.steady_state( 59 ) = M_.params(126);
oo_.steady_state( 60 ) = M_.params(127);
oo_.steady_state( 61 ) = M_.params(128);
oo_.steady_state(70)=oo_.steady_state(67);
oo_.steady_state(71)=oo_.steady_state(70);
oo_.steady_state(72)=oo_.steady_state(71);
oo_.steady_state(73)=oo_.steady_state(68);
oo_.steady_state(74)=oo_.steady_state(73);
oo_.steady_state(75)=oo_.steady_state(74);
oo_.steady_state(76)=oo_.steady_state(69);
oo_.steady_state(77)=oo_.steady_state(76);
oo_.steady_state(78)=oo_.steady_state(77);
oo_.steady_state(79)=oo_.steady_state(67);
oo_.steady_state(80)=oo_.steady_state(79);
oo_.steady_state(81)=oo_.steady_state(69);
oo_.steady_state(82)=oo_.steady_state(81);
oo_.steady_state(83)=oo_.steady_state(82);
oo_.steady_state(84)=oo_.steady_state(68);
oo_.steady_state(85)=oo_.steady_state(84);
oo_.steady_state(86)=oo_.steady_state(85);
oo_.steady_state(87)=oo_.steady_state(65);
oo_.steady_state(88)=oo_.steady_state(87);
oo_.steady_state(89)=oo_.steady_state(88);
oo_.steady_state(90)=oo_.steady_state(80);
if M_.exo_nbr > 0
	oo_.exo_simul = ones(M_.maximum_lag,1)*oo_.exo_steady_state';
end
if M_.exo_det_nbr > 0
	oo_.exo_det_simul = ones(M_.maximum_lag,1)*oo_.exo_det_steady_state';
end
%
% SHOCKS instructions
%
M_.exo_det_length = 0;
M_.Sigma_e(1, 1) = 3.6e-005;
M_.Sigma_e(2, 2) = 2.5e-005;
M_.Sigma_e(3, 3) = 0.00044521;
M_.Sigma_e(4, 4) = 3.24e-006;
options_.irf = 20;
options_.nograph = 0;
options_.noprint = 0;
options_.graph_format = char('fig');
var_list_ = char('output','inflation','outputgap','welfareloss');
info = stoch_simul(var_list_);
save('CA_BMZ12_results.mat', 'oo_', 'M_', 'options_');
if exist('estim_params_', 'var') == 1
  save('CA_BMZ12_results.mat', 'estim_params_', '-append');
end
if exist('bayestopt_', 'var') == 1
  save('CA_BMZ12_results.mat', 'bayestopt_', '-append');
end
if exist('dataset_', 'var') == 1
  save('CA_BMZ12_results.mat', 'dataset_', '-append');
end
if exist('estimation_info', 'var') == 1
  save('CA_BMZ12_results.mat', 'estimation_info', '-append');
end
if exist('dataset_info', 'var') == 1
  save('CA_BMZ12_results.mat', 'dataset_info', '-append');
end
if exist('oo_recursive_', 'var') == 1
  save('CA_BMZ12_results.mat', 'oo_recursive_', '-append');
end


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