%
% 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 = 'model';
M_.dynare_version = 'master-2017-03-14-4f3b35a';
oo_.dynare_version = 'master-2017-03-14-4f3b35a';
options_.dynare_version = 'master-2017-03-14-4f3b35a';
%
% Some global variables initialization
%
global_initialization;
diary off;
diary('model.log');
M_.exo_names = 'nuV_eps';
M_.exo_names_tex = 'nuV\_eps';
M_.exo_names_long = 'nuV_eps';
M_.exo_names = char(M_.exo_names, 'gV_eps');
M_.exo_names_tex = char(M_.exo_names_tex, 'gV\_eps');
M_.exo_names_long = char(M_.exo_names_long, 'gV_eps');
M_.exo_names = char(M_.exo_names, 'deltaV_eps');
M_.exo_names_tex = char(M_.exo_names_tex, 'deltaV\_eps');
M_.exo_names_long = char(M_.exo_names_long, 'deltaV_eps');
M_.exo_names = char(M_.exo_names, 'mcV_eps');
M_.exo_names_tex = char(M_.exo_names_tex, 'mcV\_eps');
M_.exo_names_long = char(M_.exo_names_long, 'mcV_eps');
M_.exo_names = char(M_.exo_names, 'RV_eps');
M_.exo_names_tex = char(M_.exo_names_tex, 'RV\_eps');
M_.exo_names_long = char(M_.exo_names_long, 'RV_eps');
M_.exo_names = char(M_.exo_names, 'zV_eps');
M_.exo_names_tex = char(M_.exo_names_tex, 'zV\_eps');
M_.exo_names_long = char(M_.exo_names_long, 'zV_eps');
M_.endo_names = 'xV';
M_.endo_names_tex = 'xV';
M_.endo_names_long = 'xV';
M_.endo_names = char(M_.endo_names, 'piV');
M_.endo_names_tex = char(M_.endo_names_tex, 'piV');
M_.endo_names_long = char(M_.endo_names_long, 'piV');
M_.endo_names = char(M_.endo_names, 'RV');
M_.endo_names_tex = char(M_.endo_names_tex, 'RV');
M_.endo_names_long = char(M_.endo_names_long, 'RV');
M_.endo_names = char(M_.endo_names, 'rrV');
M_.endo_names_tex = char(M_.endo_names_tex, 'rrV');
M_.endo_names_long = char(M_.endo_names_long, 'rrV');
M_.endo_names = char(M_.endo_names, 'rrVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'rrVpot');
M_.endo_names_long = char(M_.endo_names_long, 'rrVpot');
M_.endo_names = char(M_.endo_names, 'yV');
M_.endo_names_tex = char(M_.endo_names_tex, 'yV');
M_.endo_names_long = char(M_.endo_names_long, 'yV');
M_.endo_names = char(M_.endo_names, 'pstarV');
M_.endo_names_tex = char(M_.endo_names_tex, 'pstarV');
M_.endo_names_long = char(M_.endo_names_long, 'pstarV');
M_.endo_names = char(M_.endo_names, 'bGV');
M_.endo_names_tex = char(M_.endo_names_tex, 'bGV');
M_.endo_names_long = char(M_.endo_names_long, 'bGV');
M_.endo_names = char(M_.endo_names, 'tauV');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauV');
M_.endo_names_long = char(M_.endo_names_long, 'tauV');
M_.endo_names = char(M_.endo_names, 'tauNV');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauNV');
M_.endo_names_long = char(M_.endo_names_long, 'tauNV');
M_.endo_names = char(M_.endo_names, 'gV');
M_.endo_names_tex = char(M_.endo_names_tex, 'gV');
M_.endo_names_long = char(M_.endo_names_long, 'gV');
M_.endo_names = char(M_.endo_names, 'nuV');
M_.endo_names_tex = char(M_.endo_names_tex, 'nuV');
M_.endo_names_long = char(M_.endo_names_long, 'nuV');
M_.endo_names = char(M_.endo_names, 'xVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'xVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'xVBREVE');
M_.endo_names = char(M_.endo_names, 'piVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'piVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'piVHAT');
M_.endo_names = char(M_.endo_names, 'RVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'RVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'RVHAT');
M_.endo_names = char(M_.endo_names, 'rrVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'rrVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'rrVHAT');
M_.endo_names = char(M_.endo_names, 'rrVpotHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'rrVpotHAT');
M_.endo_names_long = char(M_.endo_names_long, 'rrVpotHAT');
M_.endo_names = char(M_.endo_names, 'yVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'yVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'yVHAT');
M_.endo_names = char(M_.endo_names, 'pstarVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'pstarVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'pstarVHAT');
M_.endo_names = char(M_.endo_names, 'bGVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'bGVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'bGVBREVE');
M_.endo_names = char(M_.endo_names, 'tauVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'tauVBREVE');
M_.endo_names = char(M_.endo_names, 'tauNVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauNVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'tauNVBREVE');
M_.endo_names = char(M_.endo_names, 'gVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'gVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'gVHAT');
M_.endo_names = char(M_.endo_names, 'nuVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'nuVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'nuVBREVE');
M_.endo_names = char(M_.endo_names, 'cV');
M_.endo_names_tex = char(M_.endo_names_tex, 'cV');
M_.endo_names_long = char(M_.endo_names_long, 'cV');
M_.endo_names = char(M_.endo_names, 'nV');
M_.endo_names_tex = char(M_.endo_names_tex, 'nV');
M_.endo_names_long = char(M_.endo_names_long, 'nV');
M_.endo_names = char(M_.endo_names, 'wV');
M_.endo_names_tex = char(M_.endo_names_tex, 'wV');
M_.endo_names_long = char(M_.endo_names_long, 'wV');
M_.endo_names = char(M_.endo_names, 'sV');
M_.endo_names_tex = char(M_.endo_names_tex, 'sV');
M_.endo_names_long = char(M_.endo_names_long, 'sV');
M_.endo_names = char(M_.endo_names, 'mcV');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcV');
M_.endo_names_long = char(M_.endo_names_long, 'mcV');
M_.endo_names = char(M_.endo_names, 'fV');
M_.endo_names_tex = char(M_.endo_names_tex, 'fV');
M_.endo_names_long = char(M_.endo_names_long, 'fV');
M_.endo_names = char(M_.endo_names, 'varthetaV');
M_.endo_names_tex = char(M_.endo_names_tex, 'varthetaV');
M_.endo_names_long = char(M_.endo_names_long, 'varthetaV');
M_.endo_names = char(M_.endo_names, 'aV');
M_.endo_names_tex = char(M_.endo_names_tex, 'aV');
M_.endo_names_long = char(M_.endo_names_long, 'aV');
M_.endo_names = char(M_.endo_names, 'ptildeV');
M_.endo_names_tex = char(M_.endo_names_tex, 'ptildeV');
M_.endo_names_long = char(M_.endo_names_long, 'ptildeV');
M_.endo_names = char(M_.endo_names, 'delta1V');
M_.endo_names_tex = char(M_.endo_names_tex, 'delta1V');
M_.endo_names_long = char(M_.endo_names_long, 'delta1V');
M_.endo_names = char(M_.endo_names, 'delta2V');
M_.endo_names_tex = char(M_.endo_names_tex, 'delta2V');
M_.endo_names_long = char(M_.endo_names_long, 'delta2V');
M_.endo_names = char(M_.endo_names, 'delta3V');
M_.endo_names_tex = char(M_.endo_names_tex, 'delta3V');
M_.endo_names_long = char(M_.endo_names_long, 'delta3V');
M_.endo_names = char(M_.endo_names, 'deltaV');
M_.endo_names_tex = char(M_.endo_names_tex, 'deltaV');
M_.endo_names_long = char(M_.endo_names_long, 'deltaV');
M_.endo_names = char(M_.endo_names, 'cVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'cVpot');
M_.endo_names_long = char(M_.endo_names_long, 'cVpot');
M_.endo_names = char(M_.endo_names, 'nVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'nVpot');
M_.endo_names_long = char(M_.endo_names_long, 'nVpot');
M_.endo_names = char(M_.endo_names, 'wVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'wVpot');
M_.endo_names_long = char(M_.endo_names_long, 'wVpot');
M_.endo_names = char(M_.endo_names, 'yVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'yVpot');
M_.endo_names_long = char(M_.endo_names_long, 'yVpot');
M_.endo_names = char(M_.endo_names, 'bGVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'bGVpot');
M_.endo_names_long = char(M_.endo_names_long, 'bGVpot');
M_.endo_names = char(M_.endo_names, 'tauVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauVpot');
M_.endo_names_long = char(M_.endo_names_long, 'tauVpot');
M_.endo_names = char(M_.endo_names, 'lamV');
M_.endo_names_tex = char(M_.endo_names_tex, 'lamV');
M_.endo_names_long = char(M_.endo_names_long, 'lamV');
M_.endo_names = char(M_.endo_names, 'tauNVpot');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauNVpot');
M_.endo_names_long = char(M_.endo_names_long, 'tauNVpot');
M_.endo_names = char(M_.endo_names, 'nVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'nVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'nVHAT');
M_.endo_names = char(M_.endo_names, 'cVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'cVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'cVHAT');
M_.endo_names = char(M_.endo_names, 'wVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'wVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'wVHAT');
M_.endo_names = char(M_.endo_names, 'mcVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'mcVHAT');
M_.endo_names = char(M_.endo_names, 'cVpotHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'cVpotHAT');
M_.endo_names_long = char(M_.endo_names_long, 'cVpotHAT');
M_.endo_names = char(M_.endo_names, 'wVpotHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'wVpotHAT');
M_.endo_names_long = char(M_.endo_names_long, 'wVpotHAT');
M_.endo_names = char(M_.endo_names, 'yVpotHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'yVpotHAT');
M_.endo_names_long = char(M_.endo_names_long, 'yVpotHAT');
M_.endo_names = char(M_.endo_names, 'bGVpotBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'bGVpotBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'bGVpotBREVE');
M_.endo_names = char(M_.endo_names, 'tauVpotBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauVpotBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'tauVpotBREVE');
M_.endo_names = char(M_.endo_names, 'nVpotHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'nVpotHAT');
M_.endo_names_long = char(M_.endo_names_long, 'nVpotHAT');
M_.endo_names = char(M_.endo_names, 'tauNVpotBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauNVpotBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'tauNVpotBREVE');
M_.endo_names = char(M_.endo_names, 'deltaVHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'deltaVHAT');
M_.endo_names_long = char(M_.endo_names_long, 'deltaVHAT');
M_.endo_names = char(M_.endo_names, 'tauCV');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauCV');
M_.endo_names_long = char(M_.endo_names_long, 'tauCV');
M_.endo_names = char(M_.endo_names, 'tauCVBREVE');
M_.endo_names_tex = char(M_.endo_names_tex, 'tauCVBREVE');
M_.endo_names_long = char(M_.endo_names_long, 'tauCVBREVE');
M_.endo_names = char(M_.endo_names, 'RVshk');
M_.endo_names_tex = char(M_.endo_names_tex, 'RVshk');
M_.endo_names_long = char(M_.endo_names_long, 'RVshk');
M_.endo_names = char(M_.endo_names, 'mcVshk');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcVshk');
M_.endo_names_long = char(M_.endo_names_long, 'mcVshk');
M_.endo_names = char(M_.endo_names, 'zVshk');
M_.endo_names_tex = char(M_.endo_names_tex, 'zVshk');
M_.endo_names_long = char(M_.endo_names_long, 'zVshk');
M_.endo_names = char(M_.endo_names, 'mcVshkHAT');
M_.endo_names_tex = char(M_.endo_names_tex, 'mcVshkHAT');
M_.endo_names_long = char(M_.endo_names_long, 'mcVshkHAT');
M_.endo_partitions = struct();
M_.param_names = 'betta';
M_.param_names_tex = 'betta';
M_.param_names_long = 'betta';
M_.param_names = char(M_.param_names, 'tauC');
M_.param_names_tex = char(M_.param_names_tex, 'tauC');
M_.param_names_long = char(M_.param_names_long, 'tauC');
M_.param_names = char(M_.param_names, 'tauN');
M_.param_names_tex = char(M_.param_names_tex, 'tauN');
M_.param_names_long = char(M_.param_names_long, 'tauN');
M_.param_names = char(M_.param_names, 'cV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'cV\_SS');
M_.param_names_long = char(M_.param_names_long, 'cV_SS');
M_.param_names = char(M_.param_names, 'sigma');
M_.param_names_tex = char(M_.param_names_tex, 'sigma');
M_.param_names_long = char(M_.param_names_long, 'sigma');
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, 'thetap');
M_.param_names_tex = char(M_.param_names_tex, 'thetap');
M_.param_names_long = char(M_.param_names_long, 'thetap');
M_.param_names = char(M_.param_names, 'k');
M_.param_names_tex = char(M_.param_names_tex, 'k');
M_.param_names_long = char(M_.param_names_long, 'k');
M_.param_names = char(M_.param_names, 'alfa');
M_.param_names_tex = char(M_.param_names_tex, 'alfa');
M_.param_names_long = char(M_.param_names_long, 'alfa');
M_.param_names = char(M_.param_names, 'xip');
M_.param_names_tex = char(M_.param_names_tex, 'xip');
M_.param_names_long = char(M_.param_names_long, 'xip');
M_.param_names = char(M_.param_names, 'piV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'piV\_SS');
M_.param_names_long = char(M_.param_names_long, 'piV_SS');
M_.param_names = char(M_.param_names, 'RV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'RV\_SS');
M_.param_names_long = char(M_.param_names_long, 'RV_SS');
M_.param_names = char(M_.param_names, 'gampi');
M_.param_names_tex = char(M_.param_names_tex, 'gampi');
M_.param_names_long = char(M_.param_names_long, 'gampi');
M_.param_names = char(M_.param_names, 'gamx');
M_.param_names_tex = char(M_.param_names_tex, 'gamx');
M_.param_names_long = char(M_.param_names_long, 'gamx');
M_.param_names = char(M_.param_names, 'yV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'yV\_SS');
M_.param_names_long = char(M_.param_names_long, 'yV_SS');
M_.param_names = char(M_.param_names, 'tauV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'tauV\_SS');
M_.param_names_long = char(M_.param_names_long, 'tauV_SS');
M_.param_names = char(M_.param_names, 'phiT');
M_.param_names_tex = char(M_.param_names_tex, 'phiT');
M_.param_names_long = char(M_.param_names_long, 'phiT');
M_.param_names = char(M_.param_names, 'bGV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'bGV\_SS');
M_.param_names_long = char(M_.param_names_long, 'bGV_SS');
M_.param_names = char(M_.param_names, 'rhoG');
M_.param_names_tex = char(M_.param_names_tex, 'rhoG');
M_.param_names_long = char(M_.param_names_long, 'rhoG');
M_.param_names = char(M_.param_names, 'rhonu');
M_.param_names_tex = char(M_.param_names_tex, 'rhonu');
M_.param_names_long = char(M_.param_names_long, 'rhonu');
M_.param_names = char(M_.param_names, 'sigG');
M_.param_names_tex = char(M_.param_names_tex, 'sigG');
M_.param_names_long = char(M_.param_names_long, 'sigG');
M_.param_names = char(M_.param_names, 'gV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'gV\_SS');
M_.param_names_long = char(M_.param_names_long, 'gV_SS');
M_.param_names = char(M_.param_names, 'nuV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'nuV\_SS');
M_.param_names_long = char(M_.param_names_long, 'nuV_SS');
M_.param_names = char(M_.param_names, 'signu');
M_.param_names_tex = char(M_.param_names_tex, 'signu');
M_.param_names_long = char(M_.param_names_long, 'signu');
M_.param_names = char(M_.param_names, 'pibar');
M_.param_names_tex = char(M_.param_names_tex, 'pibar');
M_.param_names_long = char(M_.param_names_long, 'pibar');
M_.param_names = char(M_.param_names, 'bGy');
M_.param_names_tex = char(M_.param_names_tex, 'bGy');
M_.param_names_long = char(M_.param_names_long, 'bGy');
M_.param_names = char(M_.param_names, 'gy');
M_.param_names_tex = char(M_.param_names_tex, 'gy');
M_.param_names_long = char(M_.param_names_long, 'gy');
M_.param_names = char(M_.param_names, 'tauy');
M_.param_names_tex = char(M_.param_names_tex, 'tauy');
M_.param_names_long = char(M_.param_names_long, 'tauy');
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, 'wV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'wV\_SS');
M_.param_names_long = char(M_.param_names_long, 'wV_SS');
M_.param_names = char(M_.param_names, 'nV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'nV\_SS');
M_.param_names_long = char(M_.param_names_long, 'nV_SS');
M_.param_names = char(M_.param_names, 'rrV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'rrV\_SS');
M_.param_names_long = char(M_.param_names_long, 'rrV_SS');
M_.param_names = char(M_.param_names, 'pstarV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'pstarV\_SS');
M_.param_names_long = char(M_.param_names_long, 'pstarV_SS');
M_.param_names = char(M_.param_names, 'sV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'sV\_SS');
M_.param_names_long = char(M_.param_names_long, 'sV_SS');
M_.param_names = char(M_.param_names, 'fV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'fV\_SS');
M_.param_names_long = char(M_.param_names_long, 'fV_SS');
M_.param_names = char(M_.param_names, 'mcV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'mcV\_SS');
M_.param_names_long = char(M_.param_names_long, 'mcV_SS');
M_.param_names = char(M_.param_names, 'phiN');
M_.param_names_tex = char(M_.param_names_tex, 'phiN');
M_.param_names_long = char(M_.param_names_long, 'phiN');
M_.param_names = char(M_.param_names, 'tauNV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'tauNV\_SS');
M_.param_names_long = char(M_.param_names_long, 'tauNV_SS');
M_.param_names = char(M_.param_names, 'gAtZLBonly');
M_.param_names_tex = char(M_.param_names_tex, 'gAtZLBonly');
M_.param_names_long = char(M_.param_names_long, 'gAtZLBonly');
M_.param_names = char(M_.param_names, 'psie');
M_.param_names_tex = char(M_.param_names_tex, 'psie');
M_.param_names_long = char(M_.param_names_long, 'psie');
M_.param_names = char(M_.param_names, 'pitilde');
M_.param_names_tex = char(M_.param_names_tex, 'pitilde');
M_.param_names_long = char(M_.param_names_long, 'pitilde');
M_.param_names = char(M_.param_names, 'rhodelta');
M_.param_names_tex = char(M_.param_names_tex, 'rhodelta');
M_.param_names_long = char(M_.param_names_long, 'rhodelta');
M_.param_names = char(M_.param_names, 'sigdelta');
M_.param_names_tex = char(M_.param_names_tex, 'sigdelta');
M_.param_names_long = char(M_.param_names_long, 'sigdelta');
M_.param_names = char(M_.param_names, 'deltaV_SS');
M_.param_names_tex = char(M_.param_names_tex, 'deltaV\_SS');
M_.param_names_long = char(M_.param_names_long, 'deltaV_SS');
M_.param_names = char(M_.param_names, 'p_sigG_lin');
M_.param_names_tex = char(M_.param_names_tex, 'p\_sigG\_lin');
M_.param_names_long = char(M_.param_names_long, 'p_sigG_lin');
M_.param_names = char(M_.param_names, 'p_signu_lin');
M_.param_names_tex = char(M_.param_names_tex, 'p\_signu\_lin');
M_.param_names_long = char(M_.param_names_long, 'p_signu_lin');
M_.param_partitions = struct();
M_.exo_det_nbr = 0;
M_.exo_nbr = 6;
M_.endo_nbr = 63;
M_.param_nbr = 46;
M_.orig_endo_nbr = 63;
M_.aux_vars = [];
M_.Sigma_e = zeros(6, 6);
M_.Correlation_matrix = eye(6, 6);
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('model_static');
erase_compiled_function('model_dynamic');
M_.orig_eq_nbr = 63;
M_.eq_nbr = 63;
M_.ramsey_eq_nbr = 0;
M_.lead_lag_incidence = [
 0 20 0;
 0 21 83;
 1 22 0;
 0 23 0;
 2 24 0;
 0 25 0;
 0 26 0;
 3 27 0;
 0 28 0;
 0 29 0;
 4 30 0;
 5 31 84;
 0 32 0;
 0 33 85;
 6 34 0;
 0 35 0;
 7 36 0;
 0 37 0;
 8 38 0;
 9 39 0;
 0 40 0;
 0 41 0;
 0 42 0;
 10 43 86;
 0 44 0;
 0 45 0;
 0 46 0;
 0 47 87;
 0 48 0;
 0 49 88;
 0 50 0;
 0 51 89;
 0 52 0;
 11 53 0;
 12 54 0;
 13 55 0;
 14 56 0;
 0 57 90;
 0 58 0;
 0 59 0;
 0 60 0;
 15 61 0;
 0 62 0;
 0 63 91;
 0 64 0;
 0 65 0;
 0 66 92;
 0 67 0;
 0 68 0;
 0 69 93;
 0 70 0;
 0 71 0;
 16 72 0;
 0 73 0;
 0 74 0;
 0 75 0;
 0 76 0;
 0 77 94;
 0 78 95;
 17 79 0;
 18 80 0;
 19 81 0;
 0 82 0;]';
M_.nstatic = 33;
M_.nfwrd   = 11;
M_.npred   = 17;
M_.nboth   = 2;
M_.nsfwrd   = 13;
M_.nspred   = 19;
M_.ndynamic   = 30;
M_.equations_tags = {
};
M_.static_and_dynamic_models_differ = 0;
M_.exo_names_orig_ord = [1:6];
M_.maximum_lag = 1;
M_.maximum_lead = 1;
M_.maximum_endo_lag = 1;
M_.maximum_endo_lead = 1;
oo_.steady_state = zeros(63, 1);
M_.maximum_exo_lag = 0;
M_.maximum_exo_lead = 0;
oo_.exo_steady_state = zeros(6, 1);
M_.params = NaN(46, 1);
M_.NNZDerivatives = [247; 205; -1];
[p, p_pibar, p_thetap, p_xip, p_psie, p_pitilde, p_gampi, p_gamx, p_alfa, p_betta, p_sigma,...
          p_chi, p_nu, p_gy, p_tauC, p_bGy, p_tauy, p_phiT, p_phiN, p_rhoG, p_rhonu, p_rhodelta, p_sigG_nonlin, p_signu_nonlin,...
          p_sigdelta, p_gAtZLBonly, p_sigG_lin, p_signu_lin]=params;
M_.params( 25 ) = p_pibar;
pibar = M_.params( 25 );
M_.params( 7 ) = p_thetap;
thetap = M_.params( 7 );
M_.params( 10 ) = p_xip;
xip = M_.params( 10 );
M_.params( 40 ) = p_psie;
psie = M_.params( 40 );
M_.params( 41 ) = p_pitilde;
pitilde = M_.params( 41 );
M_.params( 13 ) = p_gampi;
gampi = M_.params( 13 );
M_.params( 14 ) = p_gamx;
gamx = M_.params( 14 );
M_.params( 9 ) = p_alfa;
alfa = M_.params( 9 );
M_.params( 1 ) = p_betta;
betta = M_.params( 1 );
M_.params( 5 ) = p_sigma;
sigma = M_.params( 5 );
M_.params( 6 ) = p_chi;
chi = M_.params( 6 );
M_.params( 29 ) = p_nu;
nu = M_.params( 29 );
M_.params( 27 ) = p_gy;
gy = M_.params( 27 );
M_.params( 2 ) = p_tauC;
tauC = M_.params( 2 );
M_.params( 26 ) = p_bGy;
bGy = M_.params( 26 );
M_.params( 28 ) = p_tauy;
tauy = M_.params( 28 );
M_.params( 17 ) = p_phiT;
phiT = M_.params( 17 );
M_.params( 37 ) = p_phiN;
phiN = M_.params( 37 );
M_.params( 19 ) = p_rhoG;
rhoG = M_.params( 19 );
M_.params( 20 ) = p_rhonu;
rhonu = M_.params( 20 );
M_.params( 42 ) = p_rhodelta;
rhodelta = M_.params( 42 );
sigG_nonlin=p_sigG_nonlin;
signu_nonlin=p_signu_nonlin;
sigG_lin=p_sigG_lin;
signu_lin=p_signu_lin;
M_.params( 43 ) = p_sigdelta;
sigdelta = M_.params( 43 );
M_.params( 39 ) = p_gAtZLBonly;
gAtZLBonly = M_.params( 39 );
save('model_results.mat', 'oo_', 'M_', 'options_');
if exist('estim_params_', 'var') == 1
  save('model_results.mat', 'estim_params_', '-append');
end
if exist('bayestopt_', 'var') == 1
  save('model_results.mat', 'bayestopt_', '-append');
end
if exist('dataset_', 'var') == 1
  save('model_results.mat', 'dataset_', '-append');
end
if exist('estimation_info', 'var') == 1
  save('model_results.mat', 'estimation_info', '-append');
end
if exist('dataset_info', 'var') == 1
  save('model_results.mat', 'dataset_info', '-append');
end
if exist('oo_recursive_', 'var') == 1
  save('model_results.mat', 'oo_recursive_', '-append');
end


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