Forum Discussion
FICO
5 years agoCommunity Manager
xpress.problem() in the Python interface printing blank line.
I'm using the Python 3 interface for Xpress 8.12.0. It appears that any call to xpress.problem() results in a blank line being printed to the console output regardless of the value set for xp.controls.outputlog. Strangely this seems to be a problem only on linux.
Is there a fix or work-around for this. I'm calling Xpress a large number of times to solve sub-problems and the blank lines are really wreaking havoc with the logging process.
2 Replies
- FICOCommunity Manager
Hello,
please set the 'xslp_log' to -1 to avoid this, as in the following example:
import xpress as xp p = xp.problem() p.controls.xslp_log = -1Hope this helps.
- FICOCommunity Manager
Thanks Pietro. That worked like a charm. Although it's a bit weird that the master log control doesn't eliminate the slp log not to mention the slp log printing things out while solving linear problems.
Appreciate the quick reply. Cheers.
