|
public methods for message output
- Author
- Tobias Achterberg
-
Stefan Heinz
Definition in file pub_message.h.
#include <stdarg.h>
#include "scip/def.h"
#include "scip/type_message.h"
Go to the source code of this file.
|
SCIP_RETCODE | SCIPmessagehdlrCreate (SCIP_MESSAGEHDLR **messagehdlr, SCIP_Bool bufferedoutput, const char *filename, SCIP_Bool quiet, SCIP_DECL_MESSAGEWARNING((*messagewarning)), SCIP_DECL_MESSAGEDIALOG((*messagedialog)), SCIP_DECL_MESSAGEINFO((*messageinfo)), SCIP_DECL_MESSAGEHDLRFREE((*messagehdlrfree)), SCIP_MESSAGEHDLRDATA *messagehdlrdata) |
|
void | SCIPmessagehdlrCapture (SCIP_MESSAGEHDLR *messagehdlr) |
|
SCIP_RETCODE | SCIPmessagehdlrRelease (SCIP_MESSAGEHDLR **messagehdlr) |
|
SCIP_RETCODE | SCIPmessagehdlrSetData (SCIP_MESSAGEHDLR *messagehdlr, SCIP_MESSAGEHDLRDATA *messagehdlrdata) |
|
void | SCIPmessagehdlrSetLogfile (SCIP_MESSAGEHDLR *messagehdlr, const char *filename) |
|
void | SCIPmessagehdlrSetQuiet (SCIP_MESSAGEHDLR *messagehdlr, SCIP_Bool quiet) |
|
void | SCIPmessagePrintInfo (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) |
|
void | SCIPmessageVPrintInfo (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) |
|
void | SCIPmessageFPrintInfo (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...) |
|
void | SCIPmessageVFPrintInfo (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr, va_list ap) |
|
void | SCIPmessagePrintWarning (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) |
|
void | SCIPmessageVPrintWarning (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) |
|
void | SCIPmessageFPrintWarning (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) |
|
void | SCIPmessageVFPrintWarning (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) |
|
void | SCIPmessagePrintDialog (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr,...) |
|
void | SCIPmessageVPrintDialog (SCIP_MESSAGEHDLR *messagehdlr, const char *formatstr, va_list ap) |
|
void | SCIPmessageFPrintDialog (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...) |
|
void | SCIPmessageVFPrintDialog (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr, va_list ap) |
|
void | SCIPmessagePrintVerbInfo (SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, const char *formatstr,...) |
|
void | SCIPmessageVPrintVerbInfo (SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, const char *formatstr, va_list ap) |
|
void | SCIPmessageFPrintVerbInfo (SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...) |
|
void | SCIPmessageVFPrintVerbInfo (SCIP_MESSAGEHDLR *messagehdlr, SCIP_VERBLEVEL verblevel, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr, va_list ap) |
|
void | SCIPmessagePrintErrorHeader (const char *sourcefile, int sourceline) |
|
void | SCIPmessagePrintError (const char *formatstr,...) |
|
void | SCIPmessageVPrintError (const char *formatstr, va_list ap) |
|
void | SCIPmessageSetErrorPrinting (SCIP_DECL_ERRORPRINTING((*errorPrinting)), void *data) |
|
void | SCIPmessageSetErrorPrintingDefault (void) |
|
SCIP_MESSAGEHDLRDATA * | SCIPmessagehdlrGetData (SCIP_MESSAGEHDLR *messagehdlr) |
|
FILE * | SCIPmessagehdlrGetLogfile (SCIP_MESSAGEHDLR *messagehdlr) |
|
SCIP_Bool | SCIPmessagehdlrIsQuiet (SCIP_MESSAGEHDLR *messagehdlr) |
|
#define SCIP_THREADSAFE_MESSAGEHDLRS |
define to identify SCIP version with thread-safe version of message handlers
Definition at line 42 of file pub_message.h.
Value:prints an error message
Definition at line 45 of file pub_message.h.
Referenced by cos(), SCIPexprintEval(), SCIPexprintEvalInt(), SCIPexprintGrad(), SCIPexprintGradInt(), SCIPexprintHessianDense(), SCIPexprintHessianSparsityDense(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiGetBase(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvCol(), SCIPlpiGetColNames(), SCIPlpiGetObjsen(), SCIPlpiGetPrimalRay(), SCIPlpiGetRealSolQuality(), SCIPlpiGetRowNames(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiReadLP(), SCIPlpiReadState(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSetIntpar(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiWriteLP(), SCIPlpiWriteState(), and sin().
define used in blockmemshell/memory.c
Definition at line 49 of file pub_message.h.
executes command only if SCIP_DEBUG flag is set
Definition at line 74 of file pub_message.h.
#define SCIPdebugMessage while( FALSE ) printf |
prints a debugging message if SCIP_DEBUG flag is set
Definition at line 77 of file pub_message.h.
Referenced by SCIPexprintCompile(), SCIPexprintCreate(), SCIPexprintEval(), SCIPexprintHessianSparsityDense(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgCoef(), SCIPlpiChgObj(), SCIPlpiChgObjsen(), SCIPlpiChgSides(), SCIPlpiClear(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiDelCols(), SCIPlpiDelColset(), SCIPlpiDelRows(), SCIPlpiDelRowset(), SCIPlpiExistsDualRay(), SCIPlpiExistsPrimalRay(), SCIPlpiFree(), SCIPlpiFreeState(), SCIPlpiGetBase(), SCIPlpiGetBasisInd(), SCIPlpiGetBInvACol(), SCIPlpiGetBInvARow(), SCIPlpiGetBInvCol(), SCIPlpiGetBInvRow(), SCIPlpiGetBounds(), SCIPlpiGetCoef(), SCIPlpiGetColNames(), SCIPlpiGetCols(), SCIPlpiGetDualfarkas(), SCIPlpiGetInternalStatus(), SCIPlpiGetIntpar(), SCIPlpiGetIterations(), SCIPlpiGetNCols(), SCIPlpiGetNNonz(), SCIPlpiGetNorms(), SCIPlpiGetNRows(), SCIPlpiGetObj(), SCIPlpiGetObjsen(), SCIPlpiGetObjval(), SCIPlpiGetPrimalRay(), SCIPlpiGetRealpar(), SCIPlpiGetRealSolQuality(), SCIPlpiGetRowNames(), SCIPlpiGetRows(), SCIPlpiGetSides(), SCIPlpiGetSol(), SCIPlpiGetSolFeasibility(), SCIPlpiGetSolverName(), SCIPlpiGetState(), SCIPlpiHasDualRay(), SCIPlpiHasPrimalRay(), SCIPlpiHasStateBasis(), SCIPlpiIgnoreInstability(), SCIPlpiInfinity(), SCIPlpiIsDualFeasible(), SCIPlpiIsDualInfeasible(), SCIPlpiIsDualUnbounded(), SCIPlpiIsInfinity(), SCIPlpiIsIterlimExc(), SCIPlpiIsObjlimExc(), SCIPlpiIsOptimal(), SCIPlpiIsPrimalFeasible(), SCIPlpiIsPrimalInfeasible(), SCIPlpiIsPrimalUnbounded(), SCIPlpiIsStable(), SCIPlpiIsTimelimExc(), SCIPlpiLoadColLP(), SCIPlpiReadLP(), SCIPlpiReadState(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetBase(), SCIPlpiSetIntpar(), SCIPlpiSetNorms(), SCIPlpiSetRealpar(), SCIPlpiSetState(), SCIPlpiSolveBarrier(), SCIPlpiSolveDual(), SCIPlpiSolvePrimal(), SCIPlpiStrongbranchesFrac(), SCIPlpiStrongbranchesInt(), SCIPlpiStrongbranchFrac(), SCIPlpiStrongbranchInt(), SCIPlpiWasSolved(), SCIPlpiWriteLP(), and SCIPlpiWriteState().
#define SCIPdebugPrintf while( FALSE ) printf |
#define SCIPdebugPrintCons |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| |
#define SCIPstatistic |
( |
|
x | ) |
|
executes command only if SCIP_STATISTIC flag is set
Definition at line 101 of file pub_message.h.
#define SCIPstatisticMessage while( FALSE ) printf |
prints a statistic message if SCIP_STATISTIC flag is set
Definition at line 104 of file pub_message.h.
#define SCIPstatisticPrintf while( FALSE ) printf |
executes printf command only if SCIP_STATISTIC flag is set
Definition at line 107 of file pub_message.h.
Creates and captures a message handler which deals with warning, information, and dialog (interactive shell) methods.
- Note
- The message handler does not handle error messages. For that see SCIPmessageSetErrorPrinting()
-
Creating a message handler automatically captures it.
- Parameters
-
messagehdlr | pointer to store the message handler |
bufferedoutput | should the output be buffered up to the next newline? |
filename | name of log file, or NULL for no log |
quiet | should screen messages be suppressed? |
messagehdlrdata | message handler data |
captures message handler
- Parameters
-
messagehdlr | message handler, or NULL |
releases message handler
- Parameters
-
messagehdlr | pointer to the message handler |
sets the user data of the message handler
- Parameters
-
messagehdlr | message handler; must not be NULL |
messagehdlrdata | new message handler data to attach to the handler |
void SCIPmessagehdlrSetLogfile |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
filename |
|
) |
| |
sets the log file name for the message handler
- Parameters
-
messagehdlr | message handler |
filename | log file name where to copy messages into, or NULL |
sets the messages handler to be quiet
- Parameters
-
messagehdlr | message handler |
quiet | should screen messages be suppressed? |
void SCIPmessagePrintInfo |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a message, acting like the printf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
void SCIPmessageVPrintInfo |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a message, acting like the vprintf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessageFPrintInfo |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
FILE * |
file, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a message into a file, acting like the fprintf() command
- Parameters
-
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
void SCIPmessageVFPrintInfo |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
FILE * |
file, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a message into a file, acting like the vfprintf() command
- Parameters
-
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessagePrintWarning |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a warning message, acting like the printf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
Referenced by SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgObj(), SCIPlpiChgSides(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiGetBInvRow(), SCIPlpiGetDualfarkas(), SCIPlpiGetPrimalRay(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiReadLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), and SCIPlpiWriteLP().
void SCIPmessageVPrintWarning |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a warning message, acting like the vprintf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessageFPrintWarning |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a warning message into a file, acting like the fprintf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
void SCIPmessageVFPrintWarning |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a warning message into a file, acting like the vfprintf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessagePrintDialog |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a dialog message that requests user interaction, acting like the printf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
void SCIPmessageVPrintDialog |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a dialog message that requests user interaction, acting like the vprintf() command
- Parameters
-
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessageFPrintDialog |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
FILE * |
file, |
|
|
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints a dialog message that requests user interaction into a file, acting like the fprintf() command
- Parameters
-
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
void SCIPmessageVFPrintDialog |
( |
SCIP_MESSAGEHDLR * |
messagehdlr, |
|
|
FILE * |
file, |
|
|
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints a dialog message that requests user interaction into a file, acting like the vfprintf() command
- Parameters
-
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
ap | variable argument list |
prints a message depending on the verbosity level, acting like the printf() command
- Parameters
-
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
formatstr | format string like in printf() function |
prints a message depending on the verbosity level, acting like the vprintf() command
- Parameters
-
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
formatstr | format string like in printf() function |
ap | variable argument list |
prints a message into a file depending on the verbosity level, acting like the fprintf() command
- Parameters
-
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
prints a message into a file depending on the verbosity level, acting like the vfprintf() command
- Parameters
-
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
ap | variable argument list |
void SCIPmessagePrintErrorHeader |
( |
const char * |
sourcefile, |
|
|
int |
sourceline |
|
) |
| |
prints the header with source file location for an error message using the static message handler
- Parameters
-
sourcefile | name of the source file that called the function |
sourceline | line in the source file where the function was called |
void SCIPmessagePrintError |
( |
const char * |
formatstr, |
|
|
|
... |
|
) |
| |
prints an error message, acting like the printf() command using the static message handler
- Parameters
-
formatstr | format string like in printf() function |
void SCIPmessageVPrintError |
( |
const char * |
formatstr, |
|
|
va_list |
ap |
|
) |
| |
prints an error message, acting like the vprintf() command using the static message handler
- Parameters
-
formatstr | format string like in printf() function |
ap | variable argument list |
Method to set the error printing method. Setting the error printing method to NULL will suspend all error methods.
- Note
- The error printing method is a static variable. This means that all occurring errors are handled via this method.
- Parameters
-
data | data pointer which will be passed to the error printing method, or NULL |
void SCIPmessageSetErrorPrintingDefault |
( |
void |
| ) |
|
Method to set the error printing method to default version prints everything the stderr.
- Note
- The error printing method is a static variable. This means that all occurring errors are handled via this method.
returns the user data of the message handler
- Parameters
-
messagehdlr | message handler |
returns the log file or NULL for stdout
- Parameters
-
messagehdlr | message handler |
returns TRUE if the message handler is set to be quiet
- Parameters
-
messagehdlr | message handler |
|