From 2b2aee3f302f5bf6fcc929e8c3319430aadde8a9 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Fri, 20 May 2022 15:12:12 +0200 Subject: [PATCH] fixed bug in sampling in the neighborhood of a critical point --- matlab/gsa/stab_map_.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/gsa/stab_map_.m b/matlab/gsa/stab_map_.m index 94a49a20fd..05d280e13c 100644 --- a/matlab/gsa/stab_map_.m +++ b/matlab/gsa/stab_map_.m @@ -203,7 +203,7 @@ if fload==0 for j=1:np ub=xparam1(j+nshock)*(1+sign(xparam1(j+nshock))*neighborhood_width); lb=xparam1(j+nshock)*(1-sign(xparam1(j+nshock))*neighborhood_width); - if bounds.ub(j+nshock)>=xparam1(j) && bounds.lb(j)<=xparam1(j+nshock) + if bounds.ub(j+nshock)>=xparam1(j+nshock) && bounds.lb(j+nshock)<=xparam1(j+nshock) ub=min([bounds.ub(j+nshock) ub]); lb=max([bounds.lb(j+nshock) lb]); else -- GitLab