Scippy

    SCIP

    Solving Constraint Integer Programs

    struct_cutsel.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 struct_cutsel.h
    26 * @ingroup INTERNALAPI
    27 * @brief data structures for cut selectors
    28 * @author Felipe Serrano
    29 * @author Mark Turner
    30 */
    31
    32/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    33
    34#ifndef __SCIP_STRUCT_CUTSEL_H__
    35#define __SCIP_STRUCT_CUTSEL_H__
    36
    37
    38#include "scip/def.h"
    39#include "scip/type_cutsel.h"
    40
    41#ifdef __cplusplus
    42extern "C" {
    43#endif
    44
    45/** cut selector */
    47{
    48 char* name; /**< name of cut selector */
    49 char* desc; /**< description of cut selector */
    50 SCIP_DECL_CUTSELCOPY ((*cutselcopy)); /**< copy method of cut selector or NULL if you don't want to copy your plugin into sub-SCIPs */
    51 SCIP_DECL_CUTSELFREE ((*cutselfree)); /**< destructor of cut selector */
    52 SCIP_DECL_CUTSELINIT ((*cutselinit)); /**< initialize cut selector */
    53 SCIP_DECL_CUTSELEXIT ((*cutselexit)); /**< deinitialize cut selector */
    54 SCIP_DECL_CUTSELINITSOL((*cutselinitsol));/**< solving process initialization method of cut selector */
    55 SCIP_DECL_CUTSELEXITSOL((*cutselexitsol));/**< solving process deinitialization method of cut selector */
    56 SCIP_DECL_CUTSELSELECT((*cutselselect)); /**< cut selection method */
    57 SCIP_CLOCK* setuptime; /**< time spend for setting up this cut selector for the next stages */
    58 SCIP_CLOCK* cutseltime; /**< cut selector execution time */
    59 SCIP_CUTSELDATA* cutseldata; /**< cut selector data */
    60 int priority; /**< priority of the cut selector */
    61 SCIP_Bool initialized; /**< is cut selector initialized? */
    62 SCIP_Longint ncalls; /**< number of times, this cutselector was called */
    63 SCIP_Longint nrootcalls; /**< number of times, this cutselector was called */
    64 SCIP_Longint nrootcutsselected; /**< number of cuts selected at the root */
    65 SCIP_Longint nrootcutsforced; /**< number of forced cuts at the root */
    66 SCIP_Longint nrootcutsfiltered; /**< number of cuts filtered at the root */
    67 SCIP_Longint nlocalcutsselected; /**< number of local cuts selected */
    68 SCIP_Longint nlocalcutsforced; /**< number of forced local cuts */
    69 SCIP_Longint nlocalcutsfiltered; /**< number of local cuts filtered */
    70};
    71
    72#ifdef __cplusplus
    73}
    74#endif
    75
    76#endif
    common defines and data types used in all packages of SCIP
    #define SCIP_Longint
    Definition: def.h:141
    #define SCIP_Bool
    Definition: def.h:91
    SCIP_CLOCK * setuptime
    Definition: struct_cutsel.h:57
    SCIP_DECL_CUTSELEXITSOL((*cutselexitsol))
    SCIP_DECL_CUTSELFREE((*cutselfree))
    SCIP_Longint nrootcutsforced
    Definition: struct_cutsel.h:65
    SCIP_CLOCK * cutseltime
    Definition: struct_cutsel.h:58
    SCIP_Longint nlocalcutsselected
    Definition: struct_cutsel.h:67
    SCIP_DECL_CUTSELINITSOL((*cutselinitsol))
    SCIP_Longint nrootcalls
    Definition: struct_cutsel.h:63
    SCIP_DECL_CUTSELCOPY((*cutselcopy))
    SCIP_DECL_CUTSELEXIT((*cutselexit))
    SCIP_CUTSELDATA * cutseldata
    Definition: struct_cutsel.h:59
    SCIP_Bool initialized
    Definition: struct_cutsel.h:61
    SCIP_DECL_CUTSELSELECT((*cutselselect))
    SCIP_Longint nrootcutsselected
    Definition: struct_cutsel.h:64
    SCIP_Longint nlocalcutsfiltered
    Definition: struct_cutsel.h:69
    SCIP_Longint ncalls
    Definition: struct_cutsel.h:62
    SCIP_Longint nlocalcutsforced
    Definition: struct_cutsel.h:68
    SCIP_Longint nrootcutsfiltered
    Definition: struct_cutsel.h:66
    SCIP_DECL_CUTSELINIT((*cutselinit))
    type definitions for cut selectors
    struct SCIP_CutselData SCIP_CUTSELDATA
    Definition: type_cutsel.h:53