AMPL data file toolbox

Writing Matlab data to AMPL data files

You are now following this Submission

This toolbox contains a collection of functions for writing to AMPL (http://www.ampl.com/) data files. AMPL is A Mathematical Programming Language for modelling optimization problems. AMPL combines a (typically hand-coded) model file, containing the symbolic structure of the problem, with a data file containing parameter values and invokes a solver. Generating the data file from Matlab eases the process of problem generation. AMPL can also write results to text files that can be directly loaded into Matlab using the 'load' command. Thus, combining the data file utilities, invoking AMPL from Matlab by '!', and loading results back into Matlab, optimizing via AMPL can be embedded in a Matlab analysis process. See http://seis.bris.ac.uk/~aeagr/software.html for examples involving model predictive control of vehicles.

Cite As

Arthur Richards (2026). AMPL data file toolbox (https://www.mathworks.com/matlabcentral/fileexchange/39795-ampl-data-file-toolbox), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0