Purpose
Set the message print level.
Synopsis
int XPRBsetmsglevel(XPRBprob prob, int level);
Arguments
prob
|
Reference to a problem.
|
level
|
The message level, i.e. the type of messages printed by BCL. This may be one of:
0
|
no messages printed;
|
1
|
error messages only printed;
|
2
|
warnings and errors printed;
|
3
|
warnings, errors, and Optimizer log printed (default);
|
4
|
all messages printed.
|
|
Return value
0 if function executed successfully, 1 otherwise.
Example
The following statement switches to printing error messages only.
XPRBprob prob;
...
XPRBsetmsglevel(prob, 1);
Further information
1. BCL can produce different types of messages; status information, warnings and errors. This function controls which of these
are output. For settings 1 or higher, the corresponding Optimizer output is also displayed. In addition to this setting, the amount of
Optimizer output can be modified through several Optimizer printing control parameters (see the `Xpress-Optimizer Reference
Manual').
2. This function may be used before any problem has been created and even before BCL has been initialized (with first argument
NULL). In this case the setting applies to all problems that are created subsequently.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.