casadi / casadi

CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.
http://casadi.org
GNU Lesser General Public License v3.0
1.57k stars 356 forks source link

Building Casadi with ipopt #3685

Open bharswami opened 2 weeks ago

bharswami commented 2 weeks ago

I was able to build casadi without an interface to ipopt. Could someone please tell me what is needed to build it with ipopt? What libraries are needed what options to specify in cmake etc? I am building it in Windows Visual Studio 2022. Thanks in advance.

bharswami commented 2 weeks ago

I think I got this fixed after resetting some flags and installing GIT. Will update after running some examples.

bharswami commented 1 week ago

I am getting the following error while tring to build the project openblas-external. _1>2>LINK : fatal error LNK1104: cannot open file 'ifconsol.lib' 1>2>Done building project "openblasshared.vcxproj" -- FAILED. It is because the project is not detecting the fortran compiler which is strange since all other fortran projects build fine on my system. Probably the cmake of openblas doesn't have the necessary command to detect the fortran compiler? Please suggest.