Page 1 of 1

check # equations=# variables

PostPosted: Fri Sep 26, 2008 9:06 am
by lombard
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

PostPosted: Mon Sep 29, 2008 10:19 am
by SébastienVillemot
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