Connect 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 different kinds of on-premise licenses:

  1. Single machine (named user or unlimited user)

  2. Compute server

This article outlines the process to connect AIMMS for each kind of Gurobi license.

Note

Your AIMMS license must be configured with a Gurobi Link component to be able to connect with your Gurobi installation. Check your license configuration in the AIMMS Tools menu: Tools -> License -> License Configuration.

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

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

    ../../_images/solver_config.png

Compute server

If you have a Gurobi compute server license, follow the instructions depending on whether you are using AIMMS on a Gurobi client machine or the server itself.

Client on a different machine

  1. Create a Gurobi client license by following the instructions on Gurobi: License File

  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 on Gurobi : Creating a Compute Server

  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.