Try our new documentation site (beta).

AMPL Installation Wizard

Here are instructions to install AMPL-Gurobi on Microsoft Windows:

  1. Unzip the supplied AMPL-Gurobi file, which will be named something like This will create a folder called AMPL, which contains the AMPL-Gurobi software. (Note that your unzip utility may embed this AMPL folder inside a folder such as amplgurobi11.0.2_mswin64).
  2. Move this AMPL folder to your preferred location. Virtually any folder will work such as C:\AMPL or C:\Program Files\AMPL.
  3. You will need a license key for AMPL - even if you already have a license key for the standalone Gurobi Optimizer. To get system information needed for a license key, use the supplied Scrolling Window program sw.exe, which is described in detail in the User Guide. Open the folder where AMPL is installed, run sw.exe, then type the command:
    fingerprint -o fp.out
    This will generate a fingerprint file named fp.out in the AMPL folder. To request your license key (after we have received your payment or a Gurobi sales representative has approved your request to evaluate AMPL), email the fp.out file to
  4. When you receive your license key, simply copy the license key file to the folder where AMPL is installed.
  5. If you are configuring a floating license server for AMPL-Gurobi, please follow the additional instructions for ampl_lic.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.