mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Update to Gurobi 11
This commit is contained in:
@@ -105,7 +105,8 @@ def build_stab_model_gurobipy(
|
||||
model.addConstr(x[i1] + x[i2] <= 1)
|
||||
|
||||
def cuts_separate(m: GurobiModel) -> List[Hashable]:
|
||||
x_val = m.inner.cbGetNodeRel(x)
|
||||
x_val_dict = m.inner.cbGetNodeRel(x)
|
||||
x_val = [x_val_dict[i] for i in nodes]
|
||||
return _stab_separate(data, x_val)
|
||||
|
||||
def cuts_enforce(m: GurobiModel, violations: List[Any]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user