About MemLimit
AnsweredDear all,
I'm trying to use MemLimit parameter
e = Env("gurobi.log", params={'MemLimit': 31,
'PreSparsify': 1,
'MIPFocus': 3,
'NodefileStart': 0.5,
'Heuristics': 0.3,
'Presolve': 1})
But when I do that, the OutOfMemory error is raised well before the 31GB RAM use. In fact the operation crashes at about 20GB memory use (checked via task manager). Do you know why this might happen?
-
Adding one more observation: OutofMemory is observed right at the end of the presolve.
0 -
Hi Charitha,
it may happen that Gurobi requests more memory but doesn't use it, yet. The idea of the MemLimit parameter is mainly to allow a more controlled termination without actually using too much memory and disturbing other processes.
Did you try running without setting the MemLimit parameter?
Cheers,
Matthias0 -
Sorry for the late reply. I did experiment with and without it. Without the MemLimit parameter, the OS takes care of the problem, but that occurs later. So probably, the behavior of Gurobi MemLimit is, as you said, related to some anticipated future memory use.
0
Please sign in to leave a comment.
Comments
3 comments