Software gurobi: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
(Created page with "Category:software-faq")
 
No edit summary
Line 1: Line 1:
[[Category:software-faq]]
[[Category:software-faq]]
[http://gurobi.com/ Gurobi] Seems to be software that needs the user to be able to write in system directories. This makes it unsuitable for distribution by the LWP admins, but you can still install it in your home directory...
* [http://www.gurobi.com/html/academic.html Get a license] if you don't already have one.
* Fetch the software from [http://www.gurobi.com/webapps/download/download/ the download page].
** You need the 64-bit Linux version.
* Unpack the tarball:
tar zxf gurobi4.6.1_linux64.tar.gz
* Set a few environment variables (assuming that you were in ~ when you unpacked):
export GUROBI_HOME=${HOME}/gurobi461/linux64
export PATH="${PATH}:${HOME}/gurobi461/linux64/bin"
export PYTHONPATH="${PYTHONPATH}:${GUROBI_HOME}/lib/python2.6/gurobipy"
(You might want to put these command in your ~/.bashrc, lest you must type them every time you want to use gurobi.)
* Enable your license as explained on [http://www.gurobi.com/html/academic.html the license page]:
grbgetkey substitute-your-own-key-here
* Start using gurobi:
gurobi.sh
Due to the license construction, you must repeat the "grbgetkey" command on every computer you wish to run Gurobi on.
Running gurobi from your home directory is somewhat slower than running it from disk, or even /opt/netapps.
You may wish to install it in /mnt/D instead of ${HOME} to gain speed.
The consequence of that is that you also have to install it on every machine you use.

Revision as of 17:40, 10 February 2015

Gurobi Seems to be software that needs the user to be able to write in system directories. This makes it unsuitable for distribution by the LWP admins, but you can still install it in your home directory...

  • Unpack the tarball:
tar zxf gurobi4.6.1_linux64.tar.gz
  • Set a few environment variables (assuming that you were in ~ when you unpacked):
export GUROBI_HOME=${HOME}/gurobi461/linux64
export PATH="${PATH}:${HOME}/gurobi461/linux64/bin"
export PYTHONPATH="${PYTHONPATH}:${GUROBI_HOME}/lib/python2.6/gurobipy"

(You might want to put these command in your ~/.bashrc, lest you must type them every time you want to use gurobi.)

grbgetkey substitute-your-own-key-here
  • Start using gurobi:
gurobi.sh


Due to the license construction, you must repeat the "grbgetkey" command on every computer you wish to run Gurobi on.


Running gurobi from your home directory is somewhat slower than running it from disk, or even /opt/netapps. You may wish to install it in /mnt/D instead of ${HOME} to gain speed. The consequence of that is that you also have to install it on every machine you use.