Get started quickly by downloading a package of AMPL and solvers from this page. Use your package in either of these ways:
As a size-limited demonstration version, for getting a fast start on learning what AMPL is like and how it works. Install and use this version immediately to run all of the examples in the freely available AMPL book, which provides a tutorial in both optimization modeling and the AMPL system. Also use this version to experiment with building your own models and solving small instances that fit within the size limitations (listed below).
As a full-featured 30-day trial version, for experimenting with AMPL and solvers on your optimization applications without any limitations as to problem size. To request a trial license file for this purpose, simply fill out and submit the short online form on our Request a Full Trial page (except if you are a student in which case you must use the form on our AMPL for Students page instead).
To download your package of AMPL and solvers, follow the instructions below for your preferred platform:
Windows, Linux, or macOS.
Free AMPL and solver demos are licensed for evaluation and instructional use only. In downloading this software, you agree to the Terms & Conditions governing free demo and trial versions of AMPL and solver products. |
Demonstration packages are available for your choice of AMPL modeling environments:
Your package includes a free license that permits unrestricted use for evaluation or study, subject to limits on the size of problem that can be sent to a solver:
These limitations are applied after any presolve reductions and elimination of variables. The following solvers (some with stricter limits as shown) are included in the demo packages:
Consult the Solvers We Sell page or follow the individual links above for more solver information. (Separately you can also download the AMPL versions of popular free solvers from our Open Source Solvers page.)
To get started, follow the download instructions below for Windows, Linux, or macOS.
The AMPL demo version is ideal for getting a quick start on learning what AMPL is like and how it works. Subject to the problem size limits given above, it supports all AMPL modeling features; it is compatible with all of the examples in the AMPL book, which is also freely downloadable. When the time comes to try AMPL on larger problems than the demo version will permit, consider one of the following options, which are not subject to size limitations:
Your demo download can be converted to a free 30-day trial by filling out the form on our Request a Full Trial page (or for students, our AMPL for Students page). As soon as your request is approved, we will email you a trial license file to replace the demo license that came with your download.
AMPL for Courses provides packages of AMPL plus solvers that can be given out to students and used for any purpose in a designated course. The packages time out after the course is over.
The NEOS Server is a free “cloud” optimization service that makes AMPL and most solvers available for trial through an online scheduler and a collection of powerful workstations.
For large-scale research and commercial projects you can purchase AMPL and solvers under a variety of licensing arrangements.
To install: Download the distribution zipfile, amplide.mswin32.zip for the 32-bit version or amplide.mswin64.zip for the 64-bit version. Double-click the zipfile icon, or apply an unzip utility, to extract the folder named amplide.mswin32
or amplide.mswin64
from the zipfile. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
To run: Inside your AMPL folder, double-click the amplide
folder icon to open that folder, and then double-click the amplide.exe
file icon to start the AMPL IDE application. A small “AMPL IDE” window will appear while the program is being loaded, and then the full IDE application window will open. To get started using AMPL IDE, choose Help Contents from the Help menu at the top of the application window.
To install: Download the distribution zipfile, ampl.mswin32.zip for the 32-bit version or ampl.mswin64.zip for the 64-bit version. Double-click the zipfile icon, or apply an unzip utility, to extract the folder named ampl.mswin32
or ampl.mswin64
from the zipfile. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
To run: Inside your AMPL folder, double-click the sw.exe
icon and type ampl
at the prompt in the window that appears. Then you will see an ampl: prompt and can proceed to type AMPL commands. By default, AMPL model
and data
statements will refer to files that you have saved in your AMPL folder; you can instead read from the models
folder of AMPL book examples (which is part of the installation) by giving the command option ampl_include models;
. Be sure to choose a solver, by giving a command of the form option solver xxx;
with xxx replaced by the name of the solver that you wish to run.
To install: Download one of the distribution archives, amplide.linux32.tgz for a 32-bit version or amplide.linux64.tgz for a 64-bit version. Then extract the contents of this archive by typing the command
tar xzf amplide.linux32.tgz
or
tar xzf amplide.linux64.tgz
When the extraction is complete you will see a directory named amplide.linux32
or amplide.linux64
. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
To run: Inside your AMPL directory, you will find a directory named amplide
. Use the cd
command to make amplide
your current directory, and then start AMPL IDE with the command ./amplide
. A small “AMPL IDE” window will appear while the program is being loaded, and then the full IDE application window will open. To get started using AMPL IDE, choose Help Contents from the Help menu at the top of the application window.
To install: Download one of the distribution archives, ampl.linux32.tgz for a 32-bit version or ampl.linux64.tgz for a 64-bit version. Then extract the contents of this archive by typing the command
tar xzf ampl.linux32.tgz
or
tar xzf ampl.linux64.tgz
When the extraction is complete you will see a directory named ampl.linux32
or ampl.linux64
. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
To run: In a command window, use cd
to go to your AMPL directory, and type ./ampl
at the system prompt. Then you will see an ampl: prompt and can proceed to type AMPL commands. By default, AMPL model
and data
statements will refer to files that you have saved in your AMPL folder; you can instead read from the models
folder of AMPL book examples (which is part of the installation) by giving the command option ampl_include models;
. Be sure to choose a solver, by giving a command of the form option solver ./xxx;
with xxx replaced by the name of the solver that you wish to run.
To install: Download the distribution archive file, amplide.macosx64.tgz. Double-click this file’s icon to extract its contents. When the extraction is complete you will see a folder named amplide.macosx64
. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
Next, you will need to confirm to macOS that your AMPL software is safe to run. Double-click your AMPL folder to open it, and then follow these steps:
ampl.command
icon, and select Open in the menu that pops up.ampl:
in the last line in the window. You can then terminate the window, by clicking the red button at the upper left. (If a box containing a warning message Do you want to terminate running processes in this window? pops up, click Terminate in that box.)To run: In your AMPL folder (created by the installation steps), double-click the Amplide
application (with a black cat’s-head icon). A small “AMPL IDE” window will appear while the program is being loaded, after which the full IDE application window will open. (The first time you open the AMPL IDE, you might see a few “Amplide would like to access files” boxes at startup; click the OK button in each box to dismiss these.)
Now you can begin using AMPL. To get started with the AMPL IDE interface, choose Help Contents from the Help menu at the top of the application window.
To install: Download the distribution archive file, ampl.macosx64.tgz. Double-click this file’s icon to extract its contents. When the extraction is complete you will see a folder named ampl.macosx64
. This will be your AMPL folder; optionally you may rename it and you may move it to any convenient location on your computer.
Next, you will need to confirm to macOS that your AMPL software is safe to run. Double-click your AMPL folder to open it, and then follow these steps:
ampl.command
icon, and select Open in the menu that pops up.ampl:
in the last line in the window. You can then terminate the window, by clicking the red button at the upper left. (If a box containing a warning message Do you want to terminate running processes in this window? pops up, click Terminate in that box.)To run: Click on the magnifying glass at the top right of your screen, enter terminal
in the Spotlight Search window, and double-click on the Terminal icon to open a Mac Terminal window. Use the cd
command to go to your AMPL folder; for example if your AMPL folder is ampl.macosx64 on your desktop, type cd Desktop/ampl.macosx64
. Then type ./ampl
; you will see an ampl: prompt and can proceed to type AMPL commands. By default, AMPL model
and data
statements will refer to files that you have saved in your AMPL folder; you can instead read from the models
folder of AMPL book examples (which is part of the installation) by giving the command option ampl_include models;
. Be sure to choose a solver, by giving a command of the form option solver ./xxx;
with xxx replaced by the name of the solver that you wish to run.