AMPL models and example files

Explore the various models available for education and teaching purposes. You can now also find even more models on the collaborative model repository. 

AMPL Book Example Files

Enhance your education with real world modeling examples. For your convenience, you can copy and download all of the model, data and script files that appear as examples in the AMPL Book (second edition).

Logic and Constraint Programming Extensions

This is a preliminary set of examples to offer some starting points for experimenting with AMPL’s “logic” and constraint programming interfaces.

Additional Scripts and Loops 1

Writing “scripts” in the AMPL command language All examples use steelT.mod as the model file and the steelT.dat as the data file.

Additional Scripts and Loops 2

Implementing algorithms through AMPL scripts.