AMPL, an acronym for "A Mathematical Programming Language", is an algebraic modeling language for describing and solving high-complexity problems for large-scale mathematical computation (i.e. large-scale optimization and scheduling-type problems) . It was developed by Robert Fourer, David Gay and Brian Kernighan at Bell Laboratories. AMPL does not solve problems directly; instead, it calls appropriate external solvers (such as CPLEX, FortMP, MINOS, IPOPT, SNOPT, KNITRO, and so on) to obtain solutions. Problems are passed to solvers as nl files.
One particular advantage of AMPL is the similarity of its syntax to the mathematical notation of optimization problems. This allows for a very concise and readable definition of problems in the domain of optimization. Many modern solvers available on the NEOS  server hosted at the Argonne National Laboratory accept AMPL input. According to the NEOS statistics AMPL is the most popular format for representing mathematical programming problems.
AMPL is available for many popular 32- and 64-bit platforms including Linux, Mac OS X and Windows. It is a proprietary software currently maintained by AMPL Optimization LLC. However there exist several online services   providing free modeling and solving facilities using AMPL. Also a free student version with limited functionality is available .
Optimization problems supported
AMPL handles a wide range of problem types, among them:
* Linear programming
A transportation problem from George Dantzig is used to provide a sample AMPL model. This problem finds the least cost shipping schedule that meets requirements at markets and supplies at factories.
Dantzig, G B, Chapter 3.3. In Linear Programming and Extensions. Princeton University Press, Princeton, New Jersey, 1963.
# Capacity of plant p in cases
# Demand at market m in cases
# Distance in thousands of miles
# Freight in dollars per case per thousand miles
# Transport cost in thousands of dollars per case
# Shipment quantities in cases
# Total transportation costs in thousands of dollars
# Observe supply limit at plant p
# Satisfy demand at market m
set Plants := seattle san-diego;
param Capacity :=
param Demand :=
param Distance : new-york chicago topeka :=
param Freight := 90;
1. ^ Fourer, Robert; David M. Gay, Brian W. Kernighan (2002). AMPL: A Modeling Language for Mathematical Programming. Duxbury Press. ISBN 978-0534388096.
* AMPL home page