Skip to main content

Julia doesn't install latest version of Gurobi

Answered

Comments

8 comments

  • Alison Cozad
    Gurobi Staff Gurobi Staff

    Are you using the latest version of Gurobi.jl (v0.10.1) from jump-dev? 

    According to jump-dev/Gurobi.jl,

    Gurobi.jl requires Gurobi version 9.0 or 9.1 or 9.5.

    0
  • Konstantinos Athanasiou
    Gurobi-versary
    First Comment
    First Question

    Hi Alison Cozad, thank you for your reply! When removing and re-adding the Gurobi Pkg in Julia this is what I get:

    julia> Pkg.add("Gurobi")
    Resolving package versions...
    Updating 'C:\Users\Nosdi\AppData\Local\NEMO\depot\environments\v1.6\Project.toml'
    [2e9cd046] + Gurobi v0.8.1
    Updating 'C:\Users\Nosdi\AppData\Local\NEMO\depot\environments\v1.6\Manifest.toml'
    [2e9cd046] + Gurobi v0.8.1
    [fdba3010] + MathProgBase v0.7.8

    which I think is the issue cause it should be installing a later version of Gurobi.

    0
  • Alison Cozad
    Gurobi Staff Gurobi Staff

    Ah, I think I see the confusion here.  There are two things that are named quite similarly:

    1. Gurobi Optimizer 
      This is the Gurobi solver.  The latest version is 9.5.

    2. Gurobi.jl   
      The Gurobi.jl package is the Julia interface for Gurobi Optimizer.  This package is maintained by the JuMP community. It appears that you are using the Gurobi.jl v0.8.1 which was released in May of 2020.  To my knowledge, this version is not compatible with Gurobi Optimizer version 9.5.

    I recommend upgrading to the Gurobi.jl v0.10.1 and following the installation instructions here: jump-dev/Gurobi.jl.  You will need to make sure your GUROBI_HOME environment variable is set in the process.

    0
  • Konstantinos Athanasiou
    Gurobi-versary
    First Comment
    First Question

    I have followed this guide, where step by step I do the following: Got the license and installed the Gurobi 9.5.0, then set the environment path (in my case: C:\gurobi950\win64) and lastly I add and build Gurobi. The result is the same, Julia installs Gurobi v0.8.1 instead of the latest Gurobi.jl. I believe that smth is blocking the installation of the latest version but can't figure out what.

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Konstantinos,

    Your issue appears to be the same as that one on the GitHub of Gurobi.jl:
    Gurobi 9.5.0 -- Unable to locate Gurobi installation. Running some common diagnostics · Issue #440 · jump-dev/Gurobi.jl (github.com)

    Apparently, you need to update JuMP to make the current Gurobi version available.

    I just tested the installation instructions in a fresh Julia 1.7.1 environment on Windows and everything worked as intended.

    Cheers,
    Matthias

    0
  • Konstantinos Athanasiou
    Gurobi-versary
    First Comment
    First Question

    Hi Matthias Miltenberger, my JuMP is 0.21.2 and when executing Pkg.update() no changes are been made. Also, I have followed this thread before posting and didn't actually resolve my issue. Finally, even when I'm removing the JuMP package and re-add it to Julia, gurobi still won't update to the latest version. There's definitely something preventing it from updating which I can't figure out.

    Btw I'm using Julia 1.6.5 cause I had some other issues with working with 1.7.1 is Visual Studio.

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Konstantinos Konstantinidis,

    I just replicated the same procedure using Julia 1.6.5 and it still works just the same - no issues on my machine.

    Maybe you can try re-installing Julia? I don't know how else we could help you here. This appears to be a Julia/JuMP/Gurobi.jl issue.

    Best regards,
    Matthias

    0
  • Konstantinos Athanasiou
    Gurobi-versary
    First Comment
    First Question

    Yes I will, I think that some residual files when uninstalling could be the issue so I'll try to do a powerfull/clean uninstall so that all previous editions are completely deleted.

    Thank you very much for your time! 

    0

Please sign in to leave a comment.