[Ipopt] MATLAB interface for IPOPT and AMPL models

John Hedengren john.hedengren at gmail.com
Thu Feb 19 12:46:50 EST 2015


There are a number of excellent modeling language environments for
using IPOPT and MATLAB. Victor's suggestion sounds like a very nice
recent development with AMPL to extend it to MATLAB.

If you are considering other modeling languages, we're also working on
solvers and interfaces to solvers in the APMonitor Modeling Language.
Example syntax for a "diet.apm" problem in MATLAB is:

addpath('apm'); y = apm_solve('diet')

with addpath to the apm folder
(http://apmonitor.com/wiki/index.php/Main/MATLAB) and the solve
command that loads and solves diet.apm (see
http://apmonitor.com/wiki/uploads/Apps/diet.apm). Here is another
example optimization problem (two bar truss optimization):

If you are thinking about switching from MATLAB, there are also a
number of nice options to interface to IPOPT in Python.


I hope this helps.

Best regards,

John Hedengren

Dear all,

I would like to know if there is a way to use the matlab interface for
ipopt in conjunction with an AMPL model.

Basically, I have one AMPL model file (.mod) and three data files (.dat)
all written in AMPL language. I want to read them all and solve the problem.

Is it possible by mean of the MATLAB interface?

Thank you.

Best Regards,

Gianpaolo Gulletta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20150219/22e69cb5/attachment.html>

More information about the Ipopt mailing list