steady state does not solve the static model: equation?

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

steady state does not solve the static model: equation?

Postby lombard » 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

??? 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

lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests