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
Branches
Tags
No related merge requests found
...@@ -97,10 +97,10 @@ function x = check_bounds(x,bounds) ...@@ -97,10 +97,10 @@ function x = check_bounds(x,bounds)
inx = find(x>=bounds(:,2)); inx = find(x>=bounds(:,2));
if ~isempty(inx) if ~isempty(inx)
x(inx) = bounds(inx,2)-eps; x(inx) = bounds(inx,2)-1.e-10;
end end
inx = find(x<=bounds(:,1)); inx = find(x<=bounds(:,1));
if ~isempty(inx) if ~isempty(inx)
x(inx) = bounds(inx,1)+eps; x(inx) = bounds(inx,1)+1.e-10;
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment