GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
branch_generic.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_generic.h
30 * @ingroup BRANCHINGRULES-GCG
31 * @brief branching rule based on vanderbeck's generic branching scheme
32 * @author Marcel Schmickerath
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_BRANCH_GENERIC_H__
38#define __SCIP_BRANCH_GENERIC_H__
39
40
41#include "scip/scip.h"
42#include "gcg/gcg.h"
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
52
53/** component bound structure */
55{
56 SCIP_VAR* component; /**< variable to which this bound belongs */
57 GCG_COMPSENSE sense; /**< sense of the bound */
58 SCIP_Real bound; /**< bound value */
59};
61
62/** strip structure */
64{
65 SCIP* scip; /**< SCIP data structure */
66 SCIP_VAR* mastervar; /**< master variable */
67 GCG_COMPSEQUENCE** C; /**< current set of comp bound sequences */
68 int Csize; /**< number of component bound sequences */
69 int* sequencesizes; /**< array of sizes of component bound sequences */
70};
71typedef struct GCG_Strip GCG_STRIP;
72
73/** creates the generic branching rule and includes it in SCIP */
76 GCG* gcg /**< GCG data structure */
77 );
78
79/** get component bound sequence */
81 GCG_BRANCHDATA* branchdata /**< branching data to initialize */
82 );
83
84/** get size of component bound sequence */
86 GCG_BRANCHDATA* branchdata /**< branching data to initialize */
87 );
88
89/** get id of pricing problem (or block) to which the constraint belongs */
91 GCG_BRANCHDATA* branchdata /**< branching data to initialize */
92 );
93
94/** get master constraint */
96 GCG_BRANCHDATA* branchdata /**< branching data to initialize */
97 );
98
99/** returns true when the branch rule is the generic branchrule */
101 GCG_BRANCHRULE* branchrule /**< branchrule to check */
102);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif
int GCGbranchGenericBranchdataGetConsSsize(GCG_BRANCHDATA *branchdata)
int GCGbranchGenericBranchdataGetConsblocknr(GCG_BRANCHDATA *branchdata)
SCIP_RETCODE GCGincludeBranchruleGeneric(GCG *gcg)
GCG_COMPSEQUENCE * GCGbranchGenericBranchdataGetConsS(GCG_BRANCHDATA *branchdata)
SCIP_CONS * GCGbranchGenericBranchdataGetMastercons(GCG_BRANCHDATA *branchdata)
SCIP_Bool GCGisBranchruleGeneric(GCG_BRANCHRULE *branchrule)
GCG_COMPSENSE
@ GCG_COMPSENSE_LT
@ GCG_COMPSENSE_GE
struct GCG_Strip GCG_STRIP
struct ComponentBoundSequence GCG_COMPSEQUENCE
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Bool
#define SCIP_Real
GCG interface methods.
SCIP_VAR * mastervar
GCG_COMPSEQUENCE ** C
int * sequencesizes
struct GCG_BranchData GCG_BRANCHDATA
struct GCG_Branchrule GCG_BRANCHRULE
struct SCIP_Cons SCIP_CONS
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
struct SCIP_Var SCIP_VAR