Accessing remote instance of Gurobi via JuMP (Julia for Mathematical Programming)
AnsweredI am attempting to access our company's gurobi server instance (in our AWS account) from a Jupyter notebook with a Julia kernel using JuMP (Julia for Mathematical Programming). The JuMP API has hooks into Gurobi, but seems to assume that the solver is installed locally, on the notebook server. It would seem that, as with other languages such as python, I should be able to set up an Env() instance that points to the remote Gurobi server, but I haven't figured out how to do this. If anyone has experience using JuMP/Julia to access remote Gurobi servers I would be grateful for any help or pointers.
Thank you
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Thomas,
Could you clarify what you mean by "remote Gurobi server"? Is the AWS instance being used as a Compute Server?
If this is the case, Gurobi needs to be installed on the client machine (the notebook server), along with the JuMP.jl and Gurobi.jl packages. The key to accessing the remote server is correctly configuring the Gurobi license file. The license file on the notebook server should be configured to point to the machine running Gurobi Remote Services. See the documentation on remote services client configuration for details on how to set up the client license file. This is no different from Python - Gurobi must be installed on the client machine, even if the model will be solved on a remote server.
Note that you can create a Gurobi environment object with the Gurobi.jl package and pass it to a JuMP model, per the README on the Gurobi.jl GitHub page.
Thanks!
Eli
0
Post is closed for comments.
Comments
2 comments