Quick Start Instructions for AMPL

From Svenleyffer
Jump to navigation Jump to search

QUICK-START INSTRUCTIONS FOR INSTALLING AND RUNNING AMPL & SOLVERS

Windows systems

To install: Create a folder where you will put all your AMPL-related files. Copy the distribution zip file, ampl_mswin32.zip or ampl_mswin64.zip, to your folder. Then "unzip" this file to place all of the individual AMPL program files into your folder; usually the unzip process can be started by double-clicking on the zip file.

To run immediately: Double-click "sw.exe" 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 the MINOS solver will be invoked by AMPL's "solve;" command; to switch to another solver, use a command of the form "option solver xxx;" where xxx is a solver that you have been instructed to use.

To run in an integrated application: Follow the Windows instructions at www.ampl.com/products/ide/ to install the AMPL IDE.

Linux systems

To install: Create a directory where you will put all your AMPL-related files. Copy the distribution zipfile, ampl_linux-intel32.zip or ampl_linux-intel64.zip, to your directory. Then "unzip" this file to place all of the individual AMPL program files into your directory; most Linux systems provide an unzip command for this purpose, or you can use the decompression option of the zip command.

To run immediately: Open 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 the MINOS solver will be invoked by AMPL's "solve;" command; to switch to another solver, use a command of the form "option solver xxx;" where xxx is a solver that you have been instructed to use.

To run in an integrated application: Follow the Linux instructions at www.ampl.com/products/ide/ to install the AMPL IDE.

MacOS Systems

To install: Create a folder where you will put all your AMPL-related files. Copy the distribution zipfile, ampl_macosx32.zip or ampl_macosx64.zip, to your folder. Then "unzip" this file to place all of the individual AMPL program files into your folder; usually the unzip process can be started by double-clicking on the zipfile.

To run immediately: Open a Mac terminal window, use "cd" to go to your AMPL folder, and type "./ampl" at the system prompt. Then you will see an "ampl:" prompt and can proceed to type AMPL commands. By default the MINOS solver will be invoked by AMPL's "solve;" command; to switch to another solver, use a command of the form "option solver './xxx';" where xxx is a solver that you have been instructed to use.

To run in an integrated application: Follow the MacOS instructions at www.ampl.com/products/ide/ to install the AMPL IDE.