Unable to find out steady state

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.

Unable to find out steady state

Postby mhsjnu » Mon May 01, 2017 7:52 pm

Residuals of the static equations:

Equation number 1 : -10.4446
Equation number 2 : 3.8
Equation number 3 : 1.6955
Equation number 4 : Inf
Equation number 5 : 0.86647
Equation number 6 : -0.31565
Equation number 7 : 0
Equation number 8 : Inf
Equation number 9 : -0.95
Equation number 10 : 2.8183



STEADY: The Jacobian contains Inf or NaN. The problem arises from:

STEADY: Derivative of Equation 4 with respect to Variable y (initial value of y: 5000)
STEADY: Derivative of Equation 8 with respect to Variable y (initial value of y: 5000)

STEADY: The problem most often occurs, because a variable with
STEADY: exponent smaller than 1 has been initialized to 0. Taking the derivative
STEADY: and evaluating it at the steady state then results in a division by 0.
Attachments
tech.mod
(1.18 KiB) Downloaded 52 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Tue May 02, 2017 10:38 am

You cannot use 5000 as a starting value for log output as you will be using
Code: Select all
exp(5000)=Inf

in the model. Also
Code: Select all
exp(g)=rhog*exp(g(+1)/g)+eg;

does not look like a correct equation. Why is there a division by g on the RHS?
------------
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: Unable to find out steady state

Postby mhsjnu » Wed May 03, 2017 11:32 am

Dear Professor Jpfeifer, Thanks for valuable suggestion and guide line. But I am unable to solve after correction. I try to solve for steady state value by using MATLAB under .m file. its looks very difficult. Is there any helpful reference for getting initial value? Please help for solving this model.
Attachments
tech.mod
(1.3 KiB) Downloaded 50 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Thu May 04, 2017 11:52 am

Your equations are still wrong.

Code: Select all
exp(z)=rhoz*exp(z(-1))+e;

has steady state
Code: Select all
eps(z)=0

implying that
Code: Select all
z=-Inf

Please make sure the exp() is consistently used in a correct way.
------------
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

An infinite element was encountered

Postby mhsjnu » Thu May 18, 2017 5:10 pm

Please help, Regarding this issues. Thanks in advanced.
"An infinite element was encountered when trying to solve equation(s) 3
with respect to the variable(s): pi."
Attachments
tech.mod
(1.37 KiB) Downloaded 55 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Mon May 22, 2017 6:00 pm

Again, make sure the exp()-substitution is consistent. In the first equation,
Code: Select all
rn
is not in exp(). In
Code: Select all
exp(Ln((1+rn(+1))/(1+rn)))
it is. For the start, I would make the model run without this type of substitution and only then add the exp()
------------
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

The steadystate file did not compute the steady state

Postby mhsjnu » Wed Jun 07, 2017 5:12 pm

Now I try to find out Steady state value by using "steady_state_model" command for the instant of the initial value. Plz help and thanks in Advanced.
Attachments
tech.mod
(1.7 KiB) Downloaded 47 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Thu Jun 08, 2017 6:35 am

I can only repeat myself. You did not head any of my previous advice. Note that a
Code: Select all
steady_state_model

block requires the full analytical steady state to be computed. It does not seem you did this. For example, z has steady state 0 in the entered AR-process. You have a value for c hard-coded, which also does not seem plausible given that you used an exp()-substitution that implies c is in logs.
------------
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: Unable to find out steady state

Postby mhsjnu » Thu Jun 08, 2017 11:11 am

Dear Professor Johannes Pfeifer, I follow your suggestions from the first. But I can not find out the solution. So I try to another way. Now I can understand that it's very difficult. Plz see the attachment, I have corrected by your last suggestions.
Attachments
techT.mod
(1.37 KiB) Downloaded 55 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Fri Jun 09, 2017 5:44 am

See my very first comment on
Code: Select all
(ln((1+exp(rn))/(1+rn)))=(((1-thetar)*((thetapi*(ln(exp(pi)/pi))+thetay*(ln(exp(y)/y))+thetau*(ln(exp(u))/u))))+thetar*ln((1+exp(rn(-1)))/(1+rn)));

The way you do the exp()-substitution is still not consistent
------------
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: Unable to find out steady state

Postby mhsjnu » Fri Jun 09, 2017 5:29 pm

I have done. Is it ok?
Attachments
techT.mod
(1.36 KiB) Downloaded 51 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am

Re: Unable to find out steady state

Postby jpfeifer » Fri Jun 09, 2017 5:40 pm

This is leading nowhere. For the last time, please sit down and check every single equation on whether the exp()-substitution has been done consistently. The last equation for example has an
Code: Select all
n(-1)

not in exp() while it is in exp() everywhere else. As I suggested in the beginning, you should try to solve the model first without any substitution and make sure it runs. That makes debugging much easier.
------------
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: Unable to find out steady state

Postby mhsjnu » Sun Jun 11, 2017 4:09 am

I rewrite this equation as follows

(1+exp(rn(+1))/(1+rn))=((1-thetar)*((thetapi*(exp(pi(+1))/pi))+thetay*(exp(y(+1))/y)+thetau*(exp(u(+1))/u)))+thetar*(1+exp(rn(-1))/(1+rn));

Please see the attachment. techT.mod

And Alternative file without substitution: Attachment: techW.mod
Attachments
techW.mod
And Alternative file without substitution: Attachment: techW.mod
(1.25 KiB) Downloaded 48 times
techT.mod
(1.36 KiB) Downloaded 56 times
mhsjnu
 
Posts: 10
Joined: Tue Apr 25, 2017 2:35 am


Return to Dynare help

Who is online

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