Solver: Make attributes private; ensure we're not calling them directly

Helps with Julia/JuMP integration.
This commit is contained in:
2024-02-02 10:15:06 -06:00
parent 33f2cb3d9e
commit 60d9a68485
6 changed files with 66 additions and 59 deletions

View File

@@ -68,8 +68,7 @@ class BasicCollector:
if self.write_mps:
# Add lazy constraints to model
if model.lazy_enforce is not None:
model.lazy_enforce(model, model.lazy_)
model._lazy_enforce_collected()
# Save MPS file
model.write(mps_filename)