Error in my steadystate file: Not enough input arguments.Failure in initial objective function evaluation. FSOLVE cannot continue

Hi everyone,
I am trying to replicate the model of Orsi (2014). I’m using a solver to compute the steady state of the model but I keep getting this error:
Not enough input arguments.

Error in orsi_22_steadystate (line 43)
NumberOfParameters = M_.param_nbr;

Error in fsolve (line 260)
fuser = feval(funfcn{3},x,varargin{:});

Caused by:
Failure in initial objective function evaluation. FSOLVE cannot continue.
I’d really appreciate if any of you could help me figure this out.
Thank you so much!
orsi_22.mod (5.3 KB)
orsi_22_steadystate.m (3.9 KB)

1 Like

The solver needs to be called in the steady state file. Also, you did not specify what the arguments of the solver for

e(1)= ((1-exp(tauh))*exp(wm)*(exp(c)^-(siggma)))/((exp(h))^xi * exp(xih)) - b_0 ; %despejar b_0 ; 
e(2) = ((exp(wu)*(exp(c)^-(siggma)) - (b_0*(exp(h))^xi * exp(xih))/(b_1)))^(1/phi) - exp(hu) ;
e(3) = exp(h)-exp(hu) - exp(hm) ; 


Dear professor,
Thank you so much for replying
Do you have any examples of a solver like this that I could use as a reference?

For example DSGE_mod/Gali_2010_calib_target_steadystate.m at master · JohannesPfeifer/DSGE_mod · GitHub and DSGE_mod/Jermann_Quadrini_2012_RBC_steadystate.m at master · JohannesPfeifer/DSGE_mod · GitHub