Gurobi License on Cluster Nodes

Is there a cluster-wide Gurobi academic site license for CARC, or should I provide my own Named-User license?

The latter would be an issue, since it allows only one machine and I had many jobs I hoped to run in parallel.

Thanks!

Yes, we have a cluster-wide academic license for the Gurobi Optimizer. It’s available with the Gurobi software modules. The latest version is:

module load gurobi/10.0.0

Thank you!

I see more recent modules for Gurobi:

$ module spider gurobi

-------------------
  gurobi:
-------------------
     Versions:
        gurobi/9.0.1
        gurobi/9.5.0
        gurobi/9.5.2
        gurobi/10.0.0
        gurobi/11.0.2

If I use 10.0.0, it works but the Gurobi Python API requires Python <= 3.10:

$ conda install -c gurobi gurobi=10.0.0
Channels:
 - gurobi
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package gurobi-10.0.0-py310_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ gurobi 10.0.0**  is installable with the potential options
│  ├─ gurobi 10.0.0 would require
│  │  └─ python >=3.9,<3.10.0a0 , which can be installed;
│  ├─ gurobi 10.0.0 would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ gurobi 10.0.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  └─ gurobi 10.0.0 would require
│     └─ python >=3.8,<3.9.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

… Which is unfortunate, because it breaks other dependencies for me.

On the other hand, if I use module load gurobi/11.0.2 and conda install -c gurobi gurobi=11.0.2 (which supports more recent Python versions), Gurobi says that USC’s license is not valid for version 11:

gurobipy.GurobiError: Request denied: license not valid for Gurobi version 11

Looking at the license file after module load gurobi/11.0.2:

$ cat /spack/generic/gurobi/11.0.2/license/gurobi.lic
TOKENSERVER=hpc-licenses.hpcc.usc.edu

It seems that everything is in order for 11.0.2, but the license needs to be upgraded from the Gurobi account website. Are there any chances that this may happen anytime soon? (Gurobi 10.0.0 is from Nov 2022…)

The problems with Gurobi 11.0.2 seem to be resolved now. Has the USC license been updated?

Yeah, just added the most recent version gurobi/11.0.2 but had to update the license server.

That’s awesome! Thank you for the quick followup.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.