You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This package (AMPL interface to Optimization Toolbox) connects MATLAB – Optimization Toolbox™ to the AMPL API for MATLAB (version 1.3 or higher).
It provides an interface to Optimization Toolbox solvers that enables
• Solving problems using the AMPL API for MATLAB
• Solving problems saved in NL-format files
• Querying characteristics including function values, gradients and Hessians of either AMPL problems or problems saved in NL-format files.
Linear, quadratic, mixed-integer linear and nonlinear optimization problems are solved with automatic selection of the appropriate Optimization Toolbox solver.
The problem characteristic query functionality is useful for those developing their own solvers or performing pre- and post-solution analysis.
The AMPL interface must be built for each platform where it will be used. Building the interface requires MATLAB, a C/C++ compiler, and a make utility. Instructions are in the readme_build_ampl_interface file.
To solve or query AMPL models, both AMPL (64-bit) and the AMPL API for MATLAB must be installed.
This package was developed by Aykut Bulut and Steve Grikschat from the development group at MathWorks.
Cite As
Steve Grikschat (2026). AMPL Interface to MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/64634-ampl-interface-to-matlab), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1.0 (1.01 MB)
MATLAB Release Compatibility
- Compatible with R2017a to R2018a
Platform Compatibility
- Windows
- macOS
- Linux
