Benigno-Woodford LQ solution toolbox

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

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.

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

Yes, it seems to require the Symbolic Math Toolbox