Originally posted by: StevenYAO
I understand that Cplex Interactive Mode can auto generate log file: "cplex.log" and it shows time information in the log (like "Log started (V12.5.0.0) Wed Aug 28 17:13:36 2013" shown in the below example). But if I use java to call cplex and use cplex.setOut (OutputStream cplexLog = new FileOutputStream("C:/cplex.log", true); cplex.setOut(cplexLog);) to save the default log, there is no time information display in the log file. How to display the time information? Is there any setting we can use? I do not want to read system time and write it into the log file by my coding. Thanks.
***************************************************************************************************************************************************************
Log started (V12.5.0.0) Wed Aug 28 17:13:36 2013
Tried aggregator 1 time.
LP Presolve eliminated 2 rows and 2 columns.
All rows and columns eliminated.
Presolve time = 0.05 sec. (0.00 ticks)
Dual simplex - Optimal: Objective = 8.0000000000e+000
Solution time = 0.11 sec. Iterations = 0 (0)
Deterministic time = 0.00 ticks (0.02 ticks/sec)
Tried aggregator 1 time.
LP Presolve eliminated 1 rows and 1 columns.
All rows and columns eliminated.
Presolve time = 0.00 sec. (0.00 ticks)
Dual simplex - Optimal: Objective = 5.0000000000e+000
Solution time = 0.00 sec. Iterations = 0 (0)
Deterministic time = 0.00 ticks (0.80 ticks/sec)
Log started (V12.5.0.0) Wed Aug 28 17:17:50 2013
Tried aggregator 1 time.
LP Presolve eliminated 1 rows and 1 columns.
All rows and columns eliminated.
Presolve time = 0.00 sec. (0.00 ticks)
Dual simplex - Optimal: Objective = 1.0000000000e+002
Solution time = 0.00 sec. Iterations = 0 (0)
Deterministic time = 0.00 ticks (0.80 ticks/sec)
***************************************************************************************************************************************************************
#CPLEXOptimizers#DecisionOptimization