Somehow the name of the source files were changed, so you need to rename ma27d.f to ma27ad.f and mc19d.f to mc19ad.f. f) to the directory Ipopt/ThirdParty/HSL. Extract the archives and copy the Fortran source files (extension. Download MA27 and MC19 solvers from this website.Download third party packages: you will need at least one linear solver for Ipopt to work.Extract Ipopt source to a directory, say Ipopt.I am too lazy to check the version of XCode on my machine, but I guess the latest version will work. Of course, you need to have XCode installed so that you can compile C/C++ source files.Install it as instructed on those websites. You can download gfortran for MacOS X from its website or from here. The bad news is that not all Fortran compilers work. You need to have a (good) Fortran compiler.Other versions may not work because as I said, the installation is very tricky. I downloaded version 3.10.1 (released on Septem– my birthday FYI). An important resource is the current issue list. The machine I am using is a MacBook Pro with Intel Core 2 Duo, Snow Leopard (10.6.8), Matlab R2009b. Kudos to the people and companies that make software so easy to install and use: Apple, Ubuntu, and many others.) I know I am exaggerating too much but honestly, that total wasted amount of time would be HUGE. (A side note: personally, I think that if we total the amount of time people around the world spending frustratedly to install and make open-source software work for them, it would be equal to the age of the universe. Below are the steps that I used, for my own record and hopefully for others who are trying to do the same thing. Last night, I gave it a last chance, and fortunately made it. I tried a few instructions on the web, but they did not work, partly because they are for older versions of Ipopt and partly because the compiling process is very machine-dependent. Indeed, it was so difficult that it made me very frustrated and almost give up. With my very own experience in compiling and installing open-source code, and after reading many reviews and complaints on the Internet, I knew that installing Ipopt on Mac OS would be a tough task. The Matlab’s default solver is good enough for many instances, but according to many reviews, the free Ipopt is better, especially for large and complex problems. I wanted to install it, particularly its Matlab interface, to improve the performance of some of my code which currently uses fmincon. Ipopt is a very good software package and library for large-scale nonlinear optimization (NLP solver).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |