mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-08 10:28:52 -06:00
Merge components more efficiently
This commit is contained in:
@@ -50,9 +50,10 @@ class BranchPriorityComponent(Component):
|
||||
pass
|
||||
|
||||
|
||||
def merge(self, other):
|
||||
if other.priority is not None:
|
||||
self._merge(other.priority)
|
||||
def merge(self, other_components):
|
||||
for comp in other_components:
|
||||
if comp.priority is not None:
|
||||
self._merge(comp.priority)
|
||||
|
||||
|
||||
def _merge(self, priority):
|
||||
|
||||
Reference in New Issue
Block a user