Skip to content

SdotVdot/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 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 Model Colaboratory Template colab.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
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
Jupyter Notebook Integration magics.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
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 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
Optimization Methods in Finance: Chapter 3 finance_opt_example_3_1.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
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
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
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
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.

About

AMPL Model Colaboratory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.5%
  • Other 0.5%