mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Cuts: Do not access attributes directly
This commit is contained in:
@@ -107,8 +107,6 @@ class MemorizingCutsComponent(_BaseMemorizingConstrComponent):
|
||||
model: AbstractModel,
|
||||
stats: Dict[str, Any],
|
||||
) -> None:
|
||||
if model.cuts_enforce is None:
|
||||
return
|
||||
assert self.constrs_ is not None
|
||||
cuts = self.predict("Predicting cutting planes...", test_h5)
|
||||
model.set_cuts(cuts)
|
||||
|
||||
Reference in New Issue
Block a user