# amplpy¶

## AMPL Christmas Model created by ChatGPT¶

Description: Christmas model generated by ChatGPT

## AMPL Model Colaboratory Template¶

Description: Basic notebook template for the AMPL Colab repository

## Diet model with Google Sheets¶

Description: Diet model using Google Sheets

## Dynamic routing example¶

Description: Example of interactive optimization with GUI using AMPL and Google Maps

## Efficient Frontier with Google Sheets¶

Description: Efficient Frontier example using Google Sheets

## Financial Portfolio Optimization with amplpy¶

Description: Financial Portfolio Optimization with amplpy and amplpyfinance

## Google Hashcode 2022¶

Description: Google Hashcode 2022 Practice Problem

## Hospitals-Residents MIP¶

Description: hospitals-residents problem with ties problem solved with ampl and highs

## Jupyter Notebook Integration¶

Description: Jupyter Notebook Integration with amplpy

## Largest small polygon¶

Description: Notebook related to the Largest Small Polygon Problem

## N-Queens¶

Description: How can N queens be placed on an NxN chessboard so that no two of them attack each other?

Author: Gleb Belov (3 notebooks) <gleb@ampl.com>

## Optimization Methods in Finance: Chapter 3¶

Description: Optimization Methods in Finance: Bond Dedication Problem.

## Pattern Enumeration¶

Description: Pattern enumeration example with amplpy

## Pattern Generation¶

Description: Pattern generation example with amplpy

## Quick Start using Pandas dataframes¶

Description: Quick Start using Pandas dataframes to load and retrieve data

## Quick Start using lists and dictionaries¶

Description: Quick Start using lists and dictionaries to load and retrieve data

## Roll Cutting - Revision 1 & 2¶

Description: Pattern tradeoff example with amplpy

## Simple sudoku solver using logical constraints (with GUI)¶

Description: Simple sudoku model with two formulations: as a Constraint Programming problem using the

*alldiff*operator and as a MIP. Note that the CP formulation is more natural but it needs a solver supporting logical constraints or a MIP solver with automatic reformulation support (see [here](https://amplmp.readthedocs.io/) for more information).## Solving simple stochastic optimization problems with AMPL¶

Description: Examples of the Sample Average Approximation method and risk measures in AMPL

Author: Nicolau Santos (1 notebook) <nfbvs@ampl.com>

## Sudoku Generator¶

Description: Generate Sudoku boards with unique solution via iterative method and mip formulation.

## Unit Commitment for Electrical Power Generation¶

Description: This notebook is based on the following [notebook](https://colab.research.google.com/github/Gurobi/modeling-examples/blob/master/electrical_power_generation_1_2/electrical_power_1_gcl.ipynb) and illustrates the power generation problem using AMPL. The original version featured the Gurobi solver. By default, this notebook uses the HiGHS and CBC solvers.

## amplpy setup & Quick Start¶

Description: amplpy setup and quick start