Scippy

    SCIP

    Solving Constraint Integer Programs

    type_iisfinder.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 type_iisfinder.h
    26 * @ingroup TYPEDEFINITIONS
    27 * @brief type definitions for IIS
    28 * @author Mark Turner
    29 */
    30
    31/** @defgroup DEFPLUGINS_IISFINDER Default irreducible infeasible subsystems
    32 * @ingroup DEFPLUGINS
    33 * @brief type definitions for IIS finder methods
    34 */
    35
    36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    37
    38#ifndef __SCIP_TYPE_IISFINDER_H__
    39#define __SCIP_TYPE_IISFINDER_H__
    40
    41#include "scip/def.h"
    42#include "scip/type_retcode.h"
    43#include "scip/type_scip.h"
    44#include "scip/type_lp.h"
    45#include "scip/type_result.h"
    46
    47#ifdef __cplusplus
    48extern "C" {
    49#endif
    50
    51typedef struct SCIP_IISfinder SCIP_IISFINDER; /**< IIS finder data structure */
    52typedef struct SCIP_IISfinderData SCIP_IISFINDERDATA; /**< IIS finder specific data */
    53typedef struct SCIP_IIS SCIP_IIS; /**< IIS storage data structure */
    54
    55
    56/** copy method for IIS finder plugins (called when SCIP copies plugins)
    57 *
    58 * input:
    59 * - scip : SCIP main data structure
    60 * - iisfinder : the IIS (irreducible infeasible subsystem) finder itself
    61 */
    62#define SCIP_DECL_IISFINDERCOPY(x) SCIP_RETCODE x (SCIP* scip, SCIP_IISFINDER* iisfinder)
    63
    64/** destructor of IIS finder plugins to free user data (called when SCIP is exiting)
    65 *
    66 * input:
    67 * - scip : SCIP main data structure
    68 * - iisfinder : the IIS finder itself
    69 */
    70#define SCIP_DECL_IISFINDERFREE(x) SCIP_RETCODE x (SCIP* scip, SCIP_IISFINDER* iisfinder)
    71
    72/** IIS finder execution method to generate an IIS
    73 *
    74 * This method is called to generate an IIS (irreducible infeasible subsystem) for an infeasible problem.
    75 * It creates a copy of the SCIP instance and performs different algorithms to create a still infeasible
    76 * reduced problem.
    77 *
    78 * input:
    79 * - iis : The IIS data structure. It contains a subscip.
    80 * - iisfinder : the IIS finder itself
    81 * - result : pointer to store the result of the IIS finder call
    82 *
    83 * possible return values for *result (if more than one applies, the first in the list should be used):
    84 * - SCIP_SUCCESS : the IIS finder succeeded
    85 * - SCIP_DIDNOTFIND : the IIS finder did not find a small enough infeasible subsystem.
    86 * - SCIP_DIDNOTRUN : the IIS finder did not run because some criteria was not satisfied
    87 */
    88#define SCIP_DECL_IISFINDEREXEC(x) SCIP_RETCODE x (SCIP_IIS* iis, SCIP_IISFINDER* iisfinder, SCIP_RESULT* result)
    89
    90#ifdef __cplusplus
    91}
    92#endif
    93
    94#endif
    common defines and data types used in all packages of SCIP
    struct SCIP_IISfinderData SCIP_IISFINDERDATA
    type definitions for LP management
    result codes for SCIP callback methods
    type definitions for return codes for SCIP methods
    type definitions for SCIP's main datastructure