Error message: MJDGGES requires two square real matrices...

As Dynare 4 is now the main version, this forum is now closed. Please, post
on the Dynare Help forum
Forum rules
As Dynare 4 is the current Dynare version, there forum is now close. Post new question in the Dynare Help Forum.

Error message: MJDGGES requires two square real matrices...

Postby olena7 » Wed Mar 25, 2009 9:21 pm

Hi,
I am getting the following error message during the system stability check (command "check"):

??? Error using ==> mjdgges
MJDGGES requires two square real matrices of the same dimension.


One of the earlier posts on this topic suggested that one of the model parameters may be uninitialized - I have checked to make sure they they all are defined and spelled correctly (case-sensitive). The error is still here.
Can anyone tell me what else might be causing this error message? (I am using Dynare 4.0.3)
Thank you!
Olena
olena7
 
Posts: 18
Joined: Wed Mar 25, 2009 8:28 pm

Re: Error message: MJDGGES requires two square real matrices...

Postby StephaneAdjemian » Wed Mar 25, 2009 10:09 pm

Hi, Did you check if your steady state is real (I mean not complex) ?

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.

Re: Error message: MJDGGES requires two square real matrices...

Postby JamieHall » Wed Mar 25, 2009 10:59 pm

Hi Olena,

There's a trick you can do with the Matlab debugger that often helps to pin down where the error is happening. If your mod file is called "example.mod", then include "dbstop in example_static.m at 14;" in the mod file before the "steady" line. When you run Dynare, it should stop at the start of "example_static"; set a breakpoint at the line "if ~isreal(residual)", and run to that point (by hitting F5, or using the Debug menu).

If there's an MJDGGES problem, it often shows up at this point, in the form of NaN or Inf values in the "residual" variable. Each element of "residual" corresponds to one of your model's equations, in the order that they appear in the mod file.

Hope that helps...

Jamie
JamieHall
 
Posts: 20
Joined: Wed Feb 11, 2009 4:42 am

Re: Error message: MJDGGES requires two square real matrices...

Postby olena7 » Fri Mar 27, 2009 6:47 pm

Thank you, Jamie and Stephanie.
Now that I understand what the error message means, it was fairly easy to fix the problem!
olena7
 
Posts: 18
Joined: Wed Mar 25, 2009 8:28 pm


Return to Dynare version 4

Who is online

Users browsing this forum: No registered users and 1 guest