How to Use AIMMS with Gurobi

You can connect your on-premise Gurobi installation to AIMMS and use Gurobi as the solver for your math programs.

Gurobi offers two kinds of on-premise licenses:

  1. Single machine (named user or unlimited user)
  2. Compute server

This article outlines the process to connect AIMMS with different types of Gurobi licenses.

Single machine

  1. Locate the gurobi.lic file (usually, C:\gurobi\gurobi.lic)

  2. Set the environment variable GRB_LICENSE_FILE to point to the exact location of this file

  3. In the Solver Configuration dialog box in AIMMS, click on Add and select the dll for the appropriate Gurobi version (libgrb**.dll)


Compute server

Gurobi’s compute server offering lets you designate one (or more) remote server machines as the workers to the client machines (on which AIMMS is running). All client machines need Gurobi Optimizer installed on them and a Gurobi client license file.

Client on a different machine

  1. Create a Gurobi client license by following these instructions on Gurobi’s website
  2. Place this file in the folder C:\gurobi\

The next steps are same as for a single machine license described in the previous section.

Client is same as server machine

If you are running AIMMS on the same machine as Gurobi remote services, you will need to create a separate client license file again as described in this link on Gurobi’s website

  1. Place this license file in a different location than C:\gurobi\, say C:\Users\Name\Documents\gurobi.lic
  2. Set the environment variable GRB_LICENSE_FILE to the file in C:\Users\Name\Documents\

Set Gurobi as the default solver in the Solver Configuration dialog like in previous steps.

AIMMS PRO with Gurobi

The instructions remain the same for AIMMS Developer and AIMMS PRO. Depending on whether AIMMS PRO server is a client to Gurobi server or they are on the same machine, create the appropriate license files and set the environment variables.

You will need to set Gurobi as the solver to use before creating the AIMMSPACK file and publish this with the appropriate license profile.

Last Updated: November, 2019