Scippy

GCG

Branch-and-Price & Column Generation for Everyone

branch_empty.c
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_empty.c
30 * @brief branching rule for the original problem while real branching is applied in the master
31 * @author Marcel Schmickerath
32 * @author Martin Bergner
33 * @author Christian Puchert
34 */
35
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37/* #define SCIP_DEBUG */
38#include <assert.h>
39#include <string.h>
40
41#include "gcg/branch_empty.h"
42#include "gcg/relax_gcg.h"
43#include "gcg/gcg.h"
44#include "gcg/branch_orig.h"
46#include "gcg/cons_origbranch.h"
50#include "scip/branch_mostinf.h"
52#include "scip/branch_pscost.h"
53#include "scip/branch_random.h"
55#include "scip/cons_varbound.h"
56#include "gcg/type_branchgcg.h"
57
58#define BRANCHRULE_NAME "empty"
59#define BRANCHRULE_DESC "branching rule for the original problem while real branching is applied in the master"
60#define BRANCHRULE_PRIORITY 1000000
61#define BRANCHRULE_MAXDEPTH -1
62#define BRANCHRULE_MAXBOUNDDIST 1.0
63
65{
66 GCG* gcg; /**< GCG data structure */
67};
68
69/*
70 * Callback methods for enforcing branching constraints
71 */
72
73/** copy default SCIP branching rules in order to solve restrictions of the original problem as a subSCIP without
74 * Dantzig-Wolfe decomposition
75 */
76static
78 SCIP* scip
79)
80{
81 assert(scip != NULL);
82
91
92 return SCIP_OKAY;
93}
94
95/** for a new branch-and-bound node on the master problem
96 * add an original branching constraint that holds the branching decision to the corresponding node in the original problem
97 */
98static
100 GCG* gcg,
101 SCIP_NODE* childnode,
102 SCIP_CONS* masterbranchchildcons
103)
104{
105 SCIP* origprob;
106 char* consname;
107 GCG_BRANCHRULE* branchrule;
108 GCG_BRANCHDATA* branchdata;
109 SCIP_CONS* origcons;
110 SCIP_CONS** origbranchconss;
111 int norigbranchconss;
112
113 int i;
114
115 origprob = GCGgetOrigprob(gcg);
116 assert(origprob != NULL);
117 assert(masterbranchchildcons != NULL);
118
119 /* get name and branching information from the corresponding masterbranch constraint */
120 consname = GCGconsMasterbranchGetName(masterbranchchildcons);
121 branchrule = GCGconsMasterbranchGetBranchrule(masterbranchchildcons);
122 branchdata = GCGconsMasterbranchGetBranchdata(masterbranchchildcons);
123
124 /* create an origbranch constraint and add it to the node */
125 SCIPdebugMessage("Create original branching constraint %s\n", consname);
126 SCIP_CALL( GCGcreateConsOrigbranch(gcg, &origcons, consname, childnode,
127 GCGconsOrigbranchGetActiveCons(gcg), branchrule, branchdata) );
128 if( branchdata == NULL )
129 {
130 SCIPdebugMessage(" origbranch with no branchdata created\n");
131 }
132 SCIP_CALL( SCIPaddConsNode(origprob, childnode, origcons, NULL) );
133
134 /* add those constraints to the node that enforce the branching decision in the original problem */
135 origbranchconss = GCGconsMasterbranchGetOrigbranchConss(masterbranchchildcons);
136 norigbranchconss = GCGconsMasterbranchGetNOrigbranchConss(masterbranchchildcons);
137 for( i = 0; i < norigbranchconss; ++i )
138 {
139 SCIP_CALL( SCIPaddConsNode(origprob, childnode, origbranchconss[i], NULL) );
140 SCIPdebugMessage(" add cons %s to node\n", SCIPconsGetName(origbranchconss[i]));
141 }
142
143 /* notify the original and master branching constraint about each other */
144 GCGconsOrigbranchSetMastercons(origcons, masterbranchchildcons);
145 GCGconsMasterbranchSetOrigcons(masterbranchchildcons, origcons);
146 SCIPdebugMessage(" link branching conss %s <-> %s\n", SCIPconsGetName(masterbranchchildcons), SCIPconsGetName(origcons));
147
148 SCIP_CALL( SCIPreleaseCons(origprob, &origcons) );
149
150 /* release array of original branching constraints */
152
153 return SCIP_OKAY;
154}
155
156/* apply a branching decision on the original variables to the corresponding node */
157static
159 GCG* gcg,
160 SCIP_NODE* childnode,
161 SCIP_CONS* masterbranchchildcons
162 )
163{
164 GCG_BRANCHDATA* branchdata;
165 SCIP_VAR* boundvar;
166 GCG_BOUNDTYPE boundtype;
167 SCIP_Real newbound;
168 SCIP* origprob;
169 SCIP* masterprob;
170
171 /* get branching decision */
172 branchdata = GCGconsMasterbranchGetBranchdata(masterbranchchildcons);
173 assert(branchdata != NULL);
174 boundvar = GCGbranchOrigGetOrigvar(branchdata);
175 boundtype = GCGbranchOrigGetBoundtype(branchdata);
176 newbound = GCGbranchOrigGetNewbound(branchdata);
177
178 masterprob = GCGgetMasterprob(gcg);
179 origprob = GCGgetOrigprob(gcg);
180
181 assert(boundvar != NULL);
182 assert(boundtype == GCG_BOUNDTYPE_LOWER || boundtype == GCG_BOUNDTYPE_UPPER || boundtype == GCG_BOUNDTYPE_FIXED);
183 assert(SCIPgetStage(masterprob) <= SCIP_STAGE_SOLVING);
184
185 if( boundtype == GCG_BOUNDTYPE_LOWER || boundtype == GCG_BOUNDTYPE_FIXED )
186 {
187 if( SCIPisLE(origprob, newbound, SCIPvarGetUbLocal(boundvar)) )
188 {
189 if( SCIPisGT(origprob, newbound, SCIPvarGetLbLocal(boundvar)) )
190 SCIP_CALL( SCIPchgVarLbNode(origprob, childnode, boundvar, newbound) );
191 }
192 else
193 {
194 // cut off child nodes
195 SCIP_NODE* masterchildnode = GCGconsMasterbranchGetNode(masterbranchchildcons);
196 SCIPupdateNodeLowerbound(masterprob, masterchildnode, SCIPinfinity(masterprob));
197 SCIPupdateNodeLowerbound(origprob, childnode, SCIPinfinity(origprob));
198 }
199 }
200
201 if( boundtype == GCG_BOUNDTYPE_UPPER || boundtype == GCG_BOUNDTYPE_FIXED )
202 {
203 if( SCIPisGE(origprob, newbound, SCIPvarGetLbLocal(boundvar)) )
204 {
205 if( SCIPisLT(origprob, newbound, SCIPvarGetUbLocal(boundvar)) )
206 SCIP_CALL( SCIPchgVarUbNode(origprob, childnode, boundvar, newbound) );
207 }
208 else
209 {
210 // cut off child nodes
211 SCIP_NODE* masterchildnode = GCGconsMasterbranchGetNode(masterbranchchildcons);
212 SCIPupdateNodeLowerbound(masterprob, masterchildnode, SCIPinfinity(masterprob));
213 SCIPupdateNodeLowerbound(origprob, childnode, SCIPinfinity(origprob));
214 }
215 }
216
217 if( GCGvarGetBlock(boundvar) == -1 )
218 {
219 SCIP_CALL( GCGconsMasterbranchAddCopiedVarBndchg(gcg, masterbranchchildcons, boundvar, boundtype, newbound) );
220 }
221
222 return SCIP_OKAY;
223}
224
225/** creates branch-and-bound nodes in the original problem corresponding to those in the master problem */
226static
228 GCG* gcg, /**< SCIP data structure */
229 SCIP_RESULT* result /**< result pointer */
230)
231{
232 SCIP* origprob;
233 SCIP* masterprob;
234 SCIP_BRANCHRULE* branchrule;
235 SCIP_CONS* masterbranchcons;
236 int nchildnodes;
237 SCIP_Bool enforcebycons;
238
239 int i;
240
241 assert(gcg != NULL);
242 origprob = GCGgetOrigprob(gcg);
243 assert(origprob != NULL);
244 assert(result != NULL);
245
246 *result = SCIP_DIDNOTRUN;
247
248 /* get master problem */
249 masterprob = GCGgetMasterprob(gcg);
250 assert(masterprob != NULL);
251
252 if( SCIPgetStage(masterprob) > SCIP_STAGE_SOLVING)
253 {
254 *result = SCIP_CUTOFF;
255 return SCIP_OKAY;
256 }
257
259
260 /* get masterbranch constraint at the current node */
261 masterbranchcons = GCGconsMasterbranchGetActiveCons(gcg);
262
263 /* @todo: Why should this happen? */
264 if( masterbranchcons == NULL )
265 return SCIP_OKAY;
266
267 /* get the children of the current node */
268 nchildnodes = GCGconsMasterbranchGetNChildconss(masterbranchcons);
269
270 /* check if the focus node of the master problem has children */
271 if( nchildnodes <= 0 && SCIPgetStage(masterprob) != SCIP_STAGE_SOLVED && SCIPgetNChildren(masterprob) >= 1 )
272 {
273 SCIP_NODE* child;
274
275 SCIPdebugMessage("create dummy child in origprob, because there is also a child in the master\n");
276
277 /* create dummy child */
278 SCIP_CALL( SCIPcreateChild(origprob, &child, 0.0, SCIPgetLocalTransEstimate(origprob)) );
279
280 *result = SCIP_BRANCHED;
281 return SCIP_OKAY;
282 }
283
284 if( nchildnodes <= 0 )
285 {
286 SCIPdebugMessage("node cut off, since there is no successor node\n");
287
288 *result = SCIP_CUTOFF;
289 return SCIP_OKAY;
290 }
291
292 SCIP_CALL( SCIPgetBoolParam(origprob, "branching/orig/enforcebycons", &enforcebycons) );
293
294 /* for each child, create a corresponding node in the original problem as well as an origbranch constraint */
295 for( i = 0; i < nchildnodes; ++i )
296 {
297 SCIP_NODE* childnode;
298 SCIP_CONS* masterbranchchildcons = GCGconsMasterbranchGetChildcons(masterbranchcons, i);
299 assert(masterbranchchildcons != NULL);
300
301 /* create a child node and an origbranch constraint holding the branching decision */
302 SCIP_CALL( SCIPcreateChild(origprob, &childnode, 0.0, SCIPgetLocalTransEstimate(origprob)) );
303 SCIP_CALL( createOrigbranchConstraint(gcg, childnode, masterbranchchildcons) );
304
305 /* get branching rule */
306 branchrule = GCGbranchGetScipBranchrule(GCGconsMasterbranchGetBranchrule(masterbranchchildcons));
307
308 /* If a branching decision on an original variable was made, apply it */
309 if( !enforcebycons && branchrule != NULL && strcmp(SCIPbranchruleGetName(branchrule), "orig") == 0 )
310 {
311 SCIP_CALL( applyOriginalBranching(gcg, childnode, masterbranchchildcons) );
312 }
313
314 /* @fixme: this should actually be an assertion */
316 {
317 #ifdef SCIP_DEBUG
318 SCIPwarningMessage(origprob, "norignodes = %lld; nmasternodes = %lld\n",
321 #endif
322 }
323 }
324
325 *result = SCIP_BRANCHED;
326
327 assert(nchildnodes > 0);
328
329 return SCIP_OKAY;
330}
331
332
333/** copy method for empty branching rule */
334static
335SCIP_DECL_BRANCHCOPY(branchCopyEmpty)
336{
337 assert(branchrule != NULL);
338 assert(scip != NULL);
339
340 /* SubSCIPs are solved with SCIP rather than GCG;
341 * therefore, only the default SCIP branching rules are included into the subSCIP.
342 */
344
345 return SCIP_OKAY;
346}
347
348/** destructor of branching rule to free user data (called when SCIP is exiting) */
349static
350SCIP_DECL_BRANCHFREE(branchFreeEmpty)
351{
352 SCIP_BRANCHRULEDATA* branchruledata;
353
354 assert(branchrule != NULL);
355 assert(strcmp(SCIPbranchruleGetName(branchrule), BRANCHRULE_NAME) == 0);
356
357 branchruledata = SCIPbranchruleGetData(branchrule);
358 assert(branchruledata != NULL);
359
360 SCIPfreeMemory(scip, &branchruledata);
361
362 return SCIP_OKAY;
363}
364
365/** initialization method of branching rule (called after problem was transformed) */
366#define branchInitEmpty NULL
367
368/** deinitialization method of branching rule (called before transformed problem is freed) */
369#define branchExitEmpty NULL
370
371/** solving process initialization method of branching rule (called when branch and bound process is about to begin) */
372#define branchInitsolEmpty NULL
373
374/** solving process deinitialization method of branching rule (called before branch and bound process data is freed) */
375#define branchExitsolEmpty NULL
376
377/** branching execution method for fractional LP solutions */
378static
379SCIP_DECL_BRANCHEXECLP(branchExeclpEmpty)
380{ /*lint --e{715}*/
381 SCIP_BRANCHRULEDATA* branchruledata;
382 assert(branchrule != NULL);
383 assert(strcmp(SCIPbranchruleGetName(branchrule), BRANCHRULE_NAME) == 0);
384 assert(scip != NULL);
385 assert(result != NULL);
386 branchruledata = SCIPbranchruleGetData(branchrule);
387 assert(branchruledata != NULL);
388 assert(branchruledata->gcg != NULL);
389
390 SCIP_CALL( createBranchNodesInOrigprob(branchruledata->gcg, result) );
391
392 return SCIP_OKAY;
393}
394
395/** branching execution method relaxation solutions */
396static
397SCIP_DECL_BRANCHEXECEXT(branchExecextEmpty)
398{ /*lint --e{715}*/
399 SCIP_BRANCHRULEDATA* branchruledata;
400 assert(branchrule != NULL);
401 assert(strcmp(SCIPbranchruleGetName(branchrule), BRANCHRULE_NAME) == 0);
402 assert(scip != NULL);
403 assert(result != NULL);
404 branchruledata = SCIPbranchruleGetData(branchrule);
405 assert(branchruledata != NULL);
406 assert(branchruledata->gcg != NULL);
407
408 SCIP_CALL( createBranchNodesInOrigprob(branchruledata->gcg, result) );
409
410 return SCIP_OKAY;
411}
412
413/** branching execution method for not completely fixed pseudo solutions */
414static
415SCIP_DECL_BRANCHEXECPS(branchExecpsEmpty)
416{ /*lint --e{715}*/
417 SCIP_BRANCHRULEDATA* branchruledata;
418 assert(branchrule != NULL);
419 assert(strcmp(SCIPbranchruleGetName(branchrule), BRANCHRULE_NAME) == 0);
420 assert(scip != NULL);
421 assert(result != NULL);
422 branchruledata = SCIPbranchruleGetData(branchrule);
423 assert(branchruledata != NULL);
424 assert(branchruledata->gcg != NULL);
425
426 SCIP_CALL( createBranchNodesInOrigprob(branchruledata->gcg, result) );
427
428 return SCIP_OKAY;
429}
430
431
432/*
433 * branching specific interface methods
434 */
435
436/** creates the empty branching rule and includes it in SCIP */
438 GCG* gcg /**< SCIP data structure */
439)
440{
441 SCIP_BRANCHRULEDATA* branchruledata;
442 SCIP* origprob = GCGgetOrigprob(gcg);
443 assert(origprob != NULL);
444
445 /* create inference branching rule data */
446 SCIP_CALL( SCIPallocMemory(origprob, &branchruledata) );
447 branchruledata->gcg = gcg;
448
449 /* include branching rule */
452 branchCopyEmpty, branchFreeEmpty, branchInitEmpty, branchExitEmpty, branchInitsolEmpty,
453 branchExitsolEmpty, branchExeclpEmpty, branchExecextEmpty, branchExecpsEmpty,
454 branchruledata) );
455
456 return SCIP_OKAY;
457}
SCIP_RETCODE SCIPincludeBranchruleAllfullstrong(SCIP *scip)
#define BRANCHRULE_DESC
Definition: branch_empty.c:59
#define branchInitEmpty
Definition: branch_empty.c:366
#define BRANCHRULE_PRIORITY
Definition: branch_empty.c:60
#define branchExitsolEmpty
Definition: branch_empty.c:375
static SCIP_DECL_BRANCHEXECLP(branchExeclpEmpty)
Definition: branch_empty.c:379
static SCIP_DECL_BRANCHEXECEXT(branchExecextEmpty)
Definition: branch_empty.c:397
#define BRANCHRULE_NAME
Definition: branch_empty.c:58
#define branchInitsolEmpty
Definition: branch_empty.c:372
static SCIP_RETCODE createOrigbranchConstraint(GCG *gcg, SCIP_NODE *childnode, SCIP_CONS *masterbranchchildcons)
Definition: branch_empty.c:99
#define branchExitEmpty
Definition: branch_empty.c:369
static SCIP_RETCODE includeSCIPBranchingRules(SCIP *scip)
Definition: branch_empty.c:77
static SCIP_RETCODE applyOriginalBranching(GCG *gcg, SCIP_NODE *childnode, SCIP_CONS *masterbranchchildcons)
Definition: branch_empty.c:158
static SCIP_DECL_BRANCHEXECPS(branchExecpsEmpty)
Definition: branch_empty.c:415
static SCIP_RETCODE createBranchNodesInOrigprob(GCG *gcg, SCIP_RESULT *result)
Definition: branch_empty.c:227
#define BRANCHRULE_MAXDEPTH
Definition: branch_empty.c:61
static SCIP_DECL_BRANCHFREE(branchFreeEmpty)
Definition: branch_empty.c:350
static SCIP_DECL_BRANCHCOPY(branchCopyEmpty)
Definition: branch_empty.c:335
#define BRANCHRULE_MAXBOUNDDIST
Definition: branch_empty.c:62
SCIP_RETCODE GCGincludeBranchruleEmpty(GCG *gcg)
Definition: branch_empty.c:437
branching rule for original problem in GCG while real branching is in the master
GCG_BOUNDTYPE GCGbranchOrigGetBoundtype(GCG_BRANCHDATA *branchdata)
Definition: branch_orig.c:1104
SCIP_Real GCGbranchOrigGetNewbound(GCG_BRANCHDATA *branchdata)
Definition: branch_orig.c:1114
SCIP_VAR * GCGbranchOrigGetOrigvar(GCG_BRANCHDATA *branchdata)
Definition: branch_orig.c:1094
branching rule for original problem in GCG
SCIP_BRANCHRULE * GCGbranchGetScipBranchrule(GCG_BRANCHRULE *branchrule)
Definition: branchgcg.c:102
GCG_BRANCHRULE * GCGconsMasterbranchGetBranchrule(SCIP_CONS *cons)
void GCGconsMasterbranchSetOrigcons(SCIP_CONS *cons, SCIP_CONS *origcons)
int GCGconsMasterbranchGetNOrigbranchConss(SCIP_CONS *cons)
GCG_BRANCHDATA * GCGconsMasterbranchGetBranchdata(SCIP_CONS *cons)
char * GCGconsMasterbranchGetName(SCIP_CONS *cons)
SCIP_CONS * GCGconsMasterbranchGetActiveCons(GCG *gcg)
int GCGconsMasterbranchGetNChildconss(SCIP_CONS *cons)
SCIP_CONS * GCGconsMasterbranchGetChildcons(SCIP_CONS *cons, int childnr)
SCIP_RETCODE GCGconsMasterbranchAddCopiedVarBndchg(GCG *gcg, SCIP_CONS *cons, SCIP_VAR *var, GCG_BOUNDTYPE boundtype, SCIP_Real newbound)
SCIP_NODE * GCGconsMasterbranchGetNode(SCIP_CONS *cons)
SCIP_CONS ** GCGconsMasterbranchGetOrigbranchConss(SCIP_CONS *cons)
SCIP_RETCODE GCGconsMasterbranchReleaseOrigbranchConss(GCG *gcg, SCIP_CONS *cons)
constraint handler for storing the branching decisions at each node of the tree
SCIP_NODE * GCGconsOrigbranchGetNode(SCIP_CONS *cons)
SCIP_CONS * GCGconsOrigbranchGetActiveCons(GCG *gcg)
void GCGconsOrigbranchSetMastercons(SCIP_CONS *cons, SCIP_CONS *mastercons)
SCIP_RETCODE GCGcreateConsOrigbranch(GCG *gcg, SCIP_CONS **cons, const char *name, SCIP_NODE *node, SCIP_CONS *parentcons, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
constraint handler for storing the branching decisions at each node of the tree
#define SCIP_Bool
#define SCIP_Real
#define SCIP_CALL(x)
GCG interface methods.
int GCGvarGetBlock(SCIP_VAR *var)
Definition: gcgvar.c:1118
SCIP_RETCODE SCIPincludeBranchruleInference(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRandom(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleLeastinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleFullstrong(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleMostinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRelpscost(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchrulePscost(SCIP *scip)
SCIP * GCGgetOrigprob(GCG *gcg)
Definition: gcg.cpp:87
SCIP * GCGgetMasterprob(GCG *gcg)
Definition: gcg.cpp:99
SCIP_STAGE SCIPgetStage(SCIP *scip)
SCIP_RETCODE SCIPupdateNodeLowerbound(SCIP *scip, SCIP_NODE *node, SCIP_Real newbound)
SCIP_RETCODE SCIPaddConsNode(SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons, SCIP_NODE *validnode)
SCIP_Real SCIPgetLocalTransEstimate(SCIP *scip)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
const char * SCIPbranchruleGetName(SCIP_BRANCHRULE *branchrule)
SCIP_BRANCHRULEDATA * SCIPbranchruleGetData(SCIP_BRANCHRULE *branchrule)
SCIP_RETCODE SCIPincludeBranchrule(SCIP *scip, const char *name, const char *desc, int priority, int maxdepth, SCIP_Real maxbounddist, SCIP_DECL_BRANCHCOPY((*branchcopy)), SCIP_DECL_BRANCHFREE((*branchfree)), SCIP_DECL_BRANCHINIT((*branchinit)), SCIP_DECL_BRANCHEXIT((*branchexit)), SCIP_DECL_BRANCHINITSOL((*branchinitsol)), SCIP_DECL_BRANCHEXITSOL((*branchexitsol)), SCIP_DECL_BRANCHEXECLP((*branchexeclp)), SCIP_DECL_BRANCHEXECEXT((*branchexecext)), SCIP_DECL_BRANCHEXECPS((*branchexecps)), SCIP_BRANCHRULEDATA *branchruledata)
SCIP_RETCODE SCIPcreateChild(SCIP *scip, SCIP_NODE **node, SCIP_Real nodeselprio, SCIP_Real estimate)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
#define SCIPallocMemory(scip, ptr)
#define SCIPfreeMemory(scip, ptr)
SCIP_Longint SCIPnodeGetNumber(SCIP_NODE *node)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisGE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
int SCIPgetNChildren(SCIP *scip)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPchgVarUbNode(SCIP *scip, SCIP_NODE *node, SCIP_VAR *var, SCIP_Real newbound)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPchgVarLbNode(SCIP *scip, SCIP_NODE *node, SCIP_VAR *var, SCIP_Real newbound)
#define NULL
#define SCIPdebugMessage
SCIP_RETCODE GCGrestoreLimitSettings(GCG *gcg)
Definition: relax_gcg.c:5738
GCG relaxator.
Definition: struct_gcg.h:55
type definitions for branching rules in GCG projects
enum GCG_BoundType GCG_BOUNDTYPE
@ GCG_BOUNDTYPE_UPPER
@ GCG_BOUNDTYPE_FIXED
@ GCG_BOUNDTYPE_LOWER
SCIP_DIDNOTRUN
SCIP_CUTOFF
SCIP_BRANCHED
enum SCIP_Result SCIP_RESULT
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE
SCIP_STAGE_SOLVED
SCIP_STAGE_SOLVING