Skip to content
Snippets Groups Projects
Commit cc18b26e authored by markn92's avatar markn92
Browse files

bug fix

parent eaec6b80
No related branches found
No related tags found
No related merge requests found
......@@ -55,15 +55,15 @@ class LabelPriorityQueue(PriorityQueue):
it cannot lead to a better solution.
"""
try:
label: Label = self.peak_min()
min_label: Label = self.peak_min()
except KeyError:
return
soc: SoCFunction = self.f_soc_factory(label)
soc: SoCFunction = self.f_soc_factory(min_label)
# Remove item if it gets dominated by any label in l_set
if any(self.f_soc_factory(label).dominates(soc) for label in self.l_set):
self.remove_item(label)
self.remove_item(min_label)
@staticmethod
def keys(f_soc: SoCFunction) -> Dict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment