XSLPsetlogfile
XSLPsetlogfile |
Purpose
Define an output file to be used to receive messages from Xpress NonLinear
Synopsis
int XPRS_CC XSLPsetlogfile(XSLPprob Prob, char *Filename, int Option);
Arguments
Prob
|
The current SLP problem.
|
FileName
|
Character string containing the name of the file to be used for output.
|
Option
|
Option to indicate whether the output is directed to the file only (
Option=0) or (in console mode) to the console as well (
Option=1).
|
Example
The following example defines a log file "MyLog1" and directs output to the file and to the console:
XSLPsetlogfile(Prob, "MyLog1", 1);
Further information
If
Filename is
NULL, the current log file (if any) will be closed, and message handling will revert to the default mechanism.
Related topics