Skip to content
Snippets Groups Projects
Commit 7cffd34b authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Ramsey: do not check static model if steady state file is present

Check will typically crash due to initialization with 0
parent ce899af2
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ options_.steadystate.nocheck = 1; %locally disable checking because Lagrange mul
nl_func = @(x) dyn_ramsey_static_1(x,M,options_,oo);
% check_static_model is a subfunction
if check_static_model(ys_init,M,options_,oo) && ~options_.steadystate_flag
if ~options_.steadystate_flag && check_static_model(ys_init,M,options_,oo)
steady_state = ys_init;
return
elseif options_.steadystate_flag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment