steady state does not solve the static model: equation?
Posted: Tue Oct 28, 2008 11:21 am
Hi,
Is there a way to make Dynare report which equation has problems with the supplied steady-state values?
I get the error message
Unfortunately with a very large model it's not always obvious where to start.
My suggestion is to introduce something like this at about line 50 of steady_ (i.e. where the "if check1" prompts the error message) :
Is there a way to make Dynare report which equation has problems with the supplied steady-state values?
I get the error message
??? Error using ==> steady_
The seadystate values returned by trade_steadystate.m don't solve the static model!
Unfortunately with a very large model it's not always obvious where to start.
My suggestion is to introduce something like this at about line 50 of steady_ (i.e. where the "if check1" prompts the error message) :
- Code: Select all
if check1
tmp=abs(feval([M_.fname '_static'],...
oo_.steady_state,...
[oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params));
disp([repmat('equation: ',length(tmp),1),num2str([1:length(tmp)]'),...
repmat(' ',length(tmp),1),num2str(tmp)]);
error(['The seadystate values returned by ' M_.fname ...
'_steadystate.m don''t solve the static model!' ])
end