Initializing help system before first use

problem.setmessagestatus

problem.setmessagestatus


Purpose
Manages suppression of messages.
Synopsis
problem.setmessagestatus (errcode, status)
Arguments
errcode 
The id number of the message. Refer to the Section 9 of the Xpress Optimizer reference manual for a list of possible message numbers.
status 
Non-zero if the message is not suppressed; 0 otherwise.
Example
Attempting to optimize a problem that has no matrix loaded gives error 91. The following code uses setmessagestatus to suppress the error message:
p = xpress.problem ()
p.setmessagestatus (91, 0)
p.lpoptimize ("")
Further information
If a message is suppressed globally then the message can only be enabled for any problem once the global suppression is removed with a call to setmessagestatus with prob passed as None.
Related topics