Help: numerical initial values incompatible with the...

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.

Help: numerical initial values incompatible with the...

Postby David » Fri Nov 16, 2012 4:46 am

Please help. "numerical initial values incompatible with the following equations"! In these equations I define marginal utility of nonhousing consumption and housing consumption of the young and the old, respectively. My model is a two-period OLG model. I could not find problems in these equations. Please help. mod file is attached.

>> dynare mymodel

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).

Starting Dynare (version 4.3.0).
Starting preprocessing of the model file ...
Substitution of endo lags >= 2: added 1 auxiliary variables and equations.
Found 37 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

STEADY: numerical initial values incompatible with the following equations
3 4 5 6 7 8

Please check for example
i) if all parameters occurring in these equations are defined
ii) that no division by an endogenous variable initialized to 0 occurs
Attachments
mymodel.mod
two period OLG
(2.7 KiB) Downloaded 99 times
David
 
Posts: 24
Joined: Fri Sep 28, 2012 3:46 pm

Re: Help: numerical initial values incompatible with the...

Postby jpfeifer » Fri Nov 16, 2012 9:18 am

You did not define an initval-block. Hence, all variables are initialized to 0. This leads to the error message.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Help: numerical initial values incompatible with the...

Postby David » Fri Nov 16, 2012 10:16 am

jpfeifer wrote:You did not define an initval-block. Hence, all variables are initialized to 0. This leads to the error message.


Thank you, jpfeifer.
Yes, I intentionally did not define initval-end block because I have no idea how to provide initial values for thoes endogeneous variable. It is a two-sector model with OLG agents with growth, and I have not yet figure out how to compute a steady state. I saw some mod files that can run successfully without specifying an initval-end block. Hence I followed and did so but, you know, failed.
Any further suggestion? Thanks a lot.
David
 
Posts: 24
Joined: Fri Sep 28, 2012 3:46 pm

Re: Help: numerical initial values incompatible with the...

Postby jpfeifer » Fri Nov 16, 2012 10:41 am

But as the error message says: you cannot initialize something to zero, if you divide by it. E.g. if you have CRRA utility, marginal utility is 1/c^sigma. If you initialize c to 0 it results in a division by 0. Just set it to something else.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Help: numerical initial values incompatible with the...

Postby David » Fri Nov 16, 2012 11:20 am

jpfeifer wrote:But as the error message says: you cannot initialize something to zero, if you divide by it. E.g. if you have CRRA utility, marginal utility is 1/c^sigma. If you initialize c to 0 it results in a division by 0. Just set it to something else.


Thanks, jpfeifer. I will try that.
David
 
Posts: 24
Joined: Fri Sep 28, 2012 3:46 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests