# AMPL Models

Jump to navigation
Jump to search

**Lectures 1 & 2**

- Model1.mod A First Simple AMPL Model
- diet.mod Example model from AMPL and diet.dat example data file from AMPL
- SvenTravel.mod Example of sets and subsets

**Sparse Optimization and LASSO Examples**

- SparseOpt.mod model file defining the functions.
- SparseOpt.dat data file of instance created from Michael Friedlander's spgl1 package
- SparseOpt.ampl AMPL run file looping over the regularization parameter.
- lasso6_20_2.dat additional data file: 6x20 matrix for 2-sparse vector.
- lasso20_100_14.dat additional data file 20x100 matrix for 14 sparse vector