Ramsey: do not check static model if steady state file is present
Check will typically crash due to initialization with 0pac-components
parent
ce899af24d
commit
7cffd34b66
|
@ -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);
|
nl_func = @(x) dyn_ramsey_static_1(x,M,options_,oo);
|
||||||
|
|
||||||
% check_static_model is a subfunction
|
% 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;
|
steady_state = ys_init;
|
||||||
return
|
return
|
||||||
elseif options_.steadystate_flag
|
elseif options_.steadystate_flag
|
||||||
|
|
Loading…
Reference in New Issue