Page 1 of 1

STEADY: Convergence problems

PostPosted: Mon Nov 26, 2007 10:59 am
by Gabriele
Dear all,

I am working on a deterministic model (OLG and frictions in the labor market).

When I try to simulate the model with Dynare, I get the following message:
SOLVE: maxit has been reached
??? Error using ==> steady_ at 27
STEADY: convergence problems

Error in ==> steady at 7
steady_;

Error in ==> ff_middle at 212
steady(0);

Error in ==> dynare at 26
evalin('base',fname) ;


I computed the steady-states using Matlab and Mathematica.
By using the command resid (1), it seems that for two equations (the production function and the profit function) the residulal is not zero, even if I checked that the RHS is equal to the LHS.

Do you have any idea?

Thanks in advance,

Gabriele

PostPosted: Mon Nov 26, 2007 3:59 pm
by MichelJuillard
You have f and F as endogenous variables. You shouldn't rely only on upper/lower case to distinguish two variables.

Dynare version 4 computes it correctly by the way, but it is still not a good modeling practice as too confusion prone.

Best

Michel

PostPosted: Mon Nov 26, 2007 4:13 pm
by Gabriele
Thanks.

Changing the notation the model works.

PostPosted: Tue Apr 29, 2008 5:49 pm
by DV
Dear all,
I have somehow similar problem with convergence here.
I use fcsolve (written by F. Collard?) to solve for s.s value but whenever I put these s.s value into Dynare, the result is like this:

SOLVE: maxit has been reached
??? Error using ==> steady_
STEADY: convergence problems

Error in ==> steady at 7
steady_;

Error in ==> HouseBCCAC at 180
steady(0);

Error in ==> dynare at 26
evalin('base',fname) ;

Any one has any idea?

Many thanks.

PostPosted: Tue May 13, 2008 11:08 am
by StephaneAdjemian
Hi DV,

This means that the steady state given by fcsolve (I do not know this routine) is not the steady state of the model you declared on the mod file. You may have a typo in your mod file (in the model definition or in the calibration of the model) or a typo in the equations used by fcsolve. Dynare sees that the proposed steady state is not a steady state and triggers a newton like algorithm to find the steady state. Unfortunately, our routine is unable to find the steady state of your model.

We have recently implemented an homotopy like routine for the computation of the steady states. We do not have a lot of experience with this routine, but you may give it a try. There is a description of this approach on the DynareWiki :

http://www.cepremap.cnrs.fr/DynareWiki/HomoTopy

Best,
Stéphane.