You have two options for specifying that an application will use Gurobi as as a client of a Gurobi Instant Cloud instance.
1. Use Gurobi environment parameters
If you are writing a program that calls Gurobi from a programming language API, these APIs provide parameters that allow you to specify the name of your Cloud Pool (CloudPool) and the appropriate credentials (CloudAccessID and CloudSecretKey) before starting your Gurobi environment. With this approach, Gurobi license files aren't required on the client.
To generate these parameters, visit the Gurobi Instant Cloud Manager and select Account > API Keys then "CREATE API KEY". Download the created license file to access the generated secret API key.
To use this API key in Python, for example, this would be:
env = Env(empty=True)
env.setParam('CloudPool', 'myPool')
env.setParam('CloudAccessID', '312e9gef-e0bc-4114-b6fb-26ed7klaeff9')
env.setParam('CloudSecretKey', 'ae32L0H321dgaL')
...
env.start()
2. Use a Gurobi license key file
Alternatively, you can install a gurobi.lic file that points to your Gurobi Instant Cloud. This option allows you to use Instant Cloud with nearly any program that calls Gurobi, without the need to modify the calling program.
You can download a client gurobi.lic file from your account on the Instant Cloud website. You should place this file in a default location or set the GRB_LICENSE_FILE environment variable to point to it. See Where do I place the Gurobi license file (gurobi.lic)? for further information.
This file will contain two lines that look like this:
CLOUDACCESSID=312e9gef-e0bc-4114-b6fb-26ed7klaeff9 CLOUDKEY=ae32L0H321dgaL
If you are using a non-default pool, the file should also indicate the name of that pool:
CLOUDPOOL=myPool
These lines allow your client program to launch and use cloud instances from your account. You should keep this information private since anyone with access to it can also use your cloud instances.
Comments
0 comments
Article is closed for comments.