Merge branch 'endo_prior' into 'master'

dsge_likelihood.m: flag analytical_derivation as incompatible with endogenous_prior

See merge request Dynare/dynare!2120
estimate-initial-state
Sébastien Villemot 2023-01-10 10:14:57 +00:00
commit 5af6e861a6
1 changed files with 7 additions and 2 deletions

View File

@ -158,8 +158,13 @@ end
% Set flag related to analytical derivatives.
analytic_derivation = DynareOptions.analytic_derivation;
if analytic_derivation && DynareOptions.loglinear
error('The analytic_derivation and loglinear options are not compatible')
if analytic_derivation
if DynareOptions.loglinear
error('The analytic_derivation and loglinear options are not compatible')
end
if DynareOptions.endogenous_prior
error('The analytic_derivation and endogenous_prior options are not compatible')
end
end
if nargout==1