Benigno-Woodford LQ solution toolbox

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.

Benigno-Woodford LQ solution toolbox

Postby Steven » Tue Sep 17, 2013 1:14 pm

Hi everybody,

I am trying to use the LQ-solution toolbox, provided by Lombardo, to compute the non-linear optimal policy. After the adjustment of the basic model, e.g. appending the tag "poly" to the policy rule, and trying to run it, I reveice the following error message:

??? Undefined function or method 'find_incell' for input arguments of type 'cell'.

Error in ==> lq_1_get_mod at 191
[modstrt,tmpst]= find_incell(modfile,'^model|(?<!(\S\s*))(model)');

I really do not know what that means, since our model works fine. Really appreciate some ideas.

Best,
Steven
Steven
 
Posts: 4
Joined: Tue Jun 14, 2011 1:04 pm

Re: Benigno-Woodford LQ solution toolbox

Postby jpfeifer » Tue Sep 17, 2013 1:30 pm

The program looks for a file called find_incell.m
It is not part of Dynare. Either it is missing from the downloaded toolbox or you did not set the path correctly.
------------
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: Benigno-Woodford LQ solution toolbox

Postby Steven » Wed Sep 18, 2013 8:53 am

Thanks a lot for your quick reply.

I have solved the former problem, but stuck on another error message. Is it right that this error refers to the symbolic math toolbox, which isn't installed at my current version of MATLAB?

Thanks you very much in advance.

??? Undefined function or method 'sym' for input arguments of type 'char'.

Error in ==> lq_lagrange_problem at 25
foc{jj,1}=char(diff(sym(obj_func{1}),sym(vary{jj})));

Error in ==> lq_1_get_mod at 581
[foc]=lq_lagrange_problem(umod,bwmod,fwmod,vary,ex_var,lagnam);

Best,
Steven
Steven
 
Posts: 4
Joined: Tue Jun 14, 2011 1:04 pm

Re: Benigno-Woodford LQ solution toolbox

Postby jpfeifer » Wed Sep 18, 2013 9:07 am

Yes, it seems to require the Symbolic Math Toolbox
------------
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: No registered users and 7 guests