check # equations=# variables

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.

check # equations=# variables

Postby lombard » Fri Sep 26, 2008 9:06 am

Hi,

for the next release it would be nice to have an explicit check for number of equations and number of variables.
Something like Error: #equations=... ; #variables =...
In a number of situations when the equality does not hod, Dynare crashes (in dr1 at about line 340) complaining of "Subscript assignment dimension mismatch: Error in dr1 at 340
d(1:sdyn,k)=a(...

Cheers

Gianni
lombard
 
Posts: 132
Joined: Wed Feb 02, 2005 12:36 pm
Location: Basel

Postby SébastienVillemot » Mon Sep 29, 2008 10:19 am

Hi,

Thanks for reporting this.

There used to be such an error message in previous version of Dynare. We removed it because when computing Ramsey optimal policy, the # of equations has to be less than the # of endogenous variables.

I reintroduced the error message (when not computing Ramsey policy). It should be back in Dynare 4.0.2.

Best

Sébastien
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 11 guests