You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to consider a tolerance, namely, drawtol::Float64, for setting two solvers results as draw.
For instance, if the tolerance is 5%, a solver A is draw with a solver B, whenever the results have relative distance of 5%.
The following function in matlab does that
function PerformanceProfile(PP)
draw =1.05;
[np,na] = size(PP)
colors = {'k','k','k','k','k','k'};
lines = {'-','-','-','-','-','-'};
markers = {'none','o','+','*','d','x'};
minP = min(PP');
for i =1:npif ( minP(i) ~= isnan(PP) )
PP(i,:) = PP(i,:)/minP(i);
endend
maxPP = max(max(PP));
PP(find(isnan(PP))) =2*maxPP;
clf;
for i =1:na
x = sort(PP(:,i));
y = [1:np]'/np;
for j =1:npif ( x(j) <=draw)
x(j) =1;
elsebreakendend
n1 = histcounts(x,[11]);
if ( n1==0)
x = [1 ; x];
y = [0 ; y];
else
x([1:n1-1]) = [];
y([1:n1-1]) = [];
end
x = [x ; 2*maxPP];
y = [y ; y(length(y))];
[xb,yb] = stairs(x,y);
p = plot(xb,yb);
p.LineWidth =2;
p.Color = colors{i};
p.LineStyle = lines{i};
p.Marker = markers{i};
holdon end
The text was updated successfully, but these errors were encountered:
I wish to consider a tolerance, namely,
drawtol::Float64
, for setting two solvers results as draw.For instance, if the tolerance is 5%, a solver
A
is draw with a solverB
, whenever the results have relative distance of 5%.The following function in
matlab
does thatThe text was updated successfully, but these errors were encountered: