Originally posted by: lluvia
Hi,
I'm using C++ to call CPLEX to solve a MIP problem with a MIP starter.
I want to solve this program 20 times to compare the results with different initial values, so I'm writing an code containing 20 iterations. I found that the log fie saved in txt file will be overwrite in each iteration and I would only have the log file for the last iteration.
My code is as follows:
ofstream logfile ("result.log");
cplex.setOut(logfile);
Is there any method to save these 20 different log files?
Thank you very much for your help.
Jacinda
#CPLEXOptimizers#DecisionOptimization