https://colab.ampl.com
-
Use the template template/colab.ipynb as base template.
-
In the header make sure you fill the following fields:
Description: <required>
Tags: <required>, <>, <>
Notebook author: <required>
Model author: <optional>
License: <optional>
References: <optional>
-
Do not modify the initial two cells that take care of setup and jupyter notebook integration
to do anything other than installing packages and instantiating the ampl_notebook. You can modify
the list of modules and add more dependencies, but if you do anything else the changes may be overwritten.
-
Place your notebook inside colab.ampl.com/authors/<github_username>/.
-
Update the badges and the index as shown below before committing.
Note: The default license for every notebook is MIT unless specified otherwise in the notebook.
Updating notebook headers & index
The following commands update the README file and the index in the documentation, as well as add any new automatically created files to the repository:
$ python scripts/index.py
$ git add docs/source/
Note that the notebook headers are patched with new badges using links to the correct locations after the notebook is published.
The first two notebook cells are modified to ensure that requirements are installed and that the ampl_notebook is instantiated.
| Title |
GitHub |
Colab |
Kaggle |
Gradient |
SageMaker |
| AMPL Bin Packing Problem with GCG |
 |
 |
 |
 |
 |
| AMPL Capacitated p-Median Problem with GCG |
 |
 |
 |
 |
 |
| AMPL Christmas Model created by ChatGPT |
 |
 |
 |
 |
 |
| AMPL Model Colaboratory Template |
 |
 |
 |
 |
 |
| Book Example: Economic equilibria |
 |
 |
 |
 |
 |
| Book Example: Transshipment problem |
 |
 |
 |
 |
 |
| Book Example: diet |
 |
 |
 |
 |
 |
| Book Example: prod |
 |
 |
 |
 |
 |
| Book Example: steel |
 |
 |
 |
 |
 |
| Book Example: transp |
 |
 |
 |
 |
 |
| CP-style scheduling model with the numberof operator, solved by a MIP solver |
 |
 |
 |
 |
 |
| Capacity expansion of power generation |
 |
 |
 |
 |
 |
| Diet lecture |
 |
 |
 |
 |
 |
| Diet model with Google Sheets |
 |
 |
|
|
|
| Dual-Donor Organ Exchange problem |
 |
 |
 |
 |
 |
| Dynamic routing example |
 |
 |
 |
 |
 |
| Efficient Frontier with Google Sheets |
 |
 |
|
|
|
| Employee Scheduling Optimization |
 |
 |
 |
 |
 |
| Financial Portfolio Optimization with amplpy |
 |
 |
 |
 |
 |
| Google Hashcode 2022 |
 |
 |
 |
 |
 |
| Hospitals-Residents MIP |
 |
 |
 |
 |
 |
| Hydrothermal Scheduling Problem with Conic Programming |
 |
 |
 |
 |
 |
| Jupyter Notebook Integration |
 |
 |
 |
 |
 |
| Largest small polygon |
 |
 |
 |
 |
 |
| Logistic Regression with amplpy |
 |
 |
 |
 |
 |
| Multicommodity transportation problem |
 |
 |
 |
 |
 |
| N-Queens |
 |
 |
 |
 |
 |
| NFL Team Rating |
 |
 |
 |
 |
 |
| Network design with redundancy |
 |
 |
 |
 |
 |
| Nonlinear transportation model |
 |
 |
 |
 |
 |
| Nonlinear transportation problem example |
 |
 |
 |
 |
 |
| Optimization Methods in Finance: Chapter 3 |
 |
 |
 |
 |
 |
| Pattern Enumeration |
 |
 |
 |
 |
 |
| Pattern Generation |
 |
 |
 |
 |
 |
| Plot feasible region |
 |
 |
 |
 |
 |
| Pricing and target-market |
 |
 |
 |
 |
 |
| Production model |
 |
 |
 |
 |
 |
| Quick Start using Pandas dataframes |
 |
 |
 |
 |
 |
| Quick Start using lists and dictionaries |
 |
 |
 |
 |
 |
| Robust Linear Programming with Ellipsoidal Uncertainty |
 |
 |
 |
 |
 |
| Roll Cutting - Revision 1 & 2 |
 |
 |
 |
 |
 |
| Simple sudoku solver using logical constraints (with GUI) |
 |
 |
 |
 |
 |
| Solution check: discontinuous objective function |
 |
 |
 |
 |
 |
| Solving a nonogram puzzle |
 |
 |
 |
 |
 |
| Solving simple stochastic optimization problems with AMPL |
 |
 |
 |
 |
 |
| Steel industry problem |
 |
 |
 |
 |
 |
| Sudoku Generator |
 |
 |
 |
 |
 |
| Transportation problem |
 |
 |
 |
 |
 |
| Travelling Salesman Problem with subtour elimination |
 |
 |
 |
 |
 |
| Unit Commitment for Electrical Power Generation |
 |
 |
 |
 |
 |
| VPSolver: Cutting & Packing Problems |
 |
 |
 |
 |
 |
| amplpy setup & Quick Start |
 |
 |
 |
 |
 |
MIT
Copyright © 2022-2023 AMPL Optimization inc. All rights reserved.