Logging solver output from JuMP


#1

Is there a standard way in JuMP to log stdoutput of a solver to a file?

I tried the trick with

TT = STDOUT
(outRead, outWrite) = redirect_stdout()
solve(m)
close(outWrite)
data = readavailable(outRead)
close(outRead)
redirect_stdout(TT);

however this doesn’t work in jupyter (it seems to work in console)


#2

No, this is currently an option that must be set in a solver-specific way.