Dear CVX Community,
I am experiencing difficulties configuring Gurobi as a solver in CVX when using a WLS Compute Academic license on a SLURM cluster. While CVX detects Gurobi as an available solver, it fails to start it due to license access issues.
To debug the issue, I first tested it on my local machine with the following setup:
cvx_path = fullfile(pwd, ‘cvx’);
addpath(cvx_path);
gurobi_license_path = fullfile(pwd, ‘cvx’, ‘gurobi’, ‘w64’, ‘gurobi.lic’);
setenv(‘GRB_LICENSE_FILE’, gurobi_license_path);
cvx_setup
Free Academic File License: Works perfectly with CVX and Gurobi.
WLS Compute Academic File License: Fails to start Gurobi.
Additionally, when I try to access the WLS license directly via the API using:
cvx_grbgetkey 12XXXXXX-XXXX-XXXX-…
I receive the following error:
info : grbgetkey version 9.0.0, build v9.0.0rc2
info : Contacting Gurobi key server…
error : ERROR 202: Cannot get key code 12XXXXXX-XXXX-XXXX-…
The key code is correct, but it still does not work.
While the Free Academic File License works fine on my local machine, it is not an option for the SLURM cluster, since it is restricted to a single machine only and is tied to the hardware ID of the machine where it was generated.
I would appreciate any guidance on:
- Has anyone successfully used a WLS Compute Academic license with CVX on a SLURM cluster? Are there any specific configurations required to get CVX to recognize Gurobi with a WLS license?
Thanks in advance for your help!
Best regards,
Marco Silva