SCIP Doxygen Documentation
Loading...
Searching...
No Matches
scip_debug.c
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the program and library */
4
/* SCIP --- Solving Constraint Integer Programs */
5
/* */
6
/* Copyright (c) 2002-2026 Zuse Institute Berlin (ZIB) */
7
/* */
8
/* Licensed under the Apache License, Version 2.0 (the "License"); */
9
/* you may not use this file except in compliance with the License. */
10
/* You may obtain a copy of the License at */
11
/* */
12
/* http://www.apache.org/licenses/LICENSE-2.0 */
13
/* */
14
/* Unless required by applicable law or agreed to in writing, software */
15
/* distributed under the License is distributed on an "AS IS" BASIS, */
16
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17
/* See the License for the specific language governing permissions and */
18
/* limitations under the License. */
19
/* */
20
/* You should have received a copy of the Apache-2.0 license */
21
/* along with SCIP; see the file LICENSE. If not visit scipopt.org. */
22
/* */
23
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25
/**@file scip_debug.c
26
* @ingroup OTHER_CFILES
27
* @brief public methods for debugging
28
* @author Tobias Achterberg
29
* @author Timo Berthold
30
* @author Gerald Gamrath
31
* @author Leona Gottwald
32
* @author Stefan Heinz
33
* @author Gregor Hendel
34
* @author Thorsten Koch
35
* @author Alexander Martin
36
* @author Marc Pfetsch
37
* @author Michael Winkler
38
* @author Kati Wolter
39
*
40
* @todo check all SCIP_STAGE_* switches, and include the new stages TRANSFORMED and INITSOLVE
41
*/
42
43
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
44
45
#include "
scip/debug.h
"
46
#include "
scip/pub_message.h
"
47
#include "
scip/scip_debug.h
"
48
#include "
scip/scip_prop.h
"
49
50
/** enable debug solution mechanism
51
*
52
* the debug solution mechanism allows to trace back the invalidation of
53
* a debug solution during the solution process of SCIP. It must be explicitly
54
* enabled for the SCIP data structure.
55
*
56
* @see debug.h for more information on debug solution mechanism
57
*/
58
void
SCIPenableDebugSol
(
59
SCIP
*
scip
/**< SCIP data structure */
60
)
61
{
62
SCIP_CALL_ABORT
(
SCIPcheckStage
(
scip
,
"SCIPenableDebugSol"
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
FALSE
) );
63
64
if
(
SCIPfindProp
(
scip
,
"debug"
) ==
NULL
)
65
(void)
SCIPdebugIncludeProp
(
scip
);
66
67
SCIPdebugSolEnable
(
scip
);
68
}
69
70
/** disable solution debugging mechanism
71
*
72
* @see debug.h for more information on debug solution mechanism
73
*/
74
void
SCIPdisableDebugSol
(
75
SCIP
*
scip
/**< SCIP data structure */
76
)
77
{
78
SCIP_CALL_ABORT
(
SCIPcheckStage
(
scip
,
"SCIPdisableDebugSol"
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
TRUE
,
FALSE
) );
79
80
SCIPdebugSolDisable
(
scip
);
81
}
debug.h
methods for debugging
SCIPdebugSolDisable
#define SCIPdebugSolDisable(scip)
Definition
debug.h:315
SCIPdebugSolEnable
#define SCIPdebugSolEnable(scip)
Definition
debug.h:314
SCIPcheckStage
#define SCIPcheckStage(scip, method, init, problem, transforming, transformed, initpresolve, presolving, exitpresolve, presolved, initsolve, solving, solved, exitsolve, freetrans, freescip)
Definition
debug.h:364
SCIPdebugIncludeProp
#define SCIPdebugIncludeProp(scip)
Definition
debug.h:310
NULL
#define NULL
Definition
def.h:255
TRUE
#define TRUE
Definition
def.h:100
FALSE
#define FALSE
Definition
def.h:101
SCIP_CALL_ABORT
#define SCIP_CALL_ABORT(x)
Definition
def.h:341
SCIPenableDebugSol
void SCIPenableDebugSol(SCIP *scip)
Definition
scip_debug.c:58
SCIPdisableDebugSol
void SCIPdisableDebugSol(SCIP *scip)
Definition
scip_debug.c:74
SCIPfindProp
SCIP_PROP * SCIPfindProp(SCIP *scip, const char *name)
Definition
scip_prop.c:333
scip
Definition
multiprecision.hpp:66
pub_message.h
public methods for message output
scip_debug.h
public methods for debugging
scip_prop.h
public methods for propagator plugins
SCIP
struct Scip SCIP
Definition
type_scip.h:39
scip_debug.c
© 2002-2026 by Zuse Institute Berlin (ZIB),
Imprint
Generated on
for SCIP Doxygen Documentation by
1.15.0