mode_check.m: take care of almost binding bounds
parent
58b336b263
commit
459fce927b
|
@ -124,10 +124,10 @@ for plt = 1:nbplt
|
||||||
end
|
end
|
||||||
binding_lower_bound=0;
|
binding_lower_bound=0;
|
||||||
binding_upper_bound=0;
|
binding_upper_bound=0;
|
||||||
if isequal(x(kk),BoundsInfo.lb(kk))
|
if abs(x(kk)-BoundsInfo.lb(kk))<1e-8
|
||||||
binding_lower_bound=1;
|
binding_lower_bound=1;
|
||||||
bound_value=BoundsInfo.lb(kk);
|
bound_value=BoundsInfo.lb(kk);
|
||||||
elseif isequal(x(kk),BoundsInfo.ub(kk))
|
elseif abs(x(kk)-BoundsInfo.ub(kk))<1e-8
|
||||||
binding_upper_bound=1;
|
binding_upper_bound=1;
|
||||||
bound_value=BoundsInfo.ub(kk);
|
bound_value=BoundsInfo.ub(kk);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue