How to link a solver to AIMMS

AIMMS Knowledge Base Article - KB00002

Summary

If you have license of a solver and your AIMMS license has the link to that solver (a so-called 'link-only' licence), you can add that solver to your AIMMS. Currently, AIMMS provides links to the following solvers:

  • CPLEX
  • GUROBI
  • PATH
  • SNOPT
  • MINOS

Resolution

The general steps to link a solver to AIMMS are:

  1. Have a valid solver license installed correctly; you should be able (and allowed) to run the solver stand-alone.
  2. Start AIMMS, and in the 'Solver Configuration' dialog box (menu: Settings - Solver Configuration), add the solver.
  3. Test if the solver is added correctly.

Specifically,

To link CPLEX to AIMMS:

  1. Have the CPLEX license installed correctly; you should be able to run CPLEX stand-alone.
  2. In the Solver Configuration dialog box (menu: Settings - Solver Configuration), add the CPLEX solver (libcpx*.dll). 

To link GUROBI to AIMMS:

  1. Have the GUROBI license installed correctly; you should be able to run GUROBI stand-alone.
  2. Set the environment variable GRB_LICENSE_FILE to point to the exact location of the license file. For example, if the license file gurobi.lic is in the directory C:\Gurobi, then set GRB_LICENSE_FILE to C:\Gurobi\gurobi.lic. 
  3. In the Solver Configuration dialog box (menu: Settings - Solver Configuration), add the GUROBI solver (libgrb*.dll).

To link PATH to AIMMS:

  1. Have the PATH license installed correctly; you should be able to run PATH stand-alone.
  2. Copy the file path*.dll to the subdirectory 'Solvers' of AIMMS.
  3. In the Solver Configuration dialog box (menu: Settings - Solver Configuration), add the PATH solver (libpath*.dll).

To link SNOPT or MINOS to AIMMS:

  1. In the Solver Configuration dialog box (menu: Settings - Solver Configuration), add the solver (libsnopt*.dll or libminos.dll).
Please note that normally you do not have to copy a solver DLL file to the installation directory of AIMMS because the AIMMS installation already includes these files.

More information

Please refer to this article if you get error message: "Could not initialize DLL", or contact us at support@aimms.com.