Running Gurobi in a cluster




  • Thomas Opfer

    Hi David,

    to solve the problem with the shared object, it should be sufficient to add the path where the .so-files are located to the environment variable LD_LIBRARY_PATH, e.g.

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/david/gurobi810/linux64/lib

    (please use your actual path). You might experience other problems if your environment is too different from the cluster's. It might be better to re-compile on the cluster in case of trouble. Then you could also optimize the code for the cluster's CPUs (e.g. gcc -march=native -O2).


    Still, for running gurobi on a cluster, you have to consider other things:

    First, there might be a license issue if the node where gubrobi runs changes from time to time. This can be avoided using a floating license.

    Second, the usage of gurobi is very different when running on several cluster nodes simultaneously than when only using one node. Your approach is perfectly ok, when only using one cluster node. When you want to use more than one node, please have a look at the documentation. (When I did MIP solving on a cluster last time, using several nodes was not really helpful for most of the instances, but this might have changed since then.)

    Comment actions Permalink
  • david garcia

    Hi Thomas,

    Thank you very much for your help. I will try again next time I have access to the cluster.





    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk