fixed bug in sampling in the neighborhood of a critical point

mr#2067
Marco Ratto 2022-05-20 15:12:12 +02:00
parent 20f8dd780f
commit 2279529851
1 changed files with 1 additions and 1 deletions

View File

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