Gurobi uses environment variables for multiple configuration purposes. For example, you can set the variable GRB_LICENSE_FILE to indicate where to look for a license file.
Windows
Gurobi uses system variables for multiple configuration purposes. For example, you can set the variable GRB_LICENSE_FILE to indicate where to look for a license file.
On Windows systems, environment variables are created and modified through the Control Panel. Searching for Environment Variables from the Control Panel search box will lead you to the appropriate screen. You will need to add a new System variable named GRB_LICENSE_FILE, and set it to the location of your license file (e.g., C:\gurobi\gurobi.lic). Important note: if your new environment variable is a User variable, this setting will only work for the current user.
Linux
You can set an environment variable by adding a line to your .bashrc file:
export GRB_LICENSE_FILE=/usr/home/jones/gurobi.lic
For csh shell users, you should add the following to your .cshrc file:
setenv GRB_LICENSE_FILE /usr/home/jones/gurobi.lic
You should of course set the variable to point to the actual location of your license key file.
macOS
Gurobi uses environment variables for multiple configuration purposes. For example, you can set the variable GRB_LICENSE_FILE to indicate where to look for a license file.
You can set an environment variable by adding a line to your shell startup file (.zshenv for zsh, .bash_profile for bash):
export GRB_LICENSE_FILE=/Users/jones/gurobi.lic
You should of course set the variable to point to the actual location of your license key file.
Comments
0 comments
Please sign in to leave a comment.