calculating the steadystate---using fsolve function

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.

calculating the steadystate---using fsolve function

Postby leelane » Fri Oct 26, 2012 9:27 am

when i run the steadystate.m, the error is like this(dynare 4.2.5):
steadystate
Error using trustnleqn (line 28)
Objective function is returning undefined values at initial point. FSOLVE cannot continue.

Error in fsolve (line 397)
[x,FVAL,JACOB,EXITFLAG,OUTPUT,msgData]=...

Error in steadystate (line 148)
x= fsolve(@(x) functioni(x,iss,gammai,rhoi,p_hss,p_fss),x0, ...


maybe there are something wrong in the initial value of the fsove(). in fact, the initial values are chosen according to the parameters and some assumption conditions, so i can't find what's the problem. i can't run the .mod if the abolve problem isn't solved. i load the .m ,.mod, and the external functions. so please help!
Attachments
steadystate.m
(3.93 KiB) Downloaded 162 times
functioni.m
(218 Bytes) Downloaded 136 times
functionce.m
(229 Bytes) Downloaded 128 times
functionbstar.m
(284 Bytes) Downloaded 126 times
codes.mod
(7.02 KiB) Downloaded 134 times
leelane
 
Posts: 14
Joined: Fri Oct 05, 2012 7:59 am

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests