Skip to content

Commit

Permalink
Update deltaElimination.m
Browse files Browse the repository at this point in the history
  • Loading branch information
rtaormina committed Jun 24, 2015
1 parent 90ad50c commit bda6882
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deltaElimination.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@
tempArchive = archive;

% extract accuracies for delta elimination
accuracies = fvals_ext(:,3);
accuracies = -(fvals_ext(:,3));

% find best value of metric
bestValue = min(accuracies);
bestValue = max(accuracies);

delta = (delta/100)*abs(bestValue);
delta = (delta/100);


% in this array 1 will identify solution to be eliminated
ixesToRemove = zeros(size(tempArchive,1),1);

% proceed with delta elimination
for i = 1 : numel(tempArchive)
if accuracies(i) > bestValue + delta;
if accuracies(i) < (1-delta)*bestValue;
% remove, it's inferior
ixesToRemove(i) = 1;
else
Expand All @@ -70,7 +70,7 @@
end
Sj = tempArchive{j};
if isequal(intersect(Si,Sj),Sj) &&...
(accuracies(j)<accuracies(i))
(accuracies(j)>accuracies(i))
% remove solution if inferior
ixesToRemove(i) = 1;
end
Expand Down

0 comments on commit bda6882

Please sign in to comment.