TRY NOW!
AMPL > >Products > >AMPL IDE

AMPL IDE

  Version 3.5 (Release Notes) has been released.  

Our Integrated Development Environment, AMPL IDE, provides a simple and straightforward enhanced modeling interface for AMPL users. Commands are typed at an AMPL prompt in the usual way, and all installed solvers can be accessed. Advantages include:

  • Integration of the AMPL command and editing windows
  • Syntax highlighting for model and data files
  • Quick links to error locations
  • Consistent appearance and operation across platforms

AMPL IDE supports all widely used versions of Windows, Linux, and macOS. It is easily set up as an extension of any standard AMPL command-line installation, after which it is available through the new amplide application. The plain command-line ampl application remains available for batch runs and other special needs.

If you have not installed the AMPL program yet, do that first. Then check your installation to see whether it includes a program named amplide or amplide.exe; under Windows and macOS the program will have a black cat’s-head icon. If your installation does contain the amplide program, then you do not need to return to this page. Double-click the program file to start the AMPL IDE under Windows or macOS; use the command ./amplide to start the AMPL IDE under Linux.

If you have installed the AMPL program but have not yet installed the AMPL IDE, then return here to download and install the IDE add-on package. Follow the instructions below that correspond to your operating system:

These instructions add AMPL IDE to an existing installation of command-line AMPL and solvers. Contact us at support@ampl.com if you need help completing the AMPL or IDE setup.

AMPL IDE is developed in partnership with Optirisk Systems, who offer extended versions for support of stochastic and robust optimization.

Microsoft Windows

Locate the folder on your computer that contains the program file ampl.exe (as well as other AMPL files). This is the “AMPL folder” that will be used for the AMPL IDE installation.

Determine whether you installed a 32-bit or a 64-bit version of AMPL. This information appeared in the name of the installation file that you downloaded, and is also found in the message displayed by the AMPL command “option version;”.

Now download an AMPL IDE zipfile, by using the appropriate link below:

Double-click the zipfile icon, or apply an unzip utility, to extract the contents of the zipfile. When the extraction is complete you will see a folder named amplide (possibly inside another folder named amplide.win32 or amplide.win64). Move the amplide folder into your AMPL folder, by dragging or cutting and pasting the amplide folder icon.

Double-click the amplide folder icon to open the folder, and then double-click the amplide.exe file icon to start AMPL IDE. 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.

Linux

Locate the directory on your computer that contains the executable file ampl (as well as other AMPL files). This is the “AMPL directory” that will be used for the AMPL IDE installation.

Determine whether you installed a 32-bit or a 64-bit version of AMPL. This information appeared in the name of the installation file that you downloaded, and is also found in the message displayed by the AMPL command option version;.

Now download an AMPL IDE package, by using the appropriate link below:

Extract the contents of the package by typing the command

  • tar xzf amplide.linux32.tgz (for 32-bit AMPL)
  • tar xzf amplide.linux64.tgz (for 64-bit AMPL)

When the extraction is complete you will see a directory named amplide. Move this amplide directory to your AMPL directory, so that it appears as a subdirectory of your AMPL directory.

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.

macOS

Locate the folder on your computer that contains the icon for the ampl program (as well as other AMPL files). This is the “AMPL folder” that will be used for the AMPL IDE installation.

Now download the AMPL IDE package file, by using this link:

Double-click this file’s icon to extract its contents. When the extraction is complete you will see an application named amplide. Drag the amplide application icon into your AMPL folder.

Double-click the amplide application icon to start AMPL IDE. A small “AMPL IDE” window will appear while the program is being loaded, and then the full IDE application window will open.

If you get a message that the amplide program “can’t be opened” because it “was not downloaded from the Mac App Store” or it “is from an unidentified developer,” then you will need to tell Mac OS X that the program is from a trusted source, by following these steps:

  • Control-click or right-click the amplide icon.
  • Select Open from the top of contextual menu that appears.

This step will only be necessary the first time that you open the AMPL IDE. After that you can open it in the usual way, by double-clicking the amplide application icon.

To get started using AMPL IDE, choose Help Contents from the Help menu at the top of the application window.

 

The AMPL IDE is subject to a license under patent 6,166,736