Christian Perau

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

Activity overview

Latest activity by Christian Perau
  • Christian Perau commented,

    Hi Marika, thanks for the quick response! I know this problem actually existed before version 10 of gurobi. I also created a post regarding that a while ago (https://support.gurobi.com/hc/en-us/com...

  • Christian Perau created a post,

    ValueError using model.addMConstr since gurobipy 11.0.0

    Answered

    Since updating to gurobipy I receive an ValueError when I try to use addMConstr if I include constraint names. Here is a minimal reproducible example: import gurobipy as gpfrom gurobipy import GRBi...

  • 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