Use np in Constraints.lazy; replace some get_vector

This commit is contained in:
2021-08-09 06:27:03 -05:00
parent f809dd7de4
commit 5b54153a3a
10 changed files with 47 additions and 47 deletions

View File

@@ -31,7 +31,7 @@ def sample() -> Sample:
"type-b",
"type-b",
],
"static_constr_lazy": [True, True, True, True, False],
"static_constr_lazy": np.array([True, True, True, True, False]),
"static_constr_names": np.array(["c1", "c2", "c3", "c4", "c5"], dtype="S"),
"static_instance_features": [5.0],
"mip_constr_lazy_enforced": {b"c1", b"c2", b"c4"},