Gurobi LP model (C++ library) killed on the run or out-of-memory exception thrown
AnsweredHello,
Running an LP model coded with the C++ library, the process is killed on the run or the program throws an out-of-memory exception (more likely if the env 'GRB_DoubleParam_MemLimit' is set to a reasonable value, e.g., 8GB).
Model details
Optimize a model with 16000 rows, 64000000 columns and 128000000 nonzeros
The program is executed on a laptop with 16GB RAM and i-7 CPU running ubuntu 20.04 LTS OS.
Gurobi is used under a personal non-commercial academic license.
The same issue does not come up on Windows, but I need to run my program on ubuntu.
What's the problem?
Is it my code or Gurobi to work this way?
Many thanks in advance.
-
Hi Roberto,
If you are getting the out-of-memory exception with error code 10001, it means that Gurobi runs out of memory. You can try some of the ideas suggested in the article How do I avoid an out-of-memory condition?
Best regards,
Maliheh
0 -
Hello Maliheh,
Thank you for your response.
All the options listed by G. Glockner have been tested or included in my code.
My program goes out-of-memory solving such an LP model running the optimization or, if the model is very large, adding the variables to the model (call to method 'GRBModel::addVar(..)').Best regards,
Roberto0
Please sign in to leave a comment.
Comments
2 comments