computing infinite sum

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.

computing infinite sum

Postby oleksandr » Sun Jun 07, 2009 5:01 pm

hi,

i'm trying to compute life-time utility function using specification of infinite sum as it's shown on p.45 of dynare userguide, namely s=u+s(+1) where s is infinite sum and u utility function.
however, there is small trouble. the output is the following
[b]
??? Error using ==> lnsrch1
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a problem with initial values


Error in ==> solve1 at 126
[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});

Error in ==> dynare_solve at 110
[x,info]=solve1(func,x,j1(r(i):r(i+1)-1),j2(r(i):r(i+1)-1),jacobian_flag,varargin{:});

Error in ==> steady_ at 69
[oo_.steady_state,check] = dynare_solve([M_.fname '_static'],...
...


thanks for help
alex
oleksandr
 
Posts: 2
Joined: Sat Apr 18, 2009 1:35 pm

Re: computing infinite sum

Postby StephaneAdjemian » Tue Jun 09, 2009 9:13 am

Hi Alex, In your example Dynare fails in finding the steady state. Shouldn't the flow of utilities be discounted?
Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests