Originally posted by: PingLiu
I am trying to display the problem solving process on the screen. I want to see something as following:
--------------------------------------------------------------------------
Tried aggregator 3 times.
MIP Presolve eliminated 2648 rows and 612 columns.
MIP Presolve modified 62 coefficients.
Aggregator did 13 substitutions.
Reduced MIP has 4229 rows, 1078 columns, and 13150 nonzeros.
Reduced MIP has 1071 binaries, 0 generals, 0 SOSs, and 0 indicators.
Presolve time = 0.05 sec. (18.80 ticks)
Probing fixed 24 vars, tightened 0 bounds.
Probing time = 0.05 sec. (18.12 ticks)
-------------------------------------------------------
I can see the above by
my_prob.set_results_stream(
"results.log")
but I want to display it on screen also. I tried the code below, but it never shows anything.
my_prob.parameters.mip.display.set(
5) # the range is between 0 and 5.
Does anybody know the reason?
#CPLEXOptimizers#DecisionOptimization