mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
Update UserCutsComponent
This commit is contained in:
@@ -67,6 +67,8 @@ def test_subtour() -> None:
|
||||
instance = TravelingSalesmanInstance(n_cities, distances)
|
||||
solver = LearningSolver()
|
||||
solver.solve(instance)
|
||||
assert instance.samples[0].after_mip is not None
|
||||
assert instance.samples[0].after_mip.extra is not None
|
||||
lazy_enforced = instance.samples[0].after_mip.extra["lazy_enforced"]
|
||||
assert lazy_enforced is not None
|
||||
assert len(lazy_enforced) > 0
|
||||
|
||||
Reference in New Issue
Block a user