From dadd2216f1abaa9dacf2634b5bc6b0f83b971119 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Tue, 10 Jun 2025 11:26:41 -0500 Subject: [PATCH] Make compatible with Gurobi 12 --- miplearn/problems/setcover.py | 2 +- miplearn/problems/setpack.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/miplearn/problems/setcover.py b/miplearn/problems/setcover.py index 6b92f76..6c15951 100644 --- a/miplearn/problems/setcover.py +++ b/miplearn/problems/setcover.py @@ -8,7 +8,7 @@ from typing import List, Union import gurobipy as gp import numpy as np import pyomo.environ as pe -from gurobipy.gurobipy import GRB +from gurobipy import GRB from scipy.stats import uniform, randint from scipy.stats.distributions import rv_frozen diff --git a/miplearn/problems/setpack.py b/miplearn/problems/setpack.py index 453e7f0..b9195c4 100644 --- a/miplearn/problems/setpack.py +++ b/miplearn/problems/setpack.py @@ -7,7 +7,7 @@ from typing import List, Union import gurobipy as gp import numpy as np -from gurobipy.gurobipy import GRB +from gurobipy import GRB from scipy.stats import uniform, randint from scipy.stats.distributions import rv_frozen diff --git a/setup.py b/setup.py index 8f1e592..295d91b 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( python_requires=">=3.9", install_requires=[ "Jinja2<3.1", - "gurobipy>=11,<12", + "gurobipy>=12,<13", "h5py>=3,<4", "networkx>=2,<3", "numpy>=1,<2",