PySCIPOpt
PySCIPOpt copied to clipboard
"write" methods don't work after `redirectOutput()`
After calling redirectOutput(), e.g. writeProblem() does not produce a file but prints the problem description to the outstream.
Apparently, we redirect everything to the new messagehandler.
interseting my search didn't tell me about this
I assume this is still relevant so i will leave this open.
Is this still relevant, @mattmilten @fserra?
Still not solved. Here is a minimal example:
import pyscipopt
m = pyscipopt.Model("test")
m.redirectOutput()
m.optimize()
# writes out the usual log files
m.writeProblem("test.mps")
# writes the model description (in mps format) to the python console but not to file
# test.mps is created but is empty
PySCIPOpt 4.3.0 SCIPOptSuite-8.0.4-Linux