Steady state external file

Dear all,

again I ask for your help - and am grateful for it!

I have a mod file with the model, external steady state file (like NK model file in examples), and I have to use the fsolve (for 3 equations). When I run the model, I get the following error messages - and I do not have any idea what to do about it (or what they mean). Help!! Please :astonished:

Error using eval
Undefined function or variable ‘a’.

Error in FO_OE_ss_steadystate (line 76)
eval(‘ys(’ int2str(ii) ') = ’ varname ‘;’]);

Error in evaluate_steady_state_file (line 49)
[ys,check] = h_steadystate(ys_init, exo_ss);

Error in evaluate_steady_state (line 58)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, …

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

Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in FO_OE_ss (line 239)

Error in dynare (line 180)
evalin(‘base’,fname) ;
FO_OE_ss_steadystate.m (2.93 KB)
FO_d.m (441 Bytes)
FO_OE_ss.m (8.94 KB)

You did not provide the mod-file. But judging from the error message, you did not assign a value to all variables in the steady state file. There seems to be a variable called a that is not set.

Oh, that was stupid of me, sorry! Prof. Pfeifer, could you be so kind to take a look at the attached mod and steady_state file? I have tried to implement the steady_state structure as in the examples, and I have derived the analytical solution - but it still does not seem to help. Would you be so kind to point me my mistake?
FO_OE_ss_steadystate.m (3.1 KB)
FO_OE_ss.mod (4.13 KB)