Fsolve can't continue

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.

Fsolve can't continue

Postby killergabin » Tue Jan 22, 2013 9:28 am

Morning,

When running my model, I receive the following message " Error using ==> trustnlegn , Ojective funtion is returning undefined values at initial point. FSOLVE cannot continue."

I am a beginer so I need some advices to solve this problem.

THKS.

Eric
Attachments
tafnoinit.mod
(4.63 KiB) Downloaded 62 times
killergabin
 
Posts: 15
Joined: Sun Sep 16, 2012 10:39 am

Re: Fsolve can't continue

Postby jpfeifer » Wed Jan 23, 2013 7:34 am

When I run it in Dynare 4.3.2 it clearly shows the problem. You did not provide initial values. Hence, Dynare uses 0. But your first equation says for example
Code: Select all
1/C

Hence, if C is initialized to 0, you start with an NaN.
That's why Dynare says
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
------------
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


Return to Dynare help

Who is online

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