Model won't work. Unknown error message

Hi all,

I am working on a simple model, but I am not able to come up with a working one. I always get the following error message:

[code]??? Reference to non-existent field ‘ghs2’.

Error in ==> disp_dr at 60
x = x + dr.ghs2(ivar(i))/2;

Error in ==> stoch_simul at 65

Error in ==> heuristics4 at 148
info = stoch_simul(var_list_);

Error in ==> dynare at 102
evalin(‘base’,fname) ;[/code]

I have no idea what I am doing wrong, so I hope someone can give me a hint?

Thank you in advance!
heuristics4.mod (790 Bytes)

The error with your .mod-file on my machine with Dynare 4.1 and Win64bit is the following:

??? Error using ==> dr1 at 198
2nd and 3rd order approximation not implemented for purely backward models

Error in ==> resol at 128
[dr,info,M_,options_,oo_] = dr1(dr,check_flag,M_,options_,oo_);

Error in ==> stoch_simul at 42
[oo_.dr, info] = resol(oo_.steady_state,0);

Error in ==> heuristics4 at 177
info = stoch_simul(var_list_);

Error in ==> dynare at 132
evalin(‘base’,fname) ;



instead of


seems to work.