Skip to content
Snippets Groups Projects
Commit 8898707c authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

Fix two bug in resol that lead to crashes instead of error messages when...

Fix two bug in resol that lead to crashes instead of error messages when loglinear option was used and steady state were negative

(cherry picked from commit 39bfc1dd)
parent aa45ce75
Branches
Tags
No related merge requests found
......@@ -115,12 +115,12 @@ if options.loglinear
skipline()
fprintf('You are attempting to simulate/estimate a loglinear approximation of a model, but\n')
fprintf('the steady state level of the following variables is not strictly positive:\n')
for i=1:length(idx)
fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(idx,:)), num2str(dr.ys(idx)))
for var_iter=1:length(idx)
fprintf(' - %s (%s)\n',deblank(variables_with_non_positive_steady_state(var_iter,:)), num2str(dr.ys(idx)))
end
if isestimation()
fprintf('You should check that the priors and/or bounds over the deep parameters are such')
frpintf('the steady state levels of all the variables are strictly positive, or consider')
fprintf('the steady state levels of all the variables are strictly positive, or consider')
fprintf('a linearization of the model instead of a log linearization.')
else
fprintf('You should check that the calibration of the deep parameters is such that the')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment