Scippy

SCIP

Solving Constraint Integer Programs

message_pb.c File Reference

Detailed Description

messagehdlr for the Pseudo-Boolean output format

Author
Alexander Hoen
Gioni Mexi
Dominik Kamp

Definition in file message_pb.c.

#include <stdio.h>
#include <string.h>
#include "scip/scip.h"
#include "message_pb.h"

Go to the source code of this file.

Functions

static void printMessage (SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *initial, const char *msg)
 
static SCIP_DECL_ERRORPRINTING (messageErrorPbSolver)
 
static SCIP_DECL_MESSAGEWARNING (messageWarningPbSolver)
 
static SCIP_DECL_MESSAGEDIALOG (messageDialogPbSolver)
 
static SCIP_DECL_MESSAGEINFO (messageInfoPbSolver)
 
static SCIP_DECL_MESSAGEHDLRFREE (messagehdlrFreePbSolver)
 
SCIP_RETCODE SCIPcreateMessagehdlrPbSolver (SCIP_MESSAGEHDLR **messagehdlr, SCIP_Bool buffered, const char *filename, SCIP_Bool quiet)
 
SCIP_RETCODE SCIPprintUnsupportedPbSolver (SCIP *scip)
 
SCIP_RETCODE SCIPprintSolutionPbSolver (SCIP *scip)
 

Function Documentation

◆ printMessage()

static void printMessage ( SCIP_MESSAGEHDLR messagehdlr,
FILE *  file,
const char *  initial,
const char *  msg 
)
static
Parameters
messagehdlrmessage handler
filefile stream to print message into
initialinitial to prepend or NULL for no initial
msgmessage to print or NULL to flush only

Definition at line 42 of file message_pb.c.

References NULL, and SCIPmessagehdlrGetData().

Referenced by SCIP_DECL_ERRORPRINTING(), SCIP_DECL_MESSAGEDIALOG(), SCIP_DECL_MESSAGEINFO(), and SCIP_DECL_MESSAGEWARNING().

◆ SCIP_DECL_ERRORPRINTING()

static SCIP_DECL_ERRORPRINTING ( messageErrorPbSolver  )
static

default error printing method which is used to print all occurring errors

Definition at line 67 of file message_pb.c.

References NULL, and printMessage().

◆ SCIP_DECL_MESSAGEWARNING()

static SCIP_DECL_MESSAGEWARNING ( messageWarningPbSolver  )
static

warning message print method of default message handler

Definition at line 74 of file message_pb.c.

References printMessage().

◆ SCIP_DECL_MESSAGEDIALOG()

static SCIP_DECL_MESSAGEDIALOG ( messageDialogPbSolver  )
static

dialog message print method of default message handler

Definition at line 81 of file message_pb.c.

References NULL, and printMessage().

◆ SCIP_DECL_MESSAGEINFO()

static SCIP_DECL_MESSAGEINFO ( messageInfoPbSolver  )
static

info message print method of default message handler

Definition at line 88 of file message_pb.c.

References NULL, and printMessage().

◆ SCIP_DECL_MESSAGEHDLRFREE()

static SCIP_DECL_MESSAGEHDLRFREE ( messagehdlrFreePbSolver  )
static

Definition at line 94 of file message_pb.c.

References BMSfreeMemory, NULL, SCIP_OKAY, and SCIPmessagehdlrGetData().

◆ SCIPcreateMessagehdlrPbSolver()

SCIP_RETCODE SCIPcreateMessagehdlrPbSolver ( SCIP_MESSAGEHDLR **  messagehdlr,
SCIP_Bool  buffered,
const char *  filename,
SCIP_Bool  quiet 
)

creates default pbsolver message handler

Parameters
messagehdlrpointer to message handler
bufferedshould the output be buffered
filenamename of log file or NULL for stdout
quietshould screen messages be suppressed?

Definition at line 106 of file message_pb.c.

References BMSallocMemory, NULL, SCIP_ALLOC, SCIP_CALL, SCIP_OKAY, SCIPmessagehdlrCreate(), SCIPmessageSetErrorPrinting(), and TRUE.

Referenced by runShell().

◆ SCIPprintUnsupportedPbSolver()

SCIP_RETCODE SCIPprintUnsupportedPbSolver ( SCIP scip)

prints that the problem instance is unsupported

Parameters
scipSCIP data structure

Definition at line 128 of file message_pb.c.

References FALSE, NULL, SCIP_Bool, SCIP_OKAY, SCIPgetMessagehdlr(), SCIPinfoMessage(), SCIPmessagehdlrGetData(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), and TRUE.

Referenced by fromCommandLine().

◆ SCIPprintSolutionPbSolver()