# Modules¶

## Modules available¶

AMPL and all Solvers are now available as Python Packages. List of modules available:

Open-source:

`highs`

,`cbc`

,`coin`

(includes: CBC, Couenne, Ipopt, Bonmin),`open`

(includes all open-source solvers)NEOS Server:

`gokestrel`

(kestrel client)Commercial solvers:

`baron`

,`conopt`

,`copt`

,`cplex`

,`gurobi`

,`knitro`

,`lgo`

,`lindoglobal`

,`loqo`

,`minos`

,`mosek`

,`octeract`

,`snopt`

,`xpress`

AMPL Plugins:

`amplgsl`

(amplgsl docs),`plugins`

(amplplugins docs)

Note

On Google Colab there is a default AMPL Community
Edition license that gives you **unlimited access to AMPL
with open-source solvers** (e.g., HiGHS, CBC, Couenne, Ipopt, Bonmin)
or with commercial solvers from the NEOS Server as described in Kestrel documentation.

In the list `modules`

you need to include
`"gokestrel"`

to use the kestrel driver;
`"highs"`

for the HiGHS solver;
`"coin"`

for the COIN-OR solvers.
To use other commercial solvers, your license needs to include the commercial solver (e.g., an AMPL CE commercial solver trial).

```
# Install dependencies
!pip install -q amplpy
```

```
# Google Colab & Kaggle integration
from amplpy import AMPL, tools
ampl = tools.ampl_notebook(
modules=["coin", "highs", "gokestrel"], # modules to install
license_uuid="default") # license to use
```

Learn more: [AMPL and Solvers modules] [Solver docs]

## Notebooks grouped by modules¶

- cbc (1 notebook)
- coin (19 notebooks)
- 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
- Diet lecture
- Diet model with Google Sheets
- Google Hashcode 2022
- Multicommodity transportation problem
- Nonlinear transportation model
- Nonlinear transportation problem example
- Optimization Methods in Finance: Chapter 3
- Production model
- Steel industry problem
- Transportation problem
- Travelling Salesman Problem with subtour elimination

- cplex (2 notebooks)
- gurobi (10 notebooks)
- AMPL Christmas Model created by ChatGPT
- Book Example: Economic equilibria
- Financial Portfolio Optimization with amplpy
- Jupyter Notebook Integration
- Network design with redundancy
- Pattern Enumeration
- Pattern Generation
- Robust Linear Programming with Ellipsoidal Uncertainty
- Roll Cutting - Revision 1 & 2
- amplpy setup & Quick Start

- highs (17 notebooks)
- AMPL Christmas Model created by ChatGPT
- AMPL Model Colaboratory Template
- CP-style scheduling model with the
*numberof*operator, solved by a MIP solver - Dual-Donor Organ Exchange problem
- Dynamic routing example
- Hospitals-Residents MIP
- N-Queens
- Network design with redundancy
- Plot feasible region
- Quick Start using Pandas dataframes
- Quick Start using lists and dictionaries
- Simple sudoku solver using logical constraints (with GUI)
- Solving a nonogram puzzle
- Solving simple stochastic optimization problems with AMPL
- Sudoku Generator
- Unit Commitment for Electrical Power Generation
- VPSolver: Cutting & Packing Problems

- knitro (1 notebook)
- mosek (1 notebook)
- open (1 notebook)