What is the most convenient way to run the Matlab optimization toolbox on AMPL models or NL files under Linux?
Dear Hans,
There is an AMPL interface to the MATLAB Optimization Toolbox, documented on the Mathworks AMPL Interface to MATLAB page. According to the release notes, version 1.0.1 added Linux compatibility for GCC 5.x and greater.
Hello
The easiest way is to use the ampl command-line interface to generate NL files from AMPL models, then call MATLAB from the command line to solve these NL files.
Hope that helps!
Thank you
nolanmaris
Hello,
As per meyou can install the AMPL-MATLAB interface from the AMPL website. Your Matlab script, use the ampl object to read the model and data files, solve the optimization problem, and retrieve the results. Matlab and AMPL are properly configured in your system’s PATH. This approach leverages the strengths of both tools and allows seamless integration.