"Index exceeds matrix dimensions" error

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.

"Index exceeds matrix dimensions" error

Postby tatyanad » Thu Aug 26, 2010 8:10 pm

Hi,

I just started using dynare. I wrote a fairly simple dynamic investment model (attached). I can get Dynare to compute a steady state, but when I try to simulate the model, I get the "Index exceeds matrix dimensions" error. This is puzzling to me, given that the steady state simulation works. Any suggestions? The full error is below.
Thanks for your help!

Tatyana

Index exceeds matrix dimensions.

Error in ==> sim1 at 42
nyf = nnz(lead_lag_incidence(3,:)) ;

Error in ==> simul at 82
sim1 ;

Error in ==> steady_state at 91
simul(oo_.dr);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
steady_state.mod
(814 Bytes) Downloaded 100 times
tatyanad
 
Posts: 2
Joined: Thu Aug 26, 2010 8:05 pm

Re: "Index exceeds matrix dimensions" error

Postby AssiaEzzeroug » Thu Aug 26, 2010 9:27 pm

Hi,

when I run your mod-file I get a message informing you that Dynare can't compute deterministic simulation for purely backward models (I use the latest version of Dynare -FI this message has been added recently)

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: "Index exceeds matrix dimensions" error

Postby tatyanad » Thu Aug 26, 2010 9:34 pm

Weird. I just downloaded dynare today (4.1.2), so I'm not sure why I wouldn't get that that message as well.
tatyanad
 
Posts: 2
Joined: Thu Aug 26, 2010 8:05 pm

Re: "Index exceeds matrix dimensions" error

Postby AssiaEzzeroug » Fri Aug 27, 2010 9:11 am

sorry I was talking about the unstable version of dynare

best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: "Index exceeds matrix dimensions" error

Postby SébastienVillemot » Mon Aug 30, 2010 9:17 am

Your model is purely static: no forward and no backward variable. Dynare is not designed to solve such static systems. You can use a vanilla non-linear solver to do that.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests