cons_origbranch.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program */
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-2018 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
33 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
34 
35 #ifndef GCG_CONS_ORIGBRANCH_H__
36 #define GCG_CONS_ORIGBRANCH_H__
37 
38 #include "scip/scip.h"
39 #include "type_branchgcg.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
46 extern
48  SCIP* scip
49  );
50 
52 extern
53 SCIP_RETCODE GCGcreateConsOrigbranch(
54  SCIP* scip,
55  SCIP_CONS** cons,
56  const char* name,
57  SCIP_NODE* node,
58  SCIP_CONS* parentcons,
59  SCIP_BRANCHRULE* branchrule,
60  GCG_BRANCHDATA* branchdata
62  );
63 
65 extern
67  SCIP* scip
68  );
69 
71 extern
73  SCIP* scip,
74  SCIP_CONS*** stack,
75  int* nstackelements
76  );
77 
79 extern
81  SCIP_CONS* cons,
82  GCG_BRANCHDATA* branchdata
83  );
84 
86 extern
88  SCIP_CONS* cons
89  );
90 
92 extern
93 SCIP_BRANCHRULE* GCGconsOrigbranchGetBranchrule(
94  SCIP_CONS* cons
95  );
96 
98 extern
99 SCIP_NODE* GCGconsOrigbranchGetNode(
100  SCIP_CONS* cons
101  );
102 
106 extern
108  SCIP_CONS* cons
110  );
111 
115 extern
117  SCIP_CONS* cons
118  );
119 
123 extern
125  SCIP_CONS* cons,
126  int childnr
127  );
128 
129 
133 extern
135  SCIP_CONS* cons,
136  SCIP_CONS* mastercons
137  );
138 
142 extern
144  SCIP_CONS* cons
146  );
147 
149 extern
150 SCIP_RETCODE GCGconsOrigbranchAddRootCons(
151  SCIP* scip
152  );
153 
155 extern
157  SCIP* scip
158  );
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif
void GCGconsOrigbranchGetStack(SCIP *scip, SCIP_CONS ***stack, int *nstackelements)
SCIP_RETCODE GCGcreateConsOrigbranch(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_NODE *node, SCIP_CONS *parentcons, SCIP_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
void GCGconsOrigbranchCheckConsistency(SCIP *scip)
GCG_BRANCHDATA * GCGconsOrigbranchGetBranchdata(SCIP_CONS *cons)
SCIP_RETCODE GCGconsOrigbranchAddRootCons(SCIP *scip)
void GCGconsOrigbranchSetMastercons(SCIP_CONS *cons, SCIP_CONS *mastercons)
SCIP_CONS * GCGconsOrigbranchGetChildcons(SCIP_CONS *cons, int childnr)
SCIP_BRANCHRULE * GCGconsOrigbranchGetBranchrule(SCIP_CONS *cons)
SCIP_NODE * GCGconsOrigbranchGetNode(SCIP_CONS *cons)
SCIP_CONS * GCGconsOrigbranchGetParentcons(SCIP_CONS *cons)
void GCGconsOrigbranchSetBranchdata(SCIP_CONS *cons, GCG_BRANCHDATA *branchdata)
SCIP_CONS * GCGconsOrigbranchGetActiveCons(SCIP *scip)
int GCGconsOrigbranchGetNChildconss(SCIP_CONS *cons)
type definitions for branching rules in GCG projects
SCIP_CONS * GCGconsOrigbranchGetMastercons(SCIP_CONS *cons)
SCIP_RETCODE SCIPincludeConshdlrOrigbranch(SCIP *scip)