Skip to content

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: <required>

Tags: <required>, <>, <>

Notebook author: <required>

Model author: <optional>

License: <optional>

References: <optional>
  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/<github_username>/.

  3. 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 Kaggle Gradient SageMaker
AMPL - solve multiple models in parallel multiproc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL - spreadsheet handling with amplxl amplxl.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Bin Packing Problem with GCG bpp.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Capacitated p-Median Problem with GCG cpmp.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Christmas Model created by ChatGPT christmas.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 1/6 -- Capacitated Facility Location Problem 1_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 2/6 -- Stochastic Capacitated Facility Location Problem 2_stoch_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 3/6 -- Benders Decomposition via AMPL scripting 3_benders_stoch_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 4/6 -- Benders Decomposition via PYTHON scripting 4_benders_in_python_stoch_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 5/6 -- Parallelizing Subproblem Solves in Benders Decomposition 5_benders_parallel_stoch_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Development Tutorial 6/6 -- Implementing Benders Decomposition with ampls 6_benders_ampls_stoch_floc.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
AMPL Model Colaboratory Template colab.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Aircrew trainee scheduling with seniority constraints tip8_aircrew_trainees_seniority.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: Economic equilibria economic_eq_lecture.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: Transshipment problem net1.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: diet diet.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: prod prod.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: steel steel.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Book Example: transp transp.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
CP-style scheduling model with the numberof operator, solved by a MIP solver sched_numberof.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Capacity expansion of power generation capacity_expansion.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Containers scheduling containers_scheduling.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Debugging Model Infeasibility debug_infeas.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Diet lecture diet_case_study.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Diet model with Google Sheets gspread.ipynb Open In Colab
Dual-Donor Organ Exchange problem Dual-Donor_Organ_Exchange.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Dynamic routing example Dynamic_routing_example.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Efficient Frontier with Google Sheets efficient_frontier.ipynb Open In Colab
Employee Scheduling Optimization Employee_Scheduling.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Financial Portfolio Optimization with amplpy amplpyfinance_vs_amplpy.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Google Hashcode 2022 practice_problem.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Hospitals-Residents MIP hospitals_residents.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Hydrothermal Scheduling Problem with Conic Programming hydrothermal.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Introduction to Linear and Integer Programming intro_to_linear_prorgramming.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Introduction to Mathematical Optimization intro_to_optimization.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Jupyter Notebook Integration magics.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Labs scheduling labs_scheduling.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Largest small polygon largest_small_polygon.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Logistic Regression with amplpy logistic_regression.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Magic sequences magic_sequences.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Multicommodity transportation problem multmip1.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
N-Queens nqueens.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
NFL Team Rating NFL_Team_Rating.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Network Linear Programs network.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Network design with redundancy electric_grid_with_redundancy.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Nonlinear transportation model nltrans_lecture.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Nonlinear transportation problem example nltrans.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Oil refinery production optimization oil_refining.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Oil refinery production optimization (+PowerBI) oil_refining_powerbi.ipynb Open In Colab
Oil refinery production optimization (ampl-only version) oil_refining_ampl_only.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimal Power Flow with AMPL and Python - Bus Injection Model (BIM) opf2.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimal Power Flow with AMPL and Python - Bus Injection Model (BIM) with controllable-phase shifting transformers and tap-changing transformers opf4.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimal Power Flow with AMPL and Python - DC Power Flow opf3.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimal Power Flow with AMPL and Python - conventional Power Flow opf1.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimal Power Flow with AMPL and Python - data management opf0.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimization Methods in Finance: Chapter 3 finance_opt_example_3_1.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimization of Reinforced Concrete Production and Shipment: A Conveyor-Based Manufacturing and Curing Model Conveyor_curing.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimization of an TV advertising campaign based on TRP, GRP indicators TV_Advertisement_campaign_GRP_TRP.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimization of an advertising campaign for launching a new product on the market Advertising_campaign_colab.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimize your Christmas Tree to Global Optimality christmas_tree.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Optimizing the number of staff in a chain of stores staff_schedule.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
P-Median problem p_median.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Pattern Enumeration pattern_enumeration.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Pattern Generation pattern_generation.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Plot feasible region plot_feasible_region.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Pricing and target-market pricing_and_target_market.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Production Model production_model.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Production model production_model.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Profit Maximization for Developers: Optimizing Pricing, Marketing, and Investment Strategies building_developer.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Project management: Minimizing the cost of implementing an investment project, taking into account the costs and risks of completing tasks and penalties for late fulfillment of obligations. Investment_project.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Quick Start using Pandas dataframes pandasdiet.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Quick Start using lists and dictionaries nativediet.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Robust Linear Programming with Ellipsoidal Uncertainty tip6_robust_linear_programming.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Roll Cutting - Revision 1 & 2 pattern_tradeoff.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Scheduling Multipurpose Batch Processes using State-Task Networks in Python batch_processessing.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Simple sudoku solver using logical constraints (with GUI) sudoku.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Solution check: discontinuous objective function sol-check.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Solving a nonogram puzzle nonogram.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Solving simple stochastic optimization problems with AMPL newsvendor.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Steel industry problem steel_lecture.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Sudoku Generator sudoku_gen.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Supply chain network supply_chain_simple_routes.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Transportation problem transp_lecture.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Travelling Salesman Problem with subtour elimination tsp_simple_cuts_generic.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Unit Commitment for Electrical Power Generation unit_commitment.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
VPSolver: Cutting & Packing Problems vpsolver.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
Warehouse location and transport warehouse_location.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab
amplpy setup & Quick Start quickstart.ipynb Open In Colab Kaggle Gradient Open In SageMaker Studio Lab

License

MIT


Copyright © 2022-2023 AMPL Optimization inc. All rights reserved.