Commit 07748100 authored by Michel Juillard's avatar Michel Juillard
Browse files

adding to diagnoosticks check of rank of Jacobian of static model when steady...

adding to diagnoosticks check of rank of Jacobian of static model when steady state computation fails
parent da74e532
......@@ -96,9 +96,13 @@ else
% nonlinear models
if max(abs(feval(fh,dr.ys,[oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params))) > options_.dynatol
[dr.ys,check1] = dynare_solve(fh,dr.ys,1,...
[ys,check1] = dynare_solve(fh,dr.ys,1,...
[oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params);
oo_.exo_det_steady_state], ...
M_.params);
if ~check1
dr.ys = ys;
end
end
else
% linear models
......@@ -113,7 +117,6 @@ end
% testing for problem
if check1
disp('model diagnostic can''t obtain the steady state')
return
end
if ~isreal(dr.ys)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment