Do not check steady state if nocheck option used in steady command...

In perfect foresight solvers with linear approximation.
bgp-dev
Stéphane Adjemian (Ryûk) 2022-08-31 13:12:25 +02:00
parent e5102eeefd
commit 9301024d71
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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