Scippy

    SCIP

    Solving Constraint Integer Programs

    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-2025 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 */
    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 )
    66
    68}
    69
    70/** disable solution debugging mechanism
    71 *
    72 * @see debug.h for more information on debug solution mechanism
    73 */
    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
    81}
    methods for debugging
    #define SCIPdebugSolDisable(scip)
    Definition: debug.h:315
    #define SCIPdebugSolEnable(scip)
    Definition: debug.h:314
    #define SCIPcheckStage(scip, method, init, problem, transforming, transformed, initpresolve, presolving, exitpresolve, presolved, initsolve, solving, solved, exitsolve, freetrans, freescip)
    Definition: debug.h:364
    #define SCIPdebugIncludeProp(scip)
    Definition: debug.h:310
    #define NULL
    Definition: def.h:248
    #define TRUE
    Definition: def.h:93
    #define FALSE
    Definition: def.h:94
    #define SCIP_CALL_ABORT(x)
    Definition: def.h:334
    void SCIPenableDebugSol(SCIP *scip)
    Definition: scip_debug.c:58
    void SCIPdisableDebugSol(SCIP *scip)
    Definition: scip_debug.c:74
    SCIP_PROP * SCIPfindProp(SCIP *scip, const char *name)
    Definition: scip_prop.c:333
    public methods for message output
    public methods for debugging
    public methods for propagator plugins