AMPL Book Chapters#

AMPL: A Modeling Language for Mathematical Programming
by Robert Fourer, David M. Gay, and Brian W. Kernighan Second edition
517 + xxi pp., ISBN 0-534-38809-4
The AMPL Book PDF

Warning

The original AMPL book does not reflect many of the latest features available in AMPL. For example, it doesn’t cover our new high-level modeling constructs that are automatically reformulated. Additionally, for modern data transfer and programmatic interaction with your models, we recommend using APIs such as our widely used Python API.

To explore examples showcasing these recent features, please visit:

Title Pages
Table of Contents
Introduction

  1. Production Models: Maximizing Profits

  2. Diet and Other Input Models: Minimizing Costs

  3. Transportation and Assignment Models

  4. Building Larger Models

  5. Simple Sets and Indexing

  6. Compound Sets and Indexing

  7. Parameters and Expressions

  8. Linear Programs: Variables, Objectives and Constraints

  9. Specifying Data

  10. Database Access

  11. Modeling Commands

  12. Display Commands

  13. Command Scripts

  14. Interactions with Solvers

  15. Network Linear Programs

  16. Columnwise Formulations

  17. Piecewise-Linear Programs

  18. Nonlinear Programs

  19. Complementarity Problems

  20. Integer Linear Programs

Appendix. AMPL Reference Manual
Index