Skip to content

Commit

Permalink
add listener to normalization searches
Browse files Browse the repository at this point in the history
  • Loading branch information
hdbeukel committed Aug 18, 2016
1 parent 082cb1f commit 25cea7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion corehunter-base/src/main/java/org/corehunter/CoreHunter.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package org.corehunter;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -378,6 +377,10 @@ private List<Objective<SubsetSolution, CoreHunterData>> normalizeObjectives(
new MaxTimeWithoutImprovement(maxTimeWithoutImprovement, TimeUnit.SECONDS)
);
}
// add search listener (if any)
if (listener != null) {
normSearch.addSearchListener(listener);
}
// execute normalization search
normSearch.run();
// return best solution
Expand Down

0 comments on commit 25cea7b

Please sign in to comment.