[Ipopt-tickets] [Ipopt] #285: MatLab interface crashes Ipopt (R2017a and ubuntu 16.04 LTS)

Ipopt coin-trac at coin-or.org
Tue Jul 4 05:58:11 EDT 2017


#285: MatLab interface crashes Ipopt (R2017a and ubuntu 16.04 LTS)
-------------------+------------------------
Reporter:  alexho  |      Owner:  ipopt-team
    Type:  defect  |     Status:  new
Priority:  normal  |  Component:  Ipopt
 Version:  3.12    |   Severity:  normal
Keywords:          |
-------------------+------------------------
 Hi,

 I'm trying to configure Ipopt (v. 3.12.4) to run with MatLab 2017a. I have
 downloaded the correct compilers for MatLab (2017a) (gnu compiler
 collection v. 4.9.4) and I'm using a ubuntu 16.04 LTS distribution.

 I make a directory for building Ipopt (as instructed in the guide) and run
 the configure script (with my selected compiler as):

 ../configure CC=/usr/local/gcc/4.9.4/bin/gcc
 CXX=/usr/local/gcc/4.9.4/bin/g++ F77=/usr/local/gcc/4.9.4/bin/gfortran
 ADD_CXXFLAGS="-fPIC -fexceptions" ADD_CFLAGS="-fPIC -fexceptions"
 ADD_FFLAGS="-fPIC -fexceptions" --disable-shared

 I then run "make", "make test" and "make install" all succesfully
 executing. Finally, I want to build the MatLab interface. I ensure that
 the makefile in the source folder is correctly setup and "make install"
 it. It outputs "MEX completed succesfully".

 When I then try to run the MatLab examples, MatLab waits a while and then
 crashes with the error "Segmentation violation". I suspect that the
 problem lies with the compilation of the thirdparty packages, but im not
 sure.

 I'm seemingly able to compile the mex file correctly, but then it crashes,
 am What am I doing wrong? Any help is appreciated!

 Thanks, Alexander.

--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/285>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list