Implement MemorizingLazyConstrComponent

This commit is contained in:
2023-10-26 15:37:05 -05:00
parent 2d07a44f7d
commit c1adc0b79e
20 changed files with 202 additions and 169 deletions

View File

@@ -62,9 +62,7 @@ class BasicCollector:
and model.fix_violations is not None
):
model.fix_violations(model, model.violations_, "aot")
h5.put_scalar(
"mip_constr_violations", json.dumps(model.violations_)
)
h5.put_scalar("mip_constr_violations", repr(model.violations_))
# Save MPS file
model.write(mps_filename)