Can not compute steady state file

Hello everyone

Dynare reports that “The steady state file did not compute the steady state”
Can anyone help me to detect this problem for me?
Here is my model file Ques2.zip (30.2 KB)

I thank a lot

Focus in the equations with residuals:

Equation number 25 : -2.3642
Equation number 26 : -0.40916
Equation number 27 : -0.40916
Equation number 28 : -0.40916
Equation number 29 : -4.4529
Equation number 30 : -0.40916
Equation number 31 : -2.3642

Here the equations and the steady state file do not match. I would also recommend rewriting the steady state file using statements like

% read out parameters to access them with their name
NumberOfParameters = M_.param_nbr;
for ii = 1:NumberOfParameters
  paramname = deblank(M_.param_names(ii,:));
  eval([ paramname ' = M_.params(' int2str(ii) ');']);
end

shown in the NK_baseline_steadystate.m in the Dynare examples folder. That way you rule out mistakes in the assignment of parameter and variables to M_ and oo_

Dear Prof. Pfeifer

I got your idea
I will do it
Thank you so much for that
Best wishes

Dear Prof. Pfeifer

I refer to

at https://raw.githubusercontent.com/DynareTeam/dynare/master/examples/NK_baseline_steadystate.m

Then I modify my steady state file as

but it can not still work ques3.zip (28.9 KB)
Prof. @jpfeifer would you kindly have a look at my code above? and give me some advices on that
I thank you so much for that
with best wishes

What is the problem you are experiencing? In the steady state file, you need to set all variables.

Dear @jpfeifer

I run my code as q4.zip (29.1 KB)

Then Dynare reports the following error

Not enough input arguments.
Error in beta (line 19)
y = exp(betaln(z,w));
Error in ALEstim_pet_modi_steadystate (line 47)
Rbar = (piebarmuz-taukbeta)/((1-tauk)*beta); %New version 2003-11-28
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 ALEstim_pet_modi (line 884)
steady;
Error in dynare (line 180)
evalin(‘base’,fname) ;
Error in Main (line 3)
dynare ALEstim_pet_modi

I do not know what happens to my steady state file

See my reply at Can not load value of parameter into steadyfile

Dear Prof. @jpfeifer

Yes I did as your advice on your reply at https://forum.dynare.org/t/can-not-load-value-of-parameter-into-steadyfile/10813/2

but then It still does not work, and report as following

"Not enough input arguments.
Error in beta (line 19)
y = exp(betaln(z,w));
Error in ALEstim_pet_modi_steadystate (line 47)
Rbar = (piebarmuz-taukbeta)/((1-tauk)*beta); %New version 2003-11-28
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 ALEstim_pet_modi (line 884)
steady;
Error in dynare (line 180)
evalin(‘base’,fname) ;
Error in Main (line 3)
dynare ALEstim_pet_modi "

The code is here q5.zip (28.9 KB)
would you kindly have a look at it again?

I am looking forward to your reply
with best wishes

Apparently, you did not follow my advice. The error you get comes from beta being a Matlab function. You forgot to declare it as indicated in the other post.

Dear Prof.@jpfeifer

I misunderstood you, I am sorry, yes, now it works

I thank you so much for your help

With best wishes