Christian Perau

Conversationalist
Gurobi-versary
First Question
  • Total activity 18
  • Last activity
  • Member since
  • Following 0 users
  • Followed by 0 users
  • Votes 0
  • Subscriptions 4

Activity overview

Latest activity by Christian Perau
  • Christian Perau commented,

    Adding option(BUILD_SHARED_LIBS "Build shared libraries" ON) to CMakeLists.txt was missing to write a .dll, by the way. But unfortunately if I load the corresponding .dll with ctypes.cdll.LoadLibra...

  • Christian Perau commented,

    Hi Matthias, Thanks for the hint. Apparently instead of writing either a .dll or .so, the cmake build now creates a .lib file. I guess there will be some option on how to choose the file format, I´...

  • Christian Perau commented,

    Hi Matthias, thanks for the explanation! I was wondering if it was possible to create a shared object (.so) file instead of the .exe file (or additionally to it) so that the function is callable vi...

  • Christian Perau commented,

    Hi Matthias, thanks! That fixed the problem indeed. After the cmake build, I tried to run the script (script.c): #include "gurobi_c.h"int main(){ return 0;} from the terminal using gcc: gcc ...

  • Christian Perau commented,

    Hi Matthias, thanks for the quick response! I could fix the error regarding the mi1_c++.cpp file. The error regarding the variables GUROBI_CXX_DEBUG_LIBRARY and GUROBI_CXX_LIBRARY remains unfortuna...

  • Christian Perau created a post,

    using cmake -H. -Bbuild fails

    Answered

    Hi, I am trying to use CMake to use gurobi in C like described in https://support.gurobi.com/hc/en-us/articles/360039499751-How-do-I-use-CMake-to-build-Gurobi-C-C-projects-. However, when I try to ...

  • Christian Perau commented,

    For anyone wondering: From version 10.0.0 this is implemented and working correctly.

  • Christian Perau commented,

    Hi Jaromil, That´s what I expected. I guess that´s another downside of using python. Thank you very much for your explanation!Best regards,Christian

  • Christian Perau commented,

    Hi Jaromil,sure! I was working with gurobi 9.5.2. Updating to 10.0 did however only slightly increase the memory usage. Here is an example. It definetly does not make any sense but will show the me...

  • Christian Perau created a post,

    Reduce memory usage of gurobipy Model

    Answered

    Hello, I am working with quite large linear models and finding myself with problems regarding memory usage. Building the model I observe a huge increase in memory consumption when I use model.addMV...