Originally posted by: MSaqib
Sorry about misspelled hypertext. I was using Chrome and the preview tab doesn't work with it. Now, reposting using Internet Explorer to make sure everything is readable as expected.
Hi everyone
I am using the CPLEX Class API in Matlab. I am creating a Cplex object using:
cplex = Cplex();
Then, inside a loop, I read models from .lp files. In each iteration of the loop, I solve a different problem. The pseudo-code is as follows:
for i = 1 : n
cplex.readModel(xyz);
cplex.solve();
end
Is this a correct workflow? It wouldn't cause any resource leaks or anything, right? I am concerned about slow-downs as the code progresses. It could very well be due to variables in my Matlab script growing over time and causing a slow down. But I'm fine with that as long as the way I am using cplex object is correct. These are integer optimization problems, so I do expect that some problems might take longer than others.
Thanks and best regards
Saqib
#CPLEXOptimizers#DecisionOptimization