Error in lnsrch1

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.

Error in lnsrch1

Postby zsm » Sat Jan 31, 2015 11:46 am

Has anyone seen this error message when running a Dynare deterministic simulation?

I do not understand which matrix dimensions do not agree. The number of equations is equal to the number of variables. The initval and endval block contain a value for all endogenous and exogenous variables.

Thank you!

Error using /
Matrix dimensions must agree.
Error in lnsrch1 (line 82)
alamin = tolx/test ;
Error in solve1 (line 107)
[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});
Error in dynare_solve (line 150)
[x,info]=solve1(func,x,j1(r(i):r(i+1)-1),j2(r(i):r(i+1)-1),jacobian_flag, ...
Error in evaluate_steady_state (line 66)
[ys,check] = dynare_solve([M.fname '_static'],...
Error in steady_ (line 54)
[steady_state,params,info] =
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in SAdet (line 641)
steady;
Error in dynare (line 180)
evalin('base',fname) ;
zsm
 
Posts: 21
Joined: Fri Apr 12, 2013 1:39 pm

Re: Error in lnsrch1

Postby jpfeifer » Sat Jan 31, 2015 5:53 pm

Please provide an example.
------------
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: Error in lnsrch1

Postby zsm » Tue Feb 03, 2015 12:13 pm

This was the same code as in my other post. I could not give an example as I did not understand the error message at all. Anyway, the problem does not exist anymore as I explained in my other post. Thank you anyway!
zsm
 
Posts: 21
Joined: Fri Apr 12, 2013 1:39 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests