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

@@ -39,6 +39,6 @@ def _build_model() -> PyomoModel:
def test_pyomo_callback() -> None:
model = _build_model()
model.optimize()
assert model.lazy_ is not None
assert len(model.lazy_) > 0
assert model._lazy is not None
assert len(model._lazy) > 0
assert model.inner.x.value == 0.0