Add _gurobipy suffix to all build_model functions

This commit is contained in:
2024-02-06 16:08:24 -06:00
parent fb3f219ea8
commit b55554d410
28 changed files with 99 additions and 102 deletions

View File

@@ -7,7 +7,7 @@ import numpy as np
from miplearn.problems.vertexcover import (
MinWeightVertexCoverData,
build_vertexcover_model,
build_vertexcover_model_gurobipy,
)
@@ -16,6 +16,6 @@ def test_stab() -> None:
graph=nx.cycle_graph(5),
weights=np.array([1.0, 1.0, 1.0, 1.0, 1.0]),
)
model = build_vertexcover_model(data)
model = build_vertexcover_model_gurobipy(data)
model.optimize()
assert model.inner.objVal == 3.0