3
3
/* This file is part of the program and library */
4
4
/* SCIP --- Solving Constraint Integer Programs */
5
5
/* */
6
- /* Copyright (c) 2002-2024 Zuse Institute Berlin (ZIB) */
6
+ /* Copyright (c) 2002-2025 Zuse Institute Berlin (ZIB) */
7
7
/* */
8
8
/* Licensed under the Apache License, Version 2.0 (the "License"); */
9
9
/* you may not use this file except in compliance with the License. */
22
22
/* */
23
23
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
24
25
+ /**@file message_pb.c
26
+ * @brief messagehdlr for the Pseudo-Boolean output format
27
+ * @author Alexander Hoen
28
+ * @author Gioni Mexi
29
+ */
30
+
31
+ /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32
+
25
33
#define PBSOLVER
26
34
27
35
#include <stdio.h>
28
36
#include <string.h>
29
37
30
38
#include "scip/scip.h"
31
- #include "message_pbscip .h"
39
+ #include "message_pb .h"
32
40
33
41
34
42
static
@@ -57,7 +65,7 @@ void printMessage(
57
65
58
66
/** default error printing method which is used to print all occurring errors */
59
67
static
60
- SCIP_DECL_ERRORPRINTING (messageErrorPbscip ) { /*lint --e{715}*/
68
+ SCIP_DECL_ERRORPRINTING (messageErrorPbSolver ) { /*lint --e{715}*/
61
69
62
70
#ifdef PBSOLVER
63
71
fputs ("c " , stderr );
@@ -68,24 +76,24 @@ SCIP_DECL_ERRORPRINTING(messageErrorPbscip) { /*lint --e{715}*/
68
76
69
77
/** warning message print method of default message handler */
70
78
static
71
- SCIP_DECL_MESSAGEWARNING (messageWarningPbscip ) { /*lint --e{715}*/
79
+ SCIP_DECL_MESSAGEWARNING (messageWarningPbSolver ) { /*lint --e{715}*/
72
80
printMessage (messagehdlr , file , msg );
73
81
}
74
82
75
83
/** dialog message print method of default message handler */
76
84
static
77
- SCIP_DECL_MESSAGEDIALOG (messageDialogPbscip ) { /*lint --e{715}*/
85
+ SCIP_DECL_MESSAGEDIALOG (messageDialogPbSolver ) { /*lint --e{715}*/
78
86
printMessage (messagehdlr , file , msg );
79
87
}
80
88
81
89
/** info message print method of default message handler */
82
90
static
83
- SCIP_DECL_MESSAGEINFO (messageInfoPbscip ) { /*lint --e{715}*/
91
+ SCIP_DECL_MESSAGEINFO (messageInfoPbSolver ) { /*lint --e{715}*/
84
92
printMessage (messagehdlr , file , msg );
85
93
}
86
94
87
95
static
88
- SCIP_DECL_MESSAGEHDLRFREE (messagehdlrFreePbscip ) { /*lint --e{715}*/
96
+ SCIP_DECL_MESSAGEHDLRFREE (messagehdlrFreePbSolver ) { /*lint --e{715}*/
89
97
SCIP_MESSAGEHDLRDATA * messagehdlrdata ;
90
98
91
99
assert (messagehdlr != NULL );
@@ -99,8 +107,8 @@ SCIP_DECL_MESSAGEHDLRFREE(messagehdlrFreePbscip) { /*lint --e{715}*/
99
107
}
100
108
101
109
102
- /** creates default PBSCIP message handler */
103
- SCIP_RETCODE SCIPcreateMessagehdlrPbscip (
110
+ /** creates default pbsolver message handler */
111
+ SCIP_RETCODE SCIPcreateMessagehdlrPbSolver (
104
112
SCIP_MESSAGEHDLR * * messagehdlr , /**< pointer to message handler */
105
113
SCIP_Bool buffered , /**< should the output be buffered */
106
114
const char * filename , /**< name of log file, or NULL (stdout) */
@@ -116,10 +124,10 @@ SCIP_RETCODE SCIPcreateMessagehdlrPbscip(
116
124
messagehdlrdata -> comment = FALSE;
117
125
#endif
118
126
SCIP_CALL (SCIPmessagehdlrCreate (messagehdlr , buffered , filename , quiet ,
119
- messageWarningPbscip , messageDialogPbscip , messageInfoPbscip , messagehdlrFreePbscip ,
127
+ messageWarningPbSolver , messageDialogPbSolver , messageInfoPbSolver , messagehdlrFreePbSolver ,
120
128
messagehdlrdata ));
121
129
122
- SCIPmessageSetErrorPrinting (messageErrorPbscip , NULL );
130
+ SCIPmessageSetErrorPrinting (messageErrorPbSolver , NULL );
123
131
124
132
return SCIP_OKAY ;
125
133
}
0 commit comments