From 4ba0f0a9c3574b095b57bf21eed8566798631417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 20 Oct 2020 18:25:55 +0200 Subject: [PATCH] =?UTF-8?q?LMMCP:=20don=E2=80=99t=20report=20a=20wrong=20m?= =?UTF-8?q?axerror,=20rather=20put=20NaN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../perfect-foresight-models/perfect_foresight_solver_core.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m index ff7616d32..c4c49fa6a 100644 --- a/matlab/perfect-foresight-models/perfect_foresight_solver_core.m +++ b/matlab/perfect-foresight-models/perfect_foresight_solver_core.m @@ -116,7 +116,9 @@ else end if nargout>1 - if options_.block && ~options_.bytecode + if options_.lmmcp.status + maxerror = NaN; % Could be improved + elseif options_.block && ~options_.bytecode maxerror = oo_.deterministic_simulation.error; else if options_.bytecode -- GitLab