Skip to content
Snippets Groups Projects
Commit 78b79df2 authored by Marco Ratto's avatar Marco Ratto
Browse files

increase buffer wrt upper/lower bound of parameters

parent b1aa88e8
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment