[Ipopt] problem using the Matlab interface with limited-memory update option

Ian Washington washinid at mcmaster.ca
Mon Oct 1 20:53:24 EDT 2012


Hi All,

I tried using static libraries with the libcoin blas/lapack with gcc 4.3 
(officially supported by matlab R2010b) and everything again builds ok; 
however, this doesn't solve the problem when the limited memory option 
is switched on.

./configure --prefix=/opt/Ipopt-3.10.2/install_x64_mat \
              --with-matlab-home="/opt/MATLAB/R2010b" \
              CC=gcc-4.3 CXX=g++-4.3 F77=gfortran-4.3 \
              --disable-shared \
              ADD_CXXFLAGS="-ansi -D_GNU_SOURCE -fexceptions -fPIC 
-fno-omit-frame-pointer -pthread" \
              ADD_CFLAGS="-ansi -D_GNU_SOURCE -fexceptions -fPIC 
-fno-omit-frame-pointer -pthread" \
              ADD_FFLAGS="-fexceptions -fPIC -fno-omit-frame-pointer 
-pthread"

Anybody have any suggestions  ?

Thanks,
Ian.



On 10/01/2012 06:55 PM, Ian Washington wrote:
> Hi Ipopt Users,
>
> I am having some problems with the matlab interface (the one in 
> /Ipopt/contrib/MatlabInterface). The issue is whenever I use the 
> limited memory bfgs update matlab crashes (without a crash report), 
> i.e., it just closes.
>
> I am using Ipopt 3.10.2 on Ubuntu 10.04 64bit with matlab R2010b 
> 64bit. I compiled Ipopt using gcc 4.4 with the following specs (and 
> set PATH and LD_LIBRARY_PATH appropriately),
>
> ./configure --prefix=/opt/Ipopt-3.10.2/install_x64_mat \
>              --with-blas="/usr/lib/atlas/libblas.so.3gf.0" \
>              --with-lapack="/usr/lib/atlas/liblapack.so.3gf.0" \
>              --with-matlab-home="/opt/MATLAB/R2010b" \
>              CC=gcc-4.4 CXX=g++-4.4 F77=gfortran-4.4 \
>              ADD_CXXFLAGS="-ansi -D_GNU_SOURCE -fexceptions -fPIC 
> -fno-omit-frame-pointer -pthread" \
>              ADD_CFLAGS="-ansi -D_GNU_SOURCE -fexceptions -fPIC 
> -fno-omit-frame-pointer -pthread" \
>              ADD_FFLAGS="-fexceptions -fPIC -fno-omit-frame-pointer 
> -pthread"
>
> I also compiled the 64bit mex file using auto generated makefile (with 
> no problems) and placed it on the matlab path. Running the provided 
> test examples 'examplehs038.m', 'examplehs071.m', works fine; however, 
> when I try  'examplehs051.m', which uses the limited-memory update, 
> matlab immediately crashes.
>
> I suspect I didn't configure the compiler settings properly.
>
> If anyone has had the same issue, some advice would be much appreciated.
>
> Thanks,
>
> Ian.
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20121001/fe78d162/attachment.html>


More information about the Ipopt mailing list