Merge pull request #1310 from JohannesPfeifer/debug_mode

Make solve_algo=0 less and mode_check potentially more verbose
time-shift
Stéphane Adjemian 2016-10-10 09:40:37 +02:00 committed by GitHub
commit c41c310cc5
2 changed files with 8 additions and 1 deletions

View File

@ -93,7 +93,11 @@ if options.solve_algo == 0
options4fsolve.MaxFunEvals = 50000;
options4fsolve.MaxIter = maxit;
options4fsolve.TolFun = tolf;
options4fsolve.Display = 'iter';
if options.debug==1
options4fsolve.Display = 'final';
else
options4fsolve.Display = 'off';
end
if jacobian_flag
options4fsolve.Jacobian = 'on';
else

View File

@ -145,6 +145,9 @@ for plt = 1:nbplt,
y(i,1) = fval;
else
y(i,1) = NaN;
if DynareOptions.debug
fprintf('mode_check:: could not solve model for parameter %s at value %4.3f, error code: %u\n',name,z(i),info(1))
end
end
if DynareOptions.mode_check.nolik==0
lnprior = priordens(xx,BayesInfo.pshape,BayesInfo.p6,BayesInfo.p7,BayesInfo.p3,BayesInfo.p4);