Merge branch 'model_diagnostics' of git.dynare.org:JohannesPfeifer/dynare

Ref. !2125
silicon
Sébastien Villemot 2023-03-13 17:59:43 +01:00
commit ff318d1163
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 3 deletions

View File

@ -45,13 +45,13 @@ if options.ramsey_policy
orig_endo_aux_nbr = M.orig_endo_nbr + min(find([M.aux_vars.type] == 6)) - 1;
implied_inst_nbr = orig_endo_aux_nbr - M.orig_eq_nbr;
if inst_nbr>implied_inst_nbr
error('You have specified more instruments than there are omitted equations')
warning('You have specified more steady state instruments than there are omitted equations. While there are use cases for this setup, it is rather unusual. Check whether this is desired.')
elseif inst_nbr<implied_inst_nbr
error('You have specified fewer instruments than there are omitted equations')
warning('You have specified fewer steady state instruments than there are omitted equations. While there are use cases for this setup, it is rather unusual. Check whether this is desired.')
end
else
if options.steadystate_flag
error('You have specified a steady state file, but not provided an instrument. Either delete the steady state file or provide an instrument')
warning('You have specified a steady state file, but not provided steady state instruments. In this case, you typically need to make sure to provide all steady state values, including the ones for the planner''s instrument(s).')
end
end
end