Scippy

    SCIP

    Solving Constraint Integer Programs

    struct_presol.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_presol.h
    26 * @ingroup INTERNALAPI
    27 * @brief datastructures for presolvers
    28 * @author Tobias Achterberg
    29 */
    30
    31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    32
    33#ifndef __SCIP_STRUCT_PRESOL_H__
    34#define __SCIP_STRUCT_PRESOL_H__
    35
    36
    37#include "scip/def.h"
    38#include "scip/type_clock.h"
    39#include "scip/type_presol.h"
    40
    41#ifdef __cplusplus
    42extern "C" {
    43#endif
    44
    45/** presolver */
    47{
    48 char* name; /**< name of presolver */
    49 char* desc; /**< description of presolver */
    50 SCIP_DECL_PRESOLCOPY ((*presolcopy)); /**< copy method of presolver or NULL if you don't want to copy your plugin into sub-SCIPs */
    51 SCIP_DECL_PRESOLFREE ((*presolfree)); /**< destructor of presolver to free user data (called when SCIP is exiting) */
    52 SCIP_DECL_PRESOLINIT ((*presolinit)); /**< initialization method of presolver (called after problem was transformed) */
    53 SCIP_DECL_PRESOLEXIT ((*presolexit)); /**< deinitialization method of presolver (called before transformed problem is freed) */
    54 SCIP_DECL_PRESOLINITPRE((*presolinitpre));/**< presolving initialization method of presolver (called when presolving is about to begin) */
    55 SCIP_DECL_PRESOLEXITPRE((*presolexitpre));/**< presolving deinitialization method of presolver (called after presolving has been finished) */
    56 SCIP_DECL_PRESOLEXEC ((*presolexec)); /**< execution method of presolver */
    57 SCIP_PRESOLDATA* presoldata; /**< presolver data */
    58 SCIP_CLOCK* setuptime; /**< time spend for setting up this presolver for the next stages */
    59 SCIP_CLOCK* presolclock; /**< presolving time */
    60 int priority; /**< priority of the presolver */
    61 int maxrounds; /**< maximal number of presolving rounds the presolver participates in (-1: no limit) */
    62 int lastnfixedvars; /**< number of variables fixed before the last call to the presolver */
    63 int lastnaggrvars; /**< number of variables aggregated before the last call to the presolver */
    64 int lastnchgvartypes; /**< number of variable type changes before the last call to the presolver */
    65 int lastnchgbds; /**< number of variable bounds tightened before the last call to the presolver */
    66 int lastnaddholes; /**< number of domain holes added before the last call to the presolver */
    67 int lastndelconss; /**< number of deleted constraints before the last call to the presolver */
    68 int lastnaddconss; /**< number of added constraints before the last call to the presolver */
    69 int lastnupgdconss; /**< number of upgraded constraints before the last call to the presolver */
    70 int lastnchgcoefs; /**< number of changed coefficients before the last call to the presolver */
    71 int lastnchgsides; /**< number of changed left or right hand sides before the last call */
    72 int nfixedvars; /**< total number of variables fixed by this presolver */
    73 int naggrvars; /**< total number of variables aggregated by this presolver */
    74 int nchgvartypes; /**< total number of variable type changes by this presolver */
    75 int nchgbds; /**< total number of variable bounds tightened by this presolver */
    76 int naddholes; /**< total number of domain holes added by this presolver */
    77 int ndelconss; /**< total number of deleted constraints by this presolver */
    78 int naddconss; /**< total number of added constraints by this presolver */
    79 int nupgdconss; /**< total number of upgraded constraints by this presolver */
    80 int nchgcoefs; /**< total number of changed coefficients by this presolver */
    81 int nchgsides; /**< total number of changed left or right hand sides by this presolver */
    82 int ncalls; /**< number of times the presolver was called and tried to find reductions */
    83 SCIP_Bool initialized; /**< is presolver initialized? */
    84 SCIP_Bool exact; /**< is the presolver safe to be used in exact solving mode? */
    85 SCIP_PRESOLTIMING timing; /**< timing of the presolver */
    86};
    87
    88#ifdef __cplusplus
    89}
    90#endif
    91
    92#endif
    common defines and data types used in all packages of SCIP
    #define SCIP_Bool
    Definition: def.h:91
    SCIP_CLOCK * setuptime
    Definition: struct_presol.h:58
    int lastnfixedvars
    Definition: struct_presol.h:62
    int lastnchgvartypes
    Definition: struct_presol.h:64
    int lastnupgdconss
    Definition: struct_presol.h:69
    SCIP_DECL_PRESOLCOPY((*presolcopy))
    SCIP_Bool initialized
    Definition: struct_presol.h:83
    SCIP_DECL_PRESOLFREE((*presolfree))
    SCIP_DECL_PRESOLEXIT((*presolexit))
    SCIP_CLOCK * presolclock
    Definition: struct_presol.h:59
    SCIP_DECL_PRESOLEXITPRE((*presolexitpre))
    SCIP_DECL_PRESOLINIT((*presolinit))
    SCIP_DECL_PRESOLEXEC((*presolexec))
    SCIP_DECL_PRESOLINITPRE((*presolinitpre))
    SCIP_PRESOLTIMING timing
    Definition: struct_presol.h:85
    SCIP_Bool exact
    Definition: struct_presol.h:84
    SCIP_PRESOLDATA * presoldata
    Definition: struct_presol.h:57
    type definitions for clocks and timing issues
    type definitions for presolvers
    struct SCIP_PresolData SCIP_PRESOLDATA
    Definition: type_presol.h:51
    unsigned int SCIP_PRESOLTIMING
    Definition: type_timing.h:61