From 78b79df2cb6443de251b94af93463bd1330bc4df Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Wed, 13 Dec 2023 19:06:15 +0100 Subject: [PATCH] increase buffer wrt upper/lower bound of parameters --- matlab/optimization/mr_gstep.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/optimization/mr_gstep.m b/matlab/optimization/mr_gstep.m index 6a403ea7ad..911fb49b69 100644 --- a/matlab/optimization/mr_gstep.m +++ b/matlab/optimization/mr_gstep.m @@ -97,10 +97,10 @@ function x = check_bounds(x,bounds) inx = find(x>=bounds(:,2)); if ~isempty(inx) - x(inx) = bounds(inx,2)-eps; + x(inx) = bounds(inx,2)-1.e-10; end inx = find(x<=bounds(:,1)); if ~isempty(inx) - x(inx) = bounds(inx,1)+eps; + x(inx) = bounds(inx,1)+1.e-10; end -- GitLab