Scippy

GCG

Branch-and-Price & Column Generation for Everyone

type_decomp.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* GCG --- Generic Column Generation */
5/* a Dantzig-Wolfe decomposition based extension */
6/* of the branch-cut-and-price framework */
7/* SCIP --- Solving Constraint Integer Programs */
8/* */
9/* Copyright (C) 2010-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file type_decomp.h
30 * @ingroup DECOMP
31 * @ingroup TYPEDEFINITIONS
32 * @brief type definitions for decomposition information in GCG projects
33 * @author Martin Bergner
34 */
35
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37
38#ifndef GCG_TYPE_DECOMP_H__
39#define GCG_TYPE_DECOMP_H__
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45typedef struct GCG_Decomp GCG_DECOMP; /**< decomposition structure */
46
47/** type of the decomposition */
49{
50 GCG_DECTYPE_UNKNOWN = 0, /**< unknown structure (used for initialization) */
51 GCG_DECTYPE_ARROWHEAD = 1, /**< arrowhead structure (linking variables and constraints) */
52 GCG_DECTYPE_STAIRCASE = 2, /**< staircase structure (linking variables between consecutive blocks) */
53 GCG_DECTYPE_DIAGONAL = 3, /**< block diagonal structure (no linking variables and constraints) */
54 GCG_DECTYPE_BORDERED = 4 /**< bordered block diagonal structure (linking constraints only) */
55};
56
57typedef enum Dectype GCG_DECTYPE; /**< decomposition type */
58
59/** the decomposition mode */
61{
62 GCG_DECMODE_DANTZIGWOLFE = 0, /**< Datizig-Wolfe reformulation */
63 GCG_DECMODE_BENDERS = 1, /**< Benders' decomposition */
64 GCG_DECMODE_ORIGINAL = 2, /**< the original problem will be solved without decomposition */
65 GCG_DECMODE_AUTO = 3, /**< the best of either Dantzig-Wolfe or Benders' will be applied */
66 GCG_DECMODE_UNKNOWN = 4 /**< the mode can not be determined from the given information */
67};
68
69typedef enum Decmode GCG_DECMODE; /**< decomposition mode */
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
Decmode
Definition: type_decomp.h:61
@ GCG_DECMODE_AUTO
Definition: type_decomp.h:65
@ GCG_DECMODE_BENDERS
Definition: type_decomp.h:63
@ GCG_DECMODE_DANTZIGWOLFE
Definition: type_decomp.h:62
@ GCG_DECMODE_ORIGINAL
Definition: type_decomp.h:64
@ GCG_DECMODE_UNKNOWN
Definition: type_decomp.h:66
enum Dectype GCG_DECTYPE
Definition: type_decomp.h:57
Dectype
Definition: type_decomp.h:49
@ GCG_DECTYPE_UNKNOWN
Definition: type_decomp.h:50
@ GCG_DECTYPE_DIAGONAL
Definition: type_decomp.h:53
@ GCG_DECTYPE_STAIRCASE
Definition: type_decomp.h:52
@ GCG_DECTYPE_ARROWHEAD
Definition: type_decomp.h:51
@ GCG_DECTYPE_BORDERED
Definition: type_decomp.h:54
enum Decmode GCG_DECMODE
Definition: type_decomp.h:69