message output methods
Definition in file message.c.
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include "scip/struct_message.h"
#include "scip/pub_message.h"
#include "scip/def.h"
#include "scip/pub_misc.h"
#include "blockmemshell/memory.h"
Go to the source code of this file.
Macros | |
#define | va_copy(dest, src) |
Functions | |
static void | handleMessage (SCIP_MESSAGEHDLR *messagehdlr, SCIP_DECL_MESSAGEOUTPUTFUNC(outputfunc), FILE *file1, SCIP_Bool usefile1, FILE *file2, SCIP_Bool usefile2, const char *msg, char *buffer, int *bufferlen) |
static | SCIP_DECL_ERRORPRINTING (errorPrintingDefault) |
static | SCIP_DECL_ERRORPRINTING ((*staticErrorPrinting)) |
static void | messagePrintError (FILE *file, const char *msg) |
static void | messagePrintWarning (SCIP_MESSAGEHDLR *messagehdlr, const char *msg) |
static void | messagePrintDialog (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg) |
static void | messagePrintInfo (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *msg) |
static void | messagehdlrOpenLogfile (SCIP_MESSAGEHDLR *messagehdlr, const char *filename) |
static SCIP_RETCODE | messagehdlrFree (SCIP_MESSAGEHDLR **messagehdlr) |
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 | 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 | 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 | 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) |
Variables | |
static void * | staticErrorPrintingData = NULL |
#define va_copy | ( | dest, | |
src ) |
Definition at line 47 of file message.c.
Referenced by SCIPmessageVFPrintDialog(), SCIPmessageVFPrintInfo(), SCIPmessageVFPrintVerbInfo(), SCIPmessageVFPrintWarning(), and SCIPmessageVPrintError().
|
static |
handles the output of the given message
messagehdlr | message handler |
file1 | file stream to print into, or NULL for stdout |
usefile1 | Should file1 be used? |
file2 | file stream to print into |
usefile2 | Should file2 be used? |
msg | message to print; NULL to flush the output buffer |
buffer | message buffer |
bufferlen | pointer to the currently used entries in the message buffer |
Definition at line 58 of file message.c.
References assert(), NULL, SCIP_Bool, and SCIP_MAXSTRLEN.
Referenced by messagePrintDialog(), messagePrintInfo(), and messagePrintWarning().
|
static |
|
static |
static variable which holds the error printing method
|
static |
prints error message with the current static message handler
file | file stream to print error, or NULL for stderr |
msg | message to print; NULL to flush the output buffer |
Definition at line 159 of file message.c.
References NULL, and staticErrorPrintingData.
Referenced by SCIPmessagePrintErrorHeader(), and SCIPmessageVPrintError().
|
static |
prints warning message with the current message handler, or buffers the message if no newline exists
messagehdlr | message handler |
msg | message to print; NULL to flush the output buffer |
Definition at line 170 of file message.c.
References handleMessage(), SCIP_Messagehdlr::logfile, NULL, SCIP_Messagehdlr::quiet, SCIP_Messagehdlr::warningbuffer, and SCIP_Messagehdlr::warningbufferlen.
Referenced by messagehdlrFree(), SCIPmessagehdlrSetQuiet(), and SCIPmessageVFPrintWarning().
|
static |
prints dialog message with the current message handler, or buffers the message if no newline exists
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
msg | message to print; NULL to flush the output buffer |
Definition at line 184 of file message.c.
References SCIP_Messagehdlr::dialogbuffer, SCIP_Messagehdlr::dialogbufferlen, handleMessage(), SCIP_Messagehdlr::logfile, NULL, SCIP_Messagehdlr::quiet, and TRUE.
Referenced by messagehdlrFree(), SCIPmessagehdlrSetQuiet(), and SCIPmessageVFPrintDialog().
|
static |
prints info message with the current message handler, or buffers the message if no newline exists
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
msg | message to print; NULL to flush the output buffer |
Definition at line 210 of file message.c.
References handleMessage(), SCIP_Messagehdlr::infobuffer, SCIP_Messagehdlr::infobufferlen, SCIP_Messagehdlr::logfile, NULL, SCIP_Messagehdlr::quiet, and TRUE.
Referenced by messagehdlrFree(), SCIPmessagehdlrSetQuiet(), SCIPmessageVFPrintInfo(), and SCIPmessageVFPrintVerbInfo().
|
static |
if the given file is not NULL a log file is opened
messagehdlr | message handler |
filename | name of log file, or NULL (stdout) |
Definition at line 236 of file message.c.
References SCIP_Messagehdlr::logfile, NULL, and SCIPerrorMessage.
Referenced by SCIPmessagehdlrCreate(), and SCIPmessagehdlrSetLogfile().
|
static |
frees message handler
messagehdlr | pointer to the message handler |
Definition at line 256 of file message.c.
References assert(), BMSfreeMemory, BMSfreeMemoryArrayNull, messagePrintDialog(), messagePrintInfo(), messagePrintWarning(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIP_DECL_MESSAGEHDLRFREE(), SCIPcreateObjMessagehdlr(), and SCIPmessagehdlrRelease().
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 ) |
Creates and captures a message handler which deals with warning, information, and dialog (interactive shell) methods.
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 |
Definition at line 295 of file message.c.
References BMSallocMemory, BMSallocMemoryArray, messagehdlrOpenLogfile(), NULL, SCIP_ALLOC, SCIP_Bool, SCIP_DECL_MESSAGEINFO, SCIP_MAXSTRLEN, and SCIP_OKAY.
Referenced by SCIPcreateMessagehdlrDefault(), and SCIPcreateObjMessagehdlr().
void SCIPmessagehdlrCapture | ( | SCIP_MESSAGEHDLR * | messagehdlr | ) |
captures message handler
messagehdlr | message handler, or NULL |
Definition at line 339 of file message.c.
References NULL, and SCIP_Messagehdlr::nuses.
Referenced by SCIPsetMessagehdlr().
SCIP_RETCODE SCIPmessagehdlrRelease | ( | SCIP_MESSAGEHDLR ** | messagehdlr | ) |
releases message handler
messagehdlr | pointer to the message handler |
Definition at line 348 of file message.c.
References assert(), messagehdlrFree(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIPfree(), and SCIPsetMessagehdlr().
SCIP_RETCODE SCIPmessagehdlrSetData | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_MESSAGEHDLRDATA * | messagehdlrdata ) |
sets the user data of the message handler
messagehdlr | message handler; must not be NULL |
messagehdlrdata | new message handler data to attach to the handler |
Definition at line 377 of file message.c.
References assert(), SCIP_Messagehdlr::messagehdlrdata, NULL, SCIP_INVALIDDATA, and SCIP_OKAY.
Referenced by SCIP_DECL_MESSAGEHDLRFREE().
void SCIPmessagehdlrSetLogfile | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | filename ) |
sets the log file name for the message handler
messagehdlr | message handler |
filename | log file name where to copy messages into, or NULL |
Definition at line 393 of file message.c.
References assert(), SCIP_Messagehdlr::logfile, messagehdlrOpenLogfile(), and NULL.
Referenced by SCIPsetMessagehdlrLogfile().
void SCIPmessagehdlrSetQuiet | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_Bool | quiet ) |
sets the messages handler to be quiet
messagehdlr | message handler |
quiet | should screen messages be suppressed? |
Definition at line 411 of file message.c.
References assert(), messagePrintDialog(), messagePrintInfo(), messagePrintWarning(), NULL, SCIP_Messagehdlr::quiet, and SCIP_Bool.
Referenced by scipexamples::QueensSolver::QueensSolver(), SCIPparamsetWrite(), SCIPprintMIPStart(), SCIPprintSol(), and SCIPsetMessagehdlrQuiet().
void SCIPmessagePrintWarning | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
... ) |
prints a warning message, acting like the printf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 427 of file message.c.
References SCIPmessageVFPrintWarning().
Referenced by adjustLPobjval(), computeRelIntPoint(), filterTRMrescode(), lpiGetBInvVec(), nlpSolve(), paramSetBool(), paramSetChar(), paramSetInt(), paramSetLongint(), paramSetReal(), primalAddSol(), restoreLPData(), restoreLPData(), SCIPconsParse(), SCIPexprComputeQuadraticCurvature(), SCIPlpGetDualfarkas(), SCIPlpiAddCols(), SCIPlpiAddRows(), SCIPlpiChgBounds(), SCIPlpiChgObj(), SCIPlpiChgSides(), SCIPlpiClearState(), SCIPlpiCreate(), SCIPlpiGetBInvRow(), SCIPlpiGetDualfarkas(), SCIPlpiGetPrimalRay(), SCIPlpiGetSol(), SCIPlpiLoadColLP(), SCIPlpiReadLP(), SCIPlpiScaleCol(), SCIPlpiScaleRow(), SCIPlpiSetNorms(), SCIPlpiSolveBarrier(), SCIPlpiStrongbranch(), SCIPlpiWriteLP(), SCIPlpiWriteState(), SCIPlpSolveAndEval(), SCIPlpWriteMip(), SCIPparamsetSet(), SCIPpriceLoop(), SolveWSimplex(), spxSolve(), varParse(), and writeProblem().
void SCIPmessageVPrintWarning | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
va_list | ap ) |
prints a warning message, acting like the vprintf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 441 of file message.c.
References SCIPmessageVFPrintWarning().
void SCIPmessageFPrintWarning | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
... ) |
prints a warning message, acting like the fprintf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 451 of file message.c.
References SCIPmessageVFPrintWarning().
Referenced by SCIPprobFree().
void SCIPmessageVFPrintWarning | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
va_list | ap ) |
prints a warning message, acting like the vfprintf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 465 of file message.c.
References assert(), BMSallocMemorySize, BMSfreeMemory, messagePrintWarning(), NULL, SCIP_MAXSTRLEN, and va_copy.
Referenced by SCIPmessageFPrintWarning(), SCIPmessagePrintWarning(), SCIPmessageVPrintWarning(), and SCIPwarningMessage().
void SCIPmessagePrintDialog | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
... ) |
prints a dialog message that requests user interaction, acting like the printf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 510 of file message.c.
References NULL, and SCIPmessageVFPrintDialog().
void SCIPmessageVPrintDialog | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
va_list | ap ) |
prints a dialog message that requests user interaction, acting like the vprintf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 524 of file message.c.
References NULL, and SCIPmessageVFPrintDialog().
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
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 534 of file message.c.
References SCIPmessageVFPrintDialog().
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
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 549 of file message.c.
References assert(), BMSallocMemorySize, BMSfreeMemory, messagePrintDialog(), NULL, SCIP_MAXSTRLEN, and va_copy.
Referenced by SCIPdialogMessage(), SCIPmessageFPrintDialog(), SCIPmessagePrintDialog(), and SCIPmessageVPrintDialog().
void SCIPmessagePrintInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
... ) |
prints a message, acting like the printf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 594 of file message.c.
References NULL, and SCIPmessageVFPrintInfo().
Referenced by displayRelevantStats(), lpNumericalTroubleMessage(), printstr(), SCIP_DECL_CONSCHECK(), SCIPhashmapPrintStatistics(), SCIPhashsetPrintStatistics(), SCIPhashtablePrintStatistics(), SCIPmultihashPrintStatistics(), SCIPprintMemoryDiagnostic(), SCIPprobPrintPseudoSol(), SCIPsolCheck(), and SCIPsolCheckOrig().
void SCIPmessageVPrintInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
const char * | formatstr, | ||
va_list | ap ) |
prints a message, acting like the vprintf() command
messagehdlr | message handler |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 608 of file message.c.
References NULL, and SCIPmessageVFPrintInfo().
void SCIPmessageFPrintInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
FILE * | file, | ||
const char * | formatstr, | ||
... ) |
prints a message into a file, acting like the fprintf() command
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 618 of file message.c.
References SCIPmessageVFPrintInfo().
Referenced by consPrintConsSol(), paramWrite(), printBounds(), printBounds(), printDualSol(), printHolelist(), printTime(), runBenders(), SCIP_DECL_DIALOGEXEC(), SCIPaggrRowPrint(), SCIPcolPrint(), SCIPconsPrint(), SCIPdigraphPrint(), SCIPdigraphPrintComponents(), SCIPdispLongint(), SCIPdispPrintLine(), SCIPdispTime(), SCIPexprDismantle(), SCIPexprhdlrPrintExpr(), SCIPisDualSolAvailable(), SCIPlpWriteMip(), SCIPnlpWrite(), SCIPnlrowPrint(), SCIPparamsetSetToSubscipsOff(), SCIPparamsetWrite(), SCIPprintBendersStatistics(), SCIPprintBestSol(), SCIPprintBestTransSol(), SCIPprintBranchingStatistics(), SCIPprintBranchruleStatistics(), SCIPprintBuildOptions(), SCIPprintCompressionStatistics(), SCIPprintConcsolverStatistics(), SCIPprintConflictStatistics(), SCIPprintConstraintStatistics(), SCIPprintConstraintTimingStatistics(), SCIPprintCutselectorStatistics(), SCIPprintDebugMessage(), SCIPprintExpressionHandlerStatistics(), SCIPprintExternalCodes(), SCIPprintHeuristicStatistics(), SCIPprintLPSolutionQuality(), SCIPprintLPStatistics(), SCIPprintMIPStart(), SCIPprintNLPIStatistics(), SCIPprintNLPStatistics(), SCIPprintNodeRootPath(), SCIPprintOrigProblemStatistics(), SCIPprintPresolverStatistics(), SCIPprintPricerStatistics(), SCIPprintPropagatorStatistics(), SCIPprintReal(), SCIPprintRelaxatorStatistics(), SCIPprintReoptStatistics(), SCIPprintRootStatistics(), SCIPprintSeparatorStatistics(), SCIPprintSol(), SCIPprintSolutionStatistics(), SCIPprintStage(), SCIPprintStatus(), SCIPprintStatusStatistics(), SCIPprintTimingStatistics(), SCIPprintTransProblemStatistics(), SCIPprintTransSol(), SCIPprintTreeStatistics(), SCIPprintVersion(), SCIPprobPrintStatistics(), SCIPprofilePrint(), SCIPretcodePrint(), SCIProwPrint(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPvarPrint(), SCIPvisualCutoffNode(), SCIPvisualFoundSolution(), SCIPvisualInit(), SCIPvisualLowerbound(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPvisualUpperbound(), SCIPwriteBnd(), and vbcSetColor().
void SCIPmessageVFPrintInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
FILE * | file, | ||
const char * | formatstr, | ||
va_list | ap ) |
prints a message into a file, acting like the vfprintf() command
messagehdlr | message handler |
file | file stream to print into, or NULL for stdout |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 633 of file message.c.
References assert(), BMSallocMemorySize, BMSfreeMemory, messagePrintInfo(), NULL, SCIP_MAXSTRLEN, and va_copy.
Referenced by lpNumericalTroubleMessage(), SCIPdebugMessagePrint(), SCIPinfoMessage(), SCIPmessageFPrintInfo(), SCIPmessagePrintInfo(), SCIPmessageVPrintInfo(), and SCIPprintDebugMessage().
void SCIPmessagePrintVerbInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_VERBLEVEL | verblevel, | ||
SCIP_VERBLEVEL | msgverblevel, | ||
const char * | formatstr, | ||
... ) |
prints a message depending on the verbosity level, acting like the printf() command
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 678 of file message.c.
References NULL, and SCIPmessageVFPrintVerbInfo().
Referenced by compressReoptTree(), createMasterproblem(), createSubproblems(), enforceConstraints(), exitPresolve(), focusnodeToFork(), lpSolve(), presolve(), presolveRound(), priceAndCutLoop(), propAndSolve(), SCIPbendersExec(), SCIPlpCreate(), SCIPlpEndDive(), SCIPlpSolveAndEval(), SCIPpermuteProb(), SCIPpresolve(), SCIPreadProb(), SCIPsolve(), SCIPsolveCIP(), SCIPstatUpdateMemsaveMode(), SCIPtransformProb(), SCIPtreeEndProbing(), SCIPtreeSetNodesel(), SCIPvisualExit(), SCIPvisualInit(), and solveNode().
void SCIPmessageVPrintVerbInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_VERBLEVEL | verblevel, | ||
SCIP_VERBLEVEL | msgverblevel, | ||
const char * | formatstr, | ||
va_list | ap ) |
prints a message depending on the verbosity level, acting like the vprintf() command
messagehdlr | message handler |
verblevel | current verbosity level |
msgverblevel | verbosity level of this message |
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 694 of file message.c.
References NULL, and SCIPmessageVFPrintVerbInfo().
void SCIPmessageFPrintVerbInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_VERBLEVEL | verblevel, | ||
SCIP_VERBLEVEL | msgverblevel, | ||
FILE * | file, | ||
const char * | formatstr, | ||
... ) |
prints a message into a file depending on the verbosity level, acting like the fprintf() command
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 |
... | format arguments line in printf() function |
Definition at line 706 of file message.c.
References SCIPmessageVFPrintVerbInfo().
Referenced by SCIPexprComputeQuadraticCurvature().
void SCIPmessageVFPrintVerbInfo | ( | SCIP_MESSAGEHDLR * | messagehdlr, |
SCIP_VERBLEVEL | verblevel, | ||
SCIP_VERBLEVEL | msgverblevel, | ||
FILE * | file, | ||
const char * | formatstr, | ||
va_list | ap ) |
prints a message into a file depending on the verbosity level, acting like the vfprintf() command
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 |
Definition at line 723 of file message.c.
References assert(), BMSallocMemorySize, BMSfreeMemory, messagePrintInfo(), NULL, SCIP_MAXSTRLEN, SCIP_VERBLEVEL_FULL, SCIP_VERBLEVEL_NONE, and va_copy.
Referenced by SCIPmessageFPrintVerbInfo(), SCIPmessagePrintVerbInfo(), SCIPmessageVPrintVerbInfo(), and SCIPverbMessage().
void SCIPmessagePrintErrorHeader | ( | const char * | sourcefile, |
int | sourceline ) |
prints the header with source file location for an error message using the static message handler
sourcefile | name of the source file that called the function |
sourceline | line in the source file where the function was called |
Definition at line 777 of file message.c.
References messagePrintError(), NULL, and SCIP_MAXSTRLEN.
void SCIPmessagePrintError | ( | const char * | formatstr, |
... ) |
prints a error message, acting like the printf() command
formatstr | format string like in printf() function |
... | format arguments line in printf() function |
Definition at line 791 of file message.c.
References SCIPmessageVPrintError().
Referenced by doConshdlrCreate(), doPresolCreate(), doPropCreate(), SCIPconshdlrSetPresol(), SCIPprintError(), SCIPprintSysError(), SCIPpropSetPresol(), and SCIPretcodePrintError().
void SCIPmessageVPrintError | ( | const char * | formatstr, |
va_list | ap ) |
prints an error message, acting like the vprintf() command using the static message handler
formatstr | format string like in printf() function |
ap | variable argument list |
Definition at line 804 of file message.c.
References assert(), BMSallocMemorySize, BMSfreeMemory, messagePrintError(), NULL, SCIP_MAXSTRLEN, and va_copy.
Referenced by SCIPmessagePrintError().
void SCIPmessageSetErrorPrinting | ( | SCIP_DECL_ERRORPRINTING((*errorPrinting)) | , |
void * | data ) |
Method to set the error printing method. Setting the error printing method to NULL will suspend all error methods.
data | data pointer which will be passed to the error printing method, or NULL |
Definition at line 851 of file message.c.
References staticErrorPrintingData.
Referenced by SCIPsetStaticErrorPrintingMessagehdlr().
void SCIPmessageSetErrorPrintingDefault | ( | void | ) |
Method to set the error printing method to default version prints everything the stderr.
Definition at line 864 of file message.c.
References NULL, and staticErrorPrintingData.
SCIP_MESSAGEHDLRDATA * SCIPmessagehdlrGetData | ( | SCIP_MESSAGEHDLR * | messagehdlr | ) |
returns the user data of the message handler
messagehdlr | message handler |
Definition at line 887 of file message.c.
References SCIP_Messagehdlr::messagehdlrdata, and NULL.
Referenced by SCIP_DECL_MESSAGEDIALOG(), SCIP_DECL_MESSAGEHDLRFREE(), SCIP_DECL_MESSAGEINFO(), SCIP_DECL_MESSAGEWARNING(), and SCIPgetObjMessagehdlr().
FILE * SCIPmessagehdlrGetLogfile | ( | SCIP_MESSAGEHDLR * | messagehdlr | ) |
returns the log file or NULL for stdout
messagehdlr | message handler |
Definition at line 899 of file message.c.
References SCIP_Messagehdlr::logfile, and NULL.
SCIP_Bool SCIPmessagehdlrIsQuiet | ( | SCIP_MESSAGEHDLR * | messagehdlr | ) |
returns TRUE if the message handler is set to be quiet
messagehdlr | message handler |
Definition at line 910 of file message.c.
References NULL, SCIP_Messagehdlr::quiet, and SCIP_Bool.
Referenced by doCopy(), initConcsolver(), SCIPparamsetWrite(), SCIPprintMIPStart(), and SCIPprintSol().
|
static |
static variable which holds a data pointer for the error prinint callback
Definition at line 155 of file message.c.
Referenced by messagePrintError(), SCIPmessageSetErrorPrinting(), and SCIPmessageSetErrorPrintingDefault().