Scippy

GCG

Branch-and-Price & Column Generation for Everyone

branch_compbnd.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 branch_compbnd.h
30 * @ingroup BRANCHINGRULES-GCG
31 * @brief component bound branching rule
32 * @author Til Mohr
33 *
34 * This is an implementation of the component bound branching rule based on the papers:
35 *
36 * J. Desrosiers, M. L¨ubbecke, G. Desaulniers,
37 * J. B. Gauthier (Juin 2024). Branch-and-Price, Technical report,
38 * Les Cahiers du GERAD G–2024–36, GERAD, HEC Montr´eal, Canada.
39 *
40 * Vanderbeck, François, and Laurence A. Wolsey. "An exact algorithm for IP column generation."
41 * Operations research letters 19.4 (1996): 151-159.
42 */
43
44/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
45
46#ifndef GCG_BRANCH_COMPBND_H__
47#define GCG_BRANCH_COMPBND_H__
48
49
50#include "scip/scip.h"
51#include "gcg/gcg.h"
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57typedef enum {
61
62typedef enum {
66
67/** component bound structure */
69{
70 SCIP_VAR* component; /**< variable to which this bound belongs */
71 GCG_COMPBND_SENSE sense; /**< sense of the bound */
72 int bound; /**< bound value */
73};
75
76/** creates the component bound branching rule and includes it in SCIP */
79 GCG* gcg /**< GCG data structure */
80 );
81
82/** returns true when the branch rule is the generic branchrule */
84 SCIP_BRANCHRULE* branchrule /**< branchrule to check */
85);
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
GCG_EXPORT SCIP_RETCODE GCGincludeBranchruleCompBnd(GCG *gcg)
GCG_COMPBND_SENSE
@ GCG_COMPBND_SENSE_LE
@ GCG_COMPBND_SENSE_GE
SCIP_Bool GCGisBranchruleCompBnd(SCIP_BRANCHRULE *branchrule)
GCG_BRANCH_TYPE
@ GCG_BRANCH_DOWN
@ GCG_BRANCH_UP
#define GCG_EXPORT
Definition: def.h:59
#define SCIP_Bool
GCG interface methods.
SCIP_VAR * component
GCG_COMPBND_SENSE sense
Definition: struct_gcg.h:55
enum SCIP_Retcode SCIP_RETCODE