stoch_simul cannot be used at matlab 2007b

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.

stoch_simul cannot be used at matlab 2007b

Postby lizeze » Thu Nov 22, 2007 12:18 pm

Hello,
I meet the same problem as sheepooh74 when I run dynare at matlab 2007b. My code can be run at matlab 2006b. However, when I got rid of stoch_simul it also can be run in 2007b. When I run code with stoch_simul, it shows :
Invalid MEX-file 'U:\dyn_mat_v3_065\matlab\gensylv.dll': The specified
procedure could not be found.
Error in ==> dr1 at 443
ghxx = gensylv(2,A,B,C,D);
Error in ==> resol at 56
[dr,info] = dr1(dr,check_flag);
Error in ==> stoch_simul at 47
[dr_, info] = resol(ys_,0);
Michel said that "For the time beeing delete gensylv.dll, then an lternative, slower, Matlab base routines will take over ". I
I have deleted gensylv.dll in c:\dynare_v3\matlab\gensylv.dll, I worked well. I want to konw what is gensylv.dll and why it relate to stoch_simul !
Thank you!
lizeze
 
Posts: 7
Joined: Wed Nov 21, 2007 11:18 am

Postby MichelJuillard » Sat Dec 01, 2007 6:01 pm

When solving for 2nd order approximation, one needs to solve an equation of the form:

A*X + B*X*kron(C,C) = D

Ondra Kamenik has written in C++ an efficient algorithm to solve this kind of equations, that is made available to Matlab in the form of a DLL.
When gensylv.dll (or .mexw32) isn't available, Dynare will use an alternative, slower algorithm

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests