AMPL features a mix of declarative and imperative programming styles. Formulating optimization models occurs via declarative language elements such as sets, scalar and multidimensional parameters, decision variables, objectives and constraints, which allow for concise description of most problems in the domain of mathematical optimization.
Procedures and control flow statements are available in AMPL for
To support re-use and simplify construction of large-scale optimization problems, AMPL allows separation of model and data.
AMPL supports a wide range of problem types, among them:
AMPL invokes a solver in a separate process which has these advantages:
Interaction with the solver is done through a well-defined nl interface.
AMPL is available for many popular 32 & 64-bit operating systems including Linux, macOS, Solaris, AIX, and Windows.5 The translator is proprietary software maintained by AMPL Optimization LLC. However, several online services exist, providing free modeling and solving facilities using AMPL.67 A free student version with limited functionality and a free full-featured version for academic courses are also available.8
AMPL can be used from within Microsoft Excel via the SolverStudio Excel add-in.
The AMPL Solver Library (ASL), which allows reading nl files and provides the automatic differentiation, is open-source. It is used in many solvers to implement AMPL connection.
This table present significant steps in AMPL history.
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.17
Here is a partial list of solvers supported by AMPL:18
Fourer, Robert; Gay, David M; Kernighan, Brian W (2003). AMPL: a modeling language for mathematical programming. USA: Duxbury Press/Brooks/Cole Publishing Company. ISBN 978-0-534-38809-6. 978-0-534-38809-6 ↩
"Position Available". Archived from the original on 11 September 2011. Retrieved 29 July 2011. https://web.archive.org/web/20110911191129/http://www.ampl.com/OPENINGS/2011July.html#Product ↩
"About". Retrieved 11 August 2015. http://neos-guide.org/About/ ↩
Fourer, Robert; Gay, David M. (2002). "Extending an Algebraic Modeling Language to Support Constraint Programming". INFORMS Journal on Computing. 14 (4): 322–344. CiteSeerX 10.1.1.8.9699. doi:10.1287/ijoc.14.4.322.2825. /wiki/Robert_Fourer ↩
"Platforms". AMPL Optimizations Inc. Archived from the original on 14 May 2022. Retrieved 1 November 2019. https://web.archive.org/web/20220514181833/https://ampl.com/products/platforms/ ↩
"NEOS Server for Optimization". Retrieved 11 August 2015. http://www.neos-server.org/neos/ ↩
"Try AMPL!". Retrieved 11 August 2015. http://www.ampl.com/TRYAMPL/ ↩
"AMPL Downloads". Archived from the original on 26 May 2015. Retrieved 11 August 2015. https://web.archive.org/web/20150526013237/http://www.ampl.com/DOWNLOADS/index.html ↩
Fourer, Robert; Gay, David M.; Kernighan, Brian W. (1990). "A Modeling Language for Mathematical Programming" (PDF). Management Science. 36 (5): 519–554–83. doi:10.1287/mnsc.36.5.519. /wiki/Robert_Fourer ↩
INFORMS. "ICS - INFORMS" (PDF). Archived from the original (PDF) on 7 October 2006. Retrieved 11 August 2015. https://web.archive.org/web/20061007164141/http://computing.society.informs.org/pdf/GreenbergHistory.pdf ↩
"Google Groups". https://groups.google.com/group/ampl ↩
INFORMS. "INFORMS Impact Prize". Archived from the original on 22 October 2013. Retrieved 11 August 2015. https://web.archive.org/web/20131022091250/https://www.informs.org/Blogs/E-News-Blog/INFORMS-Impact-Prize ↩
"The AMPL Book: A comprehensive guide to building optimization models, for beginning or experienced users". Retrieved 5 March 2021. https://ampl.com/learn/ampl-book/ ↩
"Google Groups". Retrieved 11 August 2015. https://groups.google.com/forum/#!topic/ampl/y1FJcYZz-_Q ↩
Dantzig, George (2016) [1963]. "3. Formulating a Linear Programming Model". Linear Programming and Extensions. Princeton University Press. pp. 32–62. ISBN 978-1-4008-8417-9. 978-1-4008-8417-9 ↩
"Solvers - AMPL". Archived from the original on 27 February 2014. Retrieved 21 January 2018. https://web.archive.org/web/20140227083015/http://www.ampl.com/solvers.html ↩
"Couenne". Archived from the original on 29 October 2013. Retrieved 27 October 2013. https://web.archive.org/web/20131029190415/https://projects.coin-or.org/Couenne ↩
"mp/solvers/ilogcp at master · ampl/mp · GitHub". GitHub. Retrieved 11 August 2015. https://github.com/ampl/mp/tree/master/solvers/ilogcp ↩
"mp/solvers/gecode at master · ampl/mp · GitHub". GitHub. Retrieved 11 August 2015. https://github.com/ampl/mp/tree/master/solvers/gecode ↩
"mp/solvers/jacop at master · ampl/mp · GitHub". GitHub. Retrieved 11 August 2015. https://github.com/ampl/mp/tree/master/solvers/jacop ↩
"LGO - AMPL". Retrieved 11 August 2015. http://ampl.com/products/solvers/solvers-we-sell/lgo/ ↩
"Using lpsolve from AMPL". Retrieved 11 August 2015. http://www.ampl.com/SOLVERS/GUIDE.lpsolve.html ↩
"mp/solvers/sulum at master · ampl/mp · GitHub". GitHub. Retrieved 11 August 2015. https://github.com/ampl/mp/tree/master/solvers/sulum ↩
"GLPK official site". Retrieved 17 September 2020. https://www.gnu.org/software/glpk/ ↩