Originally posted by: mrr_1010
Hi,
I just wanted to follow up on the question. I have been trying several options, and I could fix the leak in two ways.
It works if I save the files temporarily with these options (which I previously did not use correctly):
model.setParam(IloCplex.IntParam.NodeFileInd, 2);
model.setParam(IloCplex.StringParam.WorkDir, "temp/");
model.setParam(IloCplex.DoubleParam.WorkMem, 1);
model.setParam(IloCplex.DoubleParam.TreLim, 1);
As an alternative, I have taken the loop outside from java, looping through java calls with bash. It has the disadvantage of calling java and cplex at every iteration, but as an advantage I can use the memory in the computer directly instead of creating the temp files in the hard drive, as the memory properly clears.
If any one has better suggestions, I would be glad to hear about them. :)
Best,
Mar
#CPLEXOptimizers#DecisionOptimization