mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-10 11:28:51 -06:00
Add _gurobipy suffix to all build_model functions
This commit is contained in:
@@ -8,7 +8,7 @@ from scipy.stats import uniform, randint
|
||||
from miplearn.problems.multiknapsack import (
|
||||
MultiKnapsackGenerator,
|
||||
MultiKnapsackData,
|
||||
build_multiknapsack_model,
|
||||
build_multiknapsack_model_gurobipy,
|
||||
)
|
||||
|
||||
|
||||
@@ -56,6 +56,6 @@ def test_knapsack_model() -> None:
|
||||
]
|
||||
),
|
||||
)
|
||||
model = build_multiknapsack_model(data)
|
||||
model = build_multiknapsack_model_gurobipy(data)
|
||||
model.optimize()
|
||||
assert model.inner.objVal == -460.0
|
||||
|
||||
Reference in New Issue
Block a user