TRY NOW!
AMPL > >Try AMPL > >AMPL for Courses > >Student Installation Instructions

AMPL COURSE PACKAGE INSTALLATION INSTRUCTIONS

If your course instructor gave you a special link to download AMPL optimization software,
then follow the installation instructions below.

If you did not receive a special AMPL for Courses link, then do not use the instructions on this page.
See our AMPL for Students page for other ways to get AMPL.

 

When you graduate from your bachelor’s, master’s, or PhD program,
you are entitled to use AMPL and 9 commercial solvers FREE for one year
for commercial purposes and your research.

Apply for your AMPL for New Graduates license here or fill out the interest form
at the bottom of the page. We will reach out when you graduate to send you your license!

 

Welcome to AMPL for Courses! It gives you access to unrestricted versions of the AMPL modeling language and system, together with many efficient solvers for a variety of problem types. Problem sizes are unrestricted, and the software will run until a preset timeout date a few weeks after your course ends.

Special AMPL for Courses download links, specific to your course, will be made available by your course instructor. Choose the instructions below that correspond to your operating system:

Follow the instructions to download and install the software and to start it up for the first time.

Microsoft Windows

To install: Download your course’s 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 in an integrated application: Inside your AMPL folder, double-click the amplide folder icon to open that folder, and then double-click the amplide.exe file (with the black cat’s-head 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, choose Help Contents from the Help menu at the top of the application window.

To run using a simple command-line interface: Double-click the sw.exe file in your AMPL folder, 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. AMPL model and data statements will refer to files that you have saved in your AMPL folder; use any plain-text editor to create and edit these files.

To optimize using either interface: Be sure to choose a solver, by giving a command of the form option solver xxx; with xxx replaced by the name of a solver that you have been instructed to use.

Linux

To install: Create a new directory in any convenient place on your filesystem; this will be your AMPL directory. Download your course’s distribution zipfile, ampl_linux-intel32.zip for the 32-bit version or ampl_linux-intel64.zip for the 64-bit version. Then “unzip” this file, using a Linux unzip command or the decompression option of the zip command, to extract its contents into your AMPL directory.

To run in an integrated application: Inside your AMPL directory, you will find a directory named amplide. Use the cd command to make amplide your current directory, and then start the AMPL IDE application 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, choose Help Contents from the Help menu at the top of the application window.

To run using a simple command-line interface: In a command window, use the cd command 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. AMPL model and data statements will refer to files that you have saved in your AMPL directory; use any plain-text editor to create and edit these files.

To optimize using either interface: Be sure to choose a solver, by giving a command of the form option solver xxx; with xxx replaced by the name of a solver that you have been instructed to use.

macOS

To install: Download your course’s distribution zipfile, ampl_macosx64.zip. 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.

To run in an integrated application: Your course will have a separate IDE distribution file amplide.app.tgz. Download this file, and double-click its icon to extract its contents. When the extraction is complete you will see an application file (with a black cat’s-head icon) named Amplide; drag the Amplide file inside your AMPL folder. Then in your AMPL folder, double-click the Amplide file 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 run using a simple command-line interface: Click on the magnifying glass at the top right of your screen, enter terminal in the Spotlight window, and 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. AMPL model and data statements will refer to files that you have saved in your AMPL folder; use any plain-text editor to create and edit these files.

To optimize using either interface: Be sure to choose a solver, by giving a command of the form option solver xxx; with xxx replaced by the name of a solver that you have been instructed to use.

 

AMPL for New Grads Interest Form

We offer a free 1-year AMPL for New Grads license for recent graduates to use AMPL after graduation. If would like to continue using AMPL after you graduate, feel free to fill out the below form and we will reach out to you with your license when you graduate.

First Name:
Last Name:
Email:
Month and Year of Anticipated Graduation:
Your university:
Your "major" or
main area of study:

What is your degree type?

Please confirm your agreement to the terms of the AMPL for New Graduates program, and click Submit. We will reach out to you when you graduate!

I confirm.