Beispiel #1
0
 def select(self,mod,frontier):
     binary_result = {}
     can_id = 0
     for left in frontier:
         count = 0
         for right in frontier:
             if Utility.compare(mod,mod.objs(left),mod.objs(right)):
                 count += 1
         binary_result[can_id] = count
         can_id += 1
     return binary_result
Beispiel #2
0
 def select(self, mod, frontier):
     binary_result = {}
     can_id = 0
     for left in frontier:
         count = 0
         for right in frontier:
             if Utility.compare(mod, mod.objs(left), mod.objs(right)):
                 count += 1
         binary_result[can_id] = count
         can_id += 1
     return binary_result