Problem with version 4.6.1

Dear all,
I am having some troubles with running a very simple RBC model with version 4.6.1. The code works properly with version 4.5.7. When I try with the new version I got the following message:

Error using simple_RBC_steadystate
Too many input arguments.

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

Error in evaluate_steady_state (line 210)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,
options,steadystate_check_flag);

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

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

Error in simple_RBC.driver (line 213)
steady;

Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;

simple_RBC_steadystate is the external function that computes the steady state.
Any help would be very welcome.
Thanks in advance
simple_RBC.zip (5.4 KB)

Hi All
I have actually discovered the source of the problem. The way you specify the external function for the computing the steady state has changed in the new version of Dynare. In particular, the number of inputs (now 3 instead of 2) and outputs (now 4 instead of 2) required in external function are changed.
I was not aware of this new format.
Regards
F.

See

Thanks a lot!
You are doing a really great job here!
F.

Hi there, what was the solution then? Is it changing

function [ys,check] = NK_baseline_steadystate(ys,exo)

to

function [ys,params,check] = NK_baseline_steadystate(ys,exo,M_,options_)?

I am still facing error despite the changes in the number of 3 inputs and 4 outputs

Error in evaluate_steady_state_file (line 63)
updated_params_flag = max(abs(params1-params)) > 1e-12 …

Error in evaluate_steady_state (line 255)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M,options);

Without the code and more information on which version of Dynare you are trying to use, it is impossible to tell.