Scippy

    SCIP

    Solving Constraint Integer Programs

    scip_table.h
    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_table.h
    26 * @ingroup PUBLICCOREAPI
    27 * @brief public methods for statistics table plugins
    28 * @author Tobias Achterberg
    29 * @author Timo Berthold
    30 * @author Thorsten Koch
    31 * @author Alexander Martin
    32 * @author Marc Pfetsch
    33 * @author Kati Wolter
    34 * @author Gregor Hendel
    35 * @author Leona Gottwald
    36 * @author Mohammed Ghannam
    37 */
    38
    39/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    40
    41#ifndef __SCIP_SCIP_TABLE_H__
    42#define __SCIP_SCIP_TABLE_H__
    43
    44
    45#include "scip/def.h"
    46#include "scip/type_retcode.h"
    47#include "scip/type_scip.h"
    48#include "scip/type_set.h"
    49#include "scip/type_table.h"
    50
    51#ifdef __cplusplus
    52extern "C" {
    53#endif
    54
    55/**@addtogroup PublicTableMethods
    56 *
    57 * @{
    58 */
    59
    60/** creates a statistics table and includes it in SCIP */
    61SCIP_EXPORT
    63 SCIP* scip, /**< SCIP data structure */
    64 const char* name, /**< name of statistics table */
    65 const char* desc, /**< description of statistics table */
    66 SCIP_Bool active, /**< should the table be activated by default? */
    67 SCIP_DECL_TABLECOPY ((*tablecopy)), /**< copy method of statistics table or NULL if you don't want to copy your plugin into sub-SCIPs */
    68 SCIP_DECL_TABLEFREE ((*tablefree)), /**< destructor of statistics table */
    69 SCIP_DECL_TABLEINIT ((*tableinit)), /**< initialize statistics table */
    70 SCIP_DECL_TABLEEXIT ((*tableexit)), /**< deinitialize statistics table */
    71 SCIP_DECL_TABLEINITSOL ((*tableinitsol)), /**< solving process initialization method of statistics table */
    72 SCIP_DECL_TABLEEXITSOL ((*tableexitsol)), /**< solving process deinitialization method of statistics table */
    73 SCIP_DECL_TABLEOUTPUT ((*tableoutput)), /**< output method */
    74 SCIP_DECL_TABLECOLLECT((*tablecollect)), /**< data collection method */
    75 SCIP_TABLEDATA* tabledata, /**< statistics table data */
    76 int position, /**< position of statistics table */
    77 SCIP_STAGE earlieststage /**< output of the statistics table is only printed from this stage onwards */
    78 );
    79
    80/** returns the statistics table of the given name, or NULL if not existing */
    81SCIP_EXPORT
    83 SCIP* scip, /**< SCIP data structure */
    84 const char* name /**< name of statistics table */
    85 );
    86
    87/** returns the array of currently available statistics tables */
    88SCIP_EXPORT
    90 SCIP* scip /**< SCIP data structure */
    91 );
    92
    93/** returns the number of currently available statistics tables */
    94SCIP_EXPORT
    96 SCIP* scip /**< SCIP data structure */
    97 );
    98
    99/** @} */
    100
    101#ifdef __cplusplus
    102}
    103#endif
    104
    105#endif
    static GRAPHNODE ** active
    common defines and data types used in all packages of SCIP
    #define SCIP_Bool
    Definition: def.h:91
    SCIP_TABLE ** SCIPgetTables(SCIP *scip)
    Definition: scip_table.c:114
    int SCIPgetNTables(SCIP *scip)
    Definition: scip_table.c:125
    SCIP_TABLE * SCIPfindTable(SCIP *scip, const char *name)
    Definition: scip_table.c:101
    SCIP_RETCODE SCIPincludeTable(SCIP *scip, const char *name, const char *desc, SCIP_Bool active, SCIP_DECL_TABLECOPY((*tablecopy)), SCIP_DECL_TABLEFREE((*tablefree)), SCIP_DECL_TABLEINIT((*tableinit)), SCIP_DECL_TABLEEXIT((*tableexit)), SCIP_DECL_TABLEINITSOL((*tableinitsol)), SCIP_DECL_TABLEEXITSOL((*tableexitsol)), SCIP_DECL_TABLEOUTPUT((*tableoutput)), SCIP_DECL_TABLECOLLECT((*tablecollect)), SCIP_TABLEDATA *tabledata, int position, SCIP_STAGE earlieststage)
    Definition: scip_table.c:62
    type definitions for return codes for SCIP methods
    enum SCIP_Retcode SCIP_RETCODE
    Definition: type_retcode.h:63
    type definitions for SCIP's main datastructure
    type definitions for global SCIP settings
    enum SCIP_Stage SCIP_STAGE
    Definition: type_set.h:59
    type definitions for displaying statistics tables
    #define SCIP_DECL_TABLEFREE(x)
    Definition: type_table.h:77
    #define SCIP_DECL_TABLEINITSOL(x)
    Definition: type_table.h:104
    struct SCIP_TableData SCIP_TABLEDATA
    Definition: type_table.h:60
    #define SCIP_DECL_TABLEOUTPUT(x)
    Definition: type_table.h:124
    #define SCIP_DECL_TABLEINIT(x)
    Definition: type_table.h:85
    #define SCIP_DECL_TABLEEXITSOL(x)
    Definition: type_table.h:115
    #define SCIP_DECL_TABLECOPY(x)
    Definition: type_table.h:69
    #define SCIP_DECL_TABLECOLLECT(x)
    Definition: type_table.h:133
    #define SCIP_DECL_TABLEEXIT(x)
    Definition: type_table.h:93