[Ipopt] MATLAB interface for IPOPT and AMPL models

Tony Kelman kelman at berkeley.edu
Wed Feb 25 17:30:26 EST 2015


Gianpaolo,

There are a set of example problems implemented in AMPL, Yalmip, Pyomo, and 
an early Julia nonlinear implementation at 
https://github.com/IainNZ/NLTester. The Julia code there is obsolete 
relative to current versions of JuMP, but the AMPL, Yalmip, and Pyomo 
versions should still be relevant.

-Tony


-----Original Message----- 
From: Gianpaolo Gulletta
Sent: Wednesday, February 25, 2015 9:22 AM
To: 'Tony Kelman' ; ipopt at list.coin-or.org
Subject: RE: [Ipopt] MATLAB interface for IPOPT and AMPL models

Hi Tony,

Sorry I am trying to use Yalmip as you suggested, but I could not find a way
to translate a .mod / .dat file into Matlab syntax.
Could you please post an example?
Thank you.

Gianpaolo.

-----Original Message-----
From: Tony Kelman [mailto:kelman at berkeley.edu]
Sent: 19 February 2015 11:53 AM
To: Gianpaolo Gulletta; ipopt at list.coin-or.org
Subject: Re: [Ipopt] MATLAB interface for IPOPT and AMPL models

No. The Matlab interface requires you to implement objective and constraint
functions, gradient and Jacobian functions, and optionally the Hessian of
the Lagrangian, all as Matlab functions. You can use a modeling environment
like Yalmip (or CVX maybe? I don't think that has an interface to Ipopt
hooked up right now, but it could be possible in theory) to translate the
problem from AMPL syntax into Matlab syntax, and it will automatically
calculate the derivatives for you. JuMP in Julia is similar, and much higher
performance.

The command-line Ipopt executable can read .nl files, but you need a
licensed version of AMPL to create a .nl from .mod and .dat files.

-Tony


-----Original Message-----
From: Gianpaolo Gulletta
Sent: Thursday, February 19, 2015 2:07 AM
To: ipopt at list.coin-or.org
Subject: [Ipopt] MATLAB interface for IPOPT and AMPL models

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

_______________________________________________
Ipopt mailing list
Ipopt at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/ipopt




More information about the Ipopt mailing list