<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Gianpaolo,</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">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.</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">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: </font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">addpath('apm'); </font><span style="font-family:arial,helvetica,sans-serif">y = apm_solve('diet')</span></pre><pre><font face="arial, helvetica, sans-serif"><font style="color:rgb(0,0,0);white-space:pre-wrap">with addpath to the apm folder (</font></font><font color="#000000" face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"><a href="http://apmonitor.com/wiki/index.php/Main/MATLAB" target="_blank">http://apmonitor.com/wiki/index.php/Main/MATLAB</a></span></font><font style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);white-space:pre-wrap">) and the solve command that loads and solves diet.apm (seeĀ </font><font color="#000000" style="font-family:arial,helvetica,sans-serif"><span style="white-space:pre-wrap"><a href="http://apmonitor.com/wiki/uploads/Apps/diet.apm" target="_blank">http://apmonitor.com/wiki/uploads/Apps/diet.apm</a></span></font><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);white-space:pre-wrap">). </span><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);white-space:pre-wrap">Here is another example optimization problem (two bar truss optimization): </span><span style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0);white-space:pre-wrap"><a href="http://youtu.be/uOTdLfvgYHU" target="_blank">http://youtu.be/uOTdLfvgYHU</a></span></pre><pre><font color="#000000" face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap">If you are thinking about switching from MATLAB, there are also a number of nice options to interface to IPOPT in Python. </span></font></pre><pre><font face="arial, helvetica, sans-serif"><a href="http://scicomp.stackexchange.com/questions/83/is-there-a-high-quality-nonlinear-programming-solver-for-python" target="_blank">http://scicomp.stackexchange.com/questions/83/is-there-a-high-quality-nonlinear-programming-solver-for-python</a><br></font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">I hope this helps.</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Best regards,</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">John Hedengren</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">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</font></pre></div>