Index bounds

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 bounds

Postby marcio_fr » Sat Feb 28, 2015 4:12 pm

Hi, I´m trying simulate a SOE DSGE model based on Gerali et al (2010), but it's appearing the following error mensage:

??? Attempted to access y(75); index out of bounds because
numel(y)=73.

Error in ==> simul_teseR2_static at 77
T522 = exp(y(38))*exp(y(75))/(exp(y(75))-1)/exp(y(37));

Error in ==> evaluate_static_model at 63
residuals = feval(fh_static,ys,exo_ss,params);

Error in ==> evaluate_steady_state_file at 96
[residuals,check] =
evaluate_static_model(ys,exo_ss,params,M,options);

Error in ==> evaluate_steady_state at 58
[ys,params,info] =
evaluate_steady_state_file(ys_init,exo_ss,M, ...

Error in ==> steady_ at 54
[steady_state,params,info] =
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in ==> steady at 81
[steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in ==> simul_teseR2 at 900
steady;

Error in ==> dynare at 180
evalin('base',fname) ;

Any ideas why this is happening and how can I fix this?

Best regards, Márcio.
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Index bounds

Postby jpfeifer » Sat Feb 28, 2015 4:49 pm

This is most probably a bug. Please try the most recent unstable version and report back.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Index bounds

Postby marcio_fr » Wed Mar 04, 2015 12:56 am

I tried the latest snapshot for windows (2015-03-03), but now another error message appears:

??? Undefined function or method
'cell2table' for input arguments of type
'cell'.

Error in ==> global_initialization at 366
estimation_info.joint_parameter =
cell2table(cell(0,11));

Error in ==> simul_teseR2 at 19
global_initialization;

Error in ==> dynare at 185
evalin('base',fname) ;
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Index bounds

Postby jpfeifer » Wed Mar 04, 2015 1:04 pm

Sorry, but this is a bug introduced in yesterday's unstable version related to a new feature being introduced. Please try the one of 2015-03-02
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Index bounds

Postby marcio_fr » Thu Mar 05, 2015 12:56 pm

Hi, I tried the version 20015-02-03, but the first error message appears again. Can be something wrong with my script? Could you take a look please?
Attachments
simul_teseR2.mod
Gerali et al model for a SOE
(26.53 KiB) Downloaded 55 times
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Index bounds

Postby jpfeifer » Thu Mar 05, 2015 2:15 pm

I cannot replicate your issue. Are you using Octave or Matlab?

Rather, when increasing maxit, I can find a steady state, but model_diagnostics says
Code: Select all
MODEL_DIAGNOSTICS:  The Jacobian of the static model is singular
MODEL_DIAGNOSTICS:  there is 1 colinear relationships between the variables and the equations
Colinear variables:
debt_iw   
Colinear equations
    49    50    51
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Index bounds

Postby marcio_fr » Thu Mar 05, 2015 2:19 pm

I'm using matlab.
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Index bounds

Postby marcio_fr » Thu Mar 05, 2015 2:35 pm

I'm using 2011's version of matlab.
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm

Re: Index bounds

Postby jpfeifer » Fri Mar 06, 2015 7:36 am

As I said, I cannot replicate the problem, which makes it hard to recommend anything. Please try the following: put the mod-file in a new, empty folder and run it again. When to problem pops up again, zip the whole folder and upload it please.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Index bounds

Postby marcio_fr » Fri Mar 06, 2015 3:22 pm

Hi,

I ran the script in a empty folder and the bug didn't appear, seems that the error was caused by another file recorded in the folder.
Attachments
Open economy.rar
(26.05 KiB) Downloaded 68 times
marcio_fr
 
Posts: 22
Joined: Fri Nov 27, 2009 7:14 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests