Originally posted by: pfaut
Need to correct myself again.
It has nothing to do with the actual solver but something with access to it.
More precisely:
the variabes.get_names() function seems to leave some strange references intact.
A very small code example to show this would be something along the lines:
vars = []
for i in range(2000):
vars.append(str(i))
c = cplex.Cplex()
cplex.variables.add(names=vars)
for v in vars:
temp = c.variables.get_names()
del temp
This will cause about 200 Mb of additional memory usage each time the last for loop is run.
My guess at the moment is some kind of leak in the get_names() function, which should be avoidable.
#CPLEXOptimizers#DecisionOptimization