Experience the All-New Python Ecosystem for Large-Scale Optimization
Natural mathematical modeling syntax + natural python integration.
Collaborate with teams
AMPL Model Colaboratory is a collection of AMPL models in Jupyter Notebooks that run on platforms such as Google Colab, Kaggle, Gradient, and AWS SageMaker.
AMPL Colaboratory >
Easy to learn and teach AMPL
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
AMPL Community Edition >
Deploy to your larger applications
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Collaborate with teams
Collaborate and model for free on Google Colab
AMPL Model Colaboratory is a collection of AMPL models in Jupyter Notebooks that run on platforms such as Google Colab, Kaggle, Gradient, and AWS SageMaker.
- Load data directly from python data structures using amplpy
- Solve with commercial and open source solvers and retrieve solution
- AMPL is free on Colab

More ways to collaborate
Kaggle >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Gradient >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
AWS SageMaker >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Streamlit >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Solve and switch with ease
All AMPL-compatible commercial and open-source solvers are available as Python Packages
AMPL Model Colaboratory is a collection of AMPL models in Jupyter Notebooks that run on platforms such as Google Colab, Kaggle, Gradient, and AWS SageMaker.
AMPL Model Colaboratory is a collection of AMPL models in Jupyter Notebooks that run on platforms such as Google Colab, Kaggle, Gradient, and AWS SageMaker.
# Install Python API for AMPL:
$ python -m pip install amplpy -upgrade
# Install solver modules:
$ python -m amplpy.modules install highs gurobi
AMPL + Python
Explore the All-New Python Ecosystem for large-scale optimization
Experience our Python API amplpy
AMPL APIs are included in all licenses. Start free today with a Community Edition license to start using amplpy.
amplpy is an interface that allows developers to access the features of AMPL from within Python.
With amplpy you can model and solve large scale optimization problems in Python with the performance of heavily optimized C code without losing model readability. The same model can be deployed on applications built on different languages by just switching the API used.
amplpy is an interface that allows developers to access the features of AMPL from within Python. For a quick introduction to AMPL see Quick Introduction to AMPL.
In the same way that AMPL’s syntax matches naturally the mathematical description of the model, the input and output data matches naturally Python lists, sets, dictionaries, pandas
and numpy
objects.
All model generation and solver interaction is handled directly by AMPL, which leads to great stability and speed; the library just acts as an intermediary, and the added overhead (in terms of memory and CPU usage) depends mostly on how much data is sent and read back from AMPL, the size of the expanded model as such is irrelevant.
With amplpy you can model and solve large scale optimization problems in Python with the performance of heavily optimized C code without losing model readability. The same model can be deployed on applications built on different languages by just switching the API used.
Learn more: [Python API Documentation]
Deploy to your greater applications
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Free, full-featured AMPL
No limitations on the number of variables or constraints. AMPL supports models with millions of variables and constraints, while still solving at lightning speed.
Worlds most popular solvers
AMPL sells the world's most powerful solvers used by the top performing companies world-wide.
Flexible solver prices
You can now pay for solvers on a subscription or purchase + maintenance pricing system for even more flexibility and ease of getting started.
Simple to obtain
Fill out a simple form in the License Portal. We will contact you to set up your contract and send you your downloadable license file.
Single-User License
Your license can only be used by one user, the person who has qualified, and can be used one machine at a time.
Not dependent on the internet
The AMPL system included in every license and bundle
All AMPL licenses provide you with the powerful optimization system of writing AMPL models with our IDE, allows you to connect your data from databases, spreadsheets and CSV files
AMPL IDE
AMPL IDE is a ready-to-go visual development environment with built-in controls for optimization model development and testing.
Data Connectors
Integrate your optimization models with spreadsheet and relational sources, locally or in the cloud. AMPL’s table handlers establish fast connections for data input and result output.
Solver Connections
Try out the features of on all the best solvers, without changing your model or data. AMPL’s standard interface lets you focus first on modeling and then choose the optimization engine that meets your needs.
APIs
Build optimization into your enterprise systems or software products, using AMPL’s application programming interfaces. AMPL offers fast connections to Python, R, C++, C#, MATLAB, and Java, while maintaining your model in its
original, readable form.
Extended Function Library
This library extends AMPL with over 300 functions chosen from the GNU Scientific Library, including scientific, statistical, and utility functions of many kinds. Once installed and declared, these functions may be applied to any arguments anywhere in an AMPL model or script.
Education Materials
Master the AMPL language and system quickly with our introductory materials, examples, and documentation. The AMPL book provides a complete tutorial introduction (and it’s great for teaching, too).
Documentation
Extensive documentation for newcomers and experts alike. Learn how to install, use, integrate and deploy AMPL models and applications.
Community
Join the conversation in our support forum at discuss.ampl.com. Our expert technical support team frequently provides new content and answers your questions.
Get started with Python
Get in touch – we’re here to help! Or create a free Community Edition account to get started right away.