Scippy

    SCIP

    Solving Constraint Integer Programs

    build_dejavu_graph.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 build_dejavu_graph.h
    26 * @brief methods to build dejavu graph for symmetry detection
    27 * @author Christopher Hojny
    28 * @author Marc Pfetsch
    29 */
    30
    31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
    32
    33#ifndef __SCIP_BUILD_DEJAVU_GRAPH_H_
    34#define __SCIP_BUILD_DEJAVU_GRAPH_H_
    35
    36#include "scip/scip.h"
    37
    38#include <dejavu/dejavu.h>
    39
    40#ifdef __cplusplus
    41extern "C" {
    42#endif
    43
    46
    47/** compute generators of symmetry group */
    48SCIP_EXPORT
    50 SCIP* scip, /**< SCIP pointer */
    51 dejavu::static_graph* dejavugraph, /**< pointer to hold dejavu graph being created */
    52 SYM_GRAPH* graph, /**< symmetry detection graph */
    53 SCIP_Bool* success /**< pointer to store whether dejavugraph could be built */
    54 );
    55
    56
    57/** returns whether two given graphs are identical */
    58SCIP_EXPORT
    60 SCIP* scip, /**< SCIP pointer */
    61 dejavu::static_graph* dejavugraph, /**< pointer to hold dejavu graph being created */
    62 SYM_GRAPH* G1, /**< first graph */
    63 SYM_GRAPH* G2, /**< second graph */
    64 int* nnodes, /**< pointer to store number of nodes in dejavu graph */
    65 int* nnodesfromG1, /**< pointer to store number of nodes in dejavu graph arising from G1 */
    66 SCIP_Bool* success /**< pointer to store whether dejavugraph could be built */
    67 );
    68
    69
    70#ifdef __cplusplus
    71}
    72#endif
    73
    74#endif
    SCIP_RETCODE SYMbuildDejavuGraphCheck(SCIP *scip, dejavu::static_graph *dejavugraph, SYM_GRAPH *G1, SYM_GRAPH *G2, int *nnodes, int *nnodesfromG1, SCIP_Bool *success)
    SCIP_RETCODE SYMbuildDejavuGraph(SCIP *scip, dejavu::static_graph *dejavugraph, SYM_GRAPH *graph, SCIP_Bool *success)
    #define SCIP_Bool
    Definition: def.h:91
    #define nnodes
    Definition: gastrans.c:74
    SCIP callable library.
    structs for symmetry computations
    enum SCIP_Retcode SCIP_RETCODE
    Definition: type_retcode.h:63
    type definitions for symmetry computations