Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ampl/colab.ampl.com

Repository files navigation

AMPL Model Colaboratory

Website

https://colab.ampl.com

Contribution Guide

  1. Use the template template/colab.ipynb as base template.

  2. In the header make sure you fill the following fields:

Description:

Tags: , <>, <>

Notebook author:

Model author:

License:

References:
  1. 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.

  2. Place your notebook inside colab.ampl.com/authors//.

  3. Format the notebook with black, nbqa black colab.ipynb.

  4. 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.

Notebooks

Title GitHub Colab Deepnote Kaggle Gradient SageMaker
A Party Scheduling Problem with FICO Xpress
AMPL - solve multiple models in parallel
AMPL - spreadsheet handling with amplxl
AMPL Bin Packing Problem with GCG
AMPL Capacitated p-Median Problem with GCG
AMPL Christmas Model created by ChatGPT
AMPL Development Tutorial 1/6 -- Capacitated Facility Location Problem
AMPL Development Tutorial 2/6 -- Stochastic Capacitated Facility Location Problem
AMPL Development Tutorial 3/6 -- Benders Decomposition via AMPL scripting
AMPL Development Tutorial 4/6 -- Benders Decomposition via PYTHON scripting
AMPL Development Tutorial 5/6 -- Parallelizing Subproblem Solves in Benders Decomposition
AMPL Development Tutorial 6/6 -- Implementing Benders Decomposition with ampls
AMPL Model Colaboratory Template
Aircrew trainee scheduling with seniority constraints
Balanced Task Assignment with Inverse Cost Scaling
Battery Energy Storage System (BESS) Evaluation Model
Bilevel Markets
Bilevel Optimization Introduction
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
Containers scheduling
Debugging Model Infeasibility
Demand prediction and Optimization with scikit-learn & Amplpy
Diagnose infeasibility
Diet and Other Input Models: Minimizing Costs
Diet model with Google Sheets
Dual-Donor Organ Exchange problem
Dynamic routing example
Economic equilibria problem with PATH solver
Efficient Frontier with Google Sheets
Employee Scheduling Optimization
Enhanced Sector ETF Portfolio Optimization with Multiple Strategies in Python with AMPL
Financial Portfolio Optimization with amplpy
Formula 1 Scheduling and Routing Optimization
Google Hashcode 2022
Hospitals-Residents MIP
Hydrothermal Scheduling Problem with Conic Programming
Identifying active constraints with Ampl
Introduction to Linear and Integer Programming
Introduction to Mathematical Optimization
Jupyter Notebook Integration
Labs scheduling
Largest small polygon
Logistic Regression with amplpy
Magic sequences
MineLib in AMPL and amplpy
Minimize the Pairwise Distance Ratio for N Points
Multi-Objective Knapsack Problem with AMPLPY
Multicommodity transportation problem
N-Queens
NFL Team Rating
Network Linear Programs
Network design with redundancy
Nonlinear transportation model
Nonlinear transportation problem example
Oil refinery production optimization
Oil refinery production optimization (+PowerBI)
Oil refinery production optimization (ampl-only version)
Optimal Power Flow with AMPL and Python - Bus Injection Model (BIM)
Optimal Power Flow with AMPL and Python - Bus Injection Model (BIM) with controllable-phase shifting transformers and tap-changing transformers
Optimal Power Flow with AMPL and Python - DC Power Flow
Optimal Power Flow with AMPL and Python - conventional Power Flow
Optimal Power Flow with AMPL and Python - data management
Optimization Methods in Finance: Chapter 3
Optimization of Reinforced Concrete Production and Shipment: A Conveyor-Based Manufacturing and Curing Model
Optimization of an TV advertising campaign based on TRP, GRP indicators
Optimization of an advertising campaign for launching a new product on the market
Optimize your Christmas Tree to Global Optimality
Optimized Portfolio Optimization using EIA Data in Python with AMPL
Optimizing Procurement and Sales Strategies for a Retail Chain with Supplier Payment Schemes
Optimizing the number of staff in a chain of stores
P-Median problem
Paintshop Color Change Scheduling with FICO Xpress
Pairs Trading Strategy Optimization in Python with AMPL
Pattern Enumeration
Pattern Generation
Plot feasible region
Pooling Problem with Nonlinear and Setup Costs
Porfolio Optimization with Multiple Risk Strategies in Python with AMPL
Portfolio Optimization: Factor Model
Power Generation Portfolio Optimization
Power System Optimization with Amplpower package
Predicting and Optimizing Avocado Sales with Python + Amplpy
Pricing Optimization (Price Elasticity of Demand)
Pricing and target-market
Production Model: lemonade stand example
Production model
Profit Maximization for Developers: Optimizing Pricing, Marketing, and Investment Strategies
Project management: Minimize project costs by balancing task costs, risks, and late penalties.
Quick Start using Pandas dataframes
Quick Start using lists and dictionaries
Refinery production and shadow pricing
Retrieve Solution pool with AMPL and Gurobi
Robust Linear Programming with Ellipsoidal Uncertainty
Roll Cutting - Revision 1 & 2
Scheduling Multipurpose Batch Processes using State-Task Networks in Python
Simple sudoku solver using logical constraints (with GUI)
Smart Pipeline Diagnostics
Solution check: discontinuous objective function
Solving a nonogram puzzle
Solving simple stochastic optimization problems with AMPL
Steel industry problem
Sudoku Generator
Supply chain network
Transportation problem
Travelling Salesman Problem with subtour elimination
Unit Commitment MINLP with Knitro
Unit Commitment Problem with AMPL and Python - Power Grid Lib
Unit Commitment for Colombia's Energy Market
Unit Commitment for Electrical Power Generation
Using multiple objectives in your model
VPSolver: Cutting & Packing Problems
Vehicle Routing Problem with Fair Profits and Time Windows (VRP-FPTW)
Warehouse location and transport
Warm start solvers with snapshot
amplpy setup & Quick Start

License

MIT


Copyright (c) 2022-2025 AMPL Optimization inc. All rights reserved.

About

AMPL Model Colaboratory