highs (35 notebooks)#
AMPL - solve multiple models in parallel#
Description: Solve multiple AMPL models in parallel in Python with amplpy and the multiprocessing modules.
Author: Nicolau Santos (8 notebooks) <nicolau@ampl.com>
AMPL - spreadsheet handling with amplxl#
Description: Basic example of reading/writing data into/from a .xlsx spreadsheet with amplxl
Author: Nicolau Santos (8 notebooks) <nicolau@ampl.com>
AMPL Bin Packing Problem with GCG#
Description: Dantzig-Wolfe decomposition for Bin Packing Problem with GCG
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
Aircrew trainee scheduling with seniority constraints#
Description: Aircrew trainee scheduling with simpler seniority modeling
Tags: trainee-scheduling, aircrew-scheduling, employee-scheduling, seniority-constraints, seniority-ranking, preferential-bidding-system, multiple-objectives, lexicographic-optimization, amplpy
Author: Gleb Belov (7 notebooks) <gleb@ampl.com>
CP-style scheduling model with the numberof operator, solved by a MIP solver#
Description: Scheduling model with the Constraint Programming numberof operator, solved with a MIP solver. New MIP solver drivers based on the [MP library](https://amplmp.readthedocs.io/) enable CP-style modeling.
Tags: ampl-only, constraint-programming
Author: Gleb Belov (7 notebooks) <gleb@ampl.com>
Containers scheduling#
Description: Scheduling model for harbor operations. It is a problem with dependences between containers, which should be dispatch the fastest possible. We are using the MP solver interfaces to model a complex system using techniques from Constraint Programming, such as indicator constraints, and logical or and forall operators. After the model is written, a couple instances are presented and Highs/Gurobi MIP solvers are used to tackle the problem.
Dual-Donor Organ Exchange problem#
Description: Most transplants from living donors require only one donor for each procedure. There are, however, exceptions, including dual-graft liver transplantation, bilateral living-donor lobar lung transplantation, and simultaneous liver-kidney transplantation. For each of these procedures, grafts from two compatible living donors are transplanted. As such, these procedures are more involved from an organizational perspective than those with only one donor. Unfortunately, one or both of the donors can often be biologically incompatible with the intended recipient, precluding the transplantation.
Dynamic routing example#
Description: Example of interactive optimization with GUI using AMPL and Google Maps
Author: Christian Valente (5 notebooks) <ccv@ampl.com>
Employee Scheduling Optimization#
Description: Employee scheduling model from the Analytical Decision Modeling course at the Arizona State University.
Hospitals-Residents MIP#
Description: hospitals-residents problem with ties problem solved with ampl and highs
Labs scheduling#
Description: Model for laboratories scheduling. Some labs are needed to handle requests from researchers, and departments have to assign labs and locations to the requests.
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 (7 notebooks) <gleb@ampl.com>
Network design with redundancy#
Description: Design of an electricity transportation network provides enough redundancy, so that a break of one component does not prevent any user from receiving electricity. The approach also works for similar distribution networks and can potentially be used in the design of military logistic networks.
Tags: electric-grid, military
Oil refinery production optimization#
Description: In this document, we present an enhanced approach to oil refining optimization for improved decision-making.
Tags: oil-production, production-optimization, profitability, refinery, mip, highs, industry, json, spreadsheet, excel
Oil refinery production optimization (+PowerBI)#
Description: In this document, we present an enhanced approach to oil refining optimization by integrating Power BI for improved decision-making and data visualization. For a full description of the model, you can read more about it [here](ampl/colab.ampl.com).
Oil refinery production optimization (ampl-only version)#
Description: In this document, we present an enhanced approach to oil refining optimization for improved decision-making.
Optimal Power Flow with AMPL and Python - DC Power Flow#
Description: Optimal Power Flow
Author: Nicolau Santos (8 notebooks) <nicolau@ampl.com>
Optimization of Reinforced Concrete Production and Shipment: A Conveyor-Based Manufacturing and Curing Model#
Optimizing the number of staff in a chain of stores#
Plot feasible region#
Description: Plot the feasible region and optimal solution for a simple two variable model using AMPL’s Python API.
Profit Maximization for Developers: Optimizing Pricing, Marketing, and Investment Strategies#
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.#
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
Scheduling Multipurpose Batch Processes using State-Task Networks in Python#
Description: The State-Task Network (STN) is an approach to modeling multipurpose batch process for the purpose of short term scheduling. It was first developed by Kondili, et al., in 1993, and subsequently developed and extended by others.
Author: Jeffrey C. Kantor, Filipe Brandão (16 notebooks) <fdabrandao@gmail.com>
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://mp.ampl.com/) for more information).
Author: Christian Valente (5 notebooks) <ccv@ampl.com>
Solution check: discontinuous objective function#
Description: Pathological examples to illustrate MP solution checker and settings
Author: Gleb Belov (7 notebooks) <gleb@ampl.com>
Solving a nonogram puzzle#
Description: Model for solving nonogram puzzles autogenerated using nonogram.mod, nonogram.dat and nonogram.run.
Solving simple stochastic optimization problems with AMPL#
Description: Examples of the Sample Average Approximation method and risk measures in AMPL
Author: Nicolau Santos (8 notebooks) <nicolau@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 illustrates the power generation problem using AMPL. The original version featured the Gurobi solver. By default, this notebook uses the HiGHS and CBC solvers.
VPSolver: Cutting & Packing Problems#
Description: Solving cutting & packing problems using arc-flow formulations
Warehouse location and transport#
Description: Model for warehouse allocation. Farms (suppliers) send feedstock to warehouses, and later on, those warehouses send it to a production plant. The problem involves modeling a storage facility location problem with a transportation component to the final plant.