dsge_likelihood.m: error out with non-empty gradient for analytic_derivation
Matlab optimizers require ittime-shift
parent
1fce40ddeb
commit
a5c8fa54b6
|
@ -140,7 +140,11 @@ SteadyState = [];
|
||||||
trend_coeff = [];
|
trend_coeff = [];
|
||||||
exit_flag = 1;
|
exit_flag = 1;
|
||||||
info = zeros(4,1);
|
info = zeros(4,1);
|
||||||
DLIK = [];
|
if DynareOptions.analytic_derivation
|
||||||
|
DLIK = NaN(1,length(xparam1));
|
||||||
|
else
|
||||||
|
DLIK = [];
|
||||||
|
end
|
||||||
Hess = [];
|
Hess = [];
|
||||||
|
|
||||||
% Ensure that xparam1 is a column vector.
|
% Ensure that xparam1 is a column vector.
|
||||||
|
|
Loading…
Reference in New Issue