AMPL offers superior support by our development and technical support teams.
Contact us for general queries, partnerships, and more.
We can help you find the license and offering that works best for your situation.
AMPL offers superior support by our development and technical support teams.
Contact us for general queries, partnerships, and more.
We can help you find the license and offering that works best for your situation.
Experience the All-New Python Ecosystem for Large-Scale Optimization
Natural mathematical modeling syntax + natural python integration.
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.
Bring optimization to your courses easily with models on Google Colab, or a free, easily distributed AMPL for Courses license.
Deployment is easy with solvers now available as python packages. Deploy in the cloud using Docker containers, or with options such as cloud functions (e.g. AWS Lambda and Azure Functions)
The amplpy interface allows developers to access the features of AMPL from within Python. With amplpy you can model and solve large-scale optimization problems in Python leveraging the performance of heavily optimized C code without losing model readability.
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.
Now available as Python Packages for Windows, Linux, and macOS. Easy to install in just a few lines of code.
# Install Python API for AMPL
$ python -m pip install amplpy --upgrade
# Install HiGHS and Gurobi (AMPL is installed automatically with any solver)
$ python -m amplpy.modules install highs gurobi
# Activate your license (e.g., free https://ampl.com/ce license)
$ python -m amplpy.modules activate
# Confirm that the license is active
$ python -m amplpy.modules run ampl -vvq
# Import in Python
$ python
>>> from amplpy import AMPL
>>> ampl = AMPL() # instantiate AMPL object
AMPL on Google Colab is enabled with a default Community Edition license to allow freedom to model without limitations on variables or constraints for personal, academic, and commercial prototyping purposes. Model with open-source solvers or activate your own Community Edition license for commercial solver trials.
Load data directly from python data structures using amplpy
Solve with commercial and open-source solvers and retrieve your solution. Switch out solvers in one line of code and solve again for a new solution.
Build and share data apps quickly with Streamlit – no front-end experience necessary.
Not just for Google Colab, our collection of AMPL models in Jypyter Notebooks run in Kaggle, Gradient, and AWS Sagemaker.
AMPL APIs are included in all licenses. Start free today with a Community Edition license to start using amplpy.
AMPL APIs are included in all licenses. Start free today with a Community Edition license to start using amplpy.
Getting started with AMPL is easy – with our documentation, free licenses, AMPL modeling book, and tutorial (coming soon!)