Do not check steady state if nocheck option used in steady command...
In perfect foresight solvers with linear approximation.bgp-dev
parent
e5102eeefd
commit
9301024d71
|
@ -132,7 +132,7 @@ if options.debug
|
|||
end
|
||||
|
||||
% Check that the dynamic model was evaluated at the steady state.
|
||||
if max(abs(d1))>options.solve_tolf
|
||||
if ~options_.steadystate.nocheck && max(abs(d1))>options.solve_tolf
|
||||
error('Jacobian is not evaluated at the steady state!')
|
||||
end
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ in = find(M.lead_lag_incidence(3,:)');
|
|||
[d1,jacobian] = dynamicmodel(steadystate_y([ip; ic; in]), transpose(steadystate_x), M.params, steadystate_y, 1);
|
||||
|
||||
% Check that the dynamic model was evaluated at the steady state.
|
||||
if max(abs(d1))>1e-12
|
||||
if ~options.steadystate.nocheck && max(abs(d1))>1e-12
|
||||
error('Jacobian is not evaluated at the steady state!')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue