Scippy

SCIP

Solving Constraint Integer Programs

branch.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2017 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file branch.h
17  * @ingroup INTERNALAPI
18  * @brief internal methods for branching rules and branching candidate storage
19  * @author Tobias Achterberg
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_BRANCH_H__
25 #define __SCIP_BRANCH_H__
26 
27 
28 #include "scip/def.h"
29 #include "blockmemshell/memory.h"
30 #include "scip/type_retcode.h"
31 #include "scip/type_result.h"
32 #include "scip/type_set.h"
33 #include "scip/type_stat.h"
34 #include "scip/type_misc.h"
35 #include "scip/type_event.h"
36 #include "scip/type_lp.h"
37 #include "scip/type_var.h"
38 #include "scip/type_prob.h"
39 #include "scip/type_tree.h"
40 #include "scip/type_sepastore.h"
41 #include "scip/type_branch.h"
42 #include "scip/pub_branch.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /*
49  * branching candidate storage methods
50  */
51 
52 /** creates a branching candidate storage */
53 extern
55  SCIP_BRANCHCAND** branchcand /**< pointer to store branching candidate storage */
56  );
57 
58 /** frees branching candidate storage */
59 extern
61  SCIP_BRANCHCAND** branchcand /**< pointer to store branching candidate storage */
62  );
63 
64 /** invalidates branching candidates storage */
65 extern
67  SCIP_BRANCHCAND* branchcand /**< pointer to store branching candidate storage */
68  );
69 
70 /** gets branching candidates for LP solution branching (fractional variables) */
71 extern
73  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
74  SCIP_SET* set, /**< global SCIP settings */
75  SCIP_STAT* stat, /**< problem statistics */
76  SCIP_LP* lp, /**< current LP data */
77  SCIP_VAR*** lpcands, /**< pointer to store the array of LP branching candidates, or NULL */
78  SCIP_Real** lpcandssol, /**< pointer to store the array of LP candidate solution values, or NULL */
79  SCIP_Real** lpcandsfrac, /**< pointer to store the array of LP candidate fractionalities, or NULL */
80  int* nlpcands, /**< pointer to store the number of LP branching candidates, or NULL */
81  int* npriolpcands, /**< pointer to store the number of candidates with maximal priority, or NULL */
82  int* nfracimplvars /**< pointer to store the number of implicit fractional variables, or NULL */
83  );
84 
85 
86 /** gets external branching candidates */
87 extern
89  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
90  SCIP_VAR*** externcands, /**< pointer to store the array of external branching candidates, or NULL */
91  SCIP_Real** externcandssol, /**< pointer to store the array of external candidate solution values, or NULL */
92  SCIP_Real** externcandsscore, /**< pointer to store the array of external candidate scores, or NULL */
93  int* nexterncands, /**< pointer to store the number of external branching candidates, or NULL */
94  int* nprioexterncands, /**< pointer to store the number of candidates with maximal priority, or NULL */
95  int* nprioexternbins, /**< pointer to store the number of binary candidates with maximal priority, or NULL */
96  int* nprioexternints, /**< pointer to store the number of integer candidates with maximal priority, or NULL */
97  int* nprioexternimpls /**< pointer to store the number of implicit integer candidates with maximal priority,
98  * or NULL */
99  );
100 
101 /** gets number of external branching candidates */
102 extern
104  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
105  );
106 
107 /** gets number of external branching candidates with maximal branch priority */
108 extern
110  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
111  );
112 
113 /** gets number of binary external branching candidates with maximal branch priority */
114 extern
116  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
117  );
118 
119 /** gets number of integer external branching candidates with maximal branch priority */
120 extern
122  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
123  );
124 
125 /** gets number of implicit integer external branching candidates with maximal branch priority */
126 extern
128  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
129  );
130 
131 /** gets number of continuous external branching candidates with maximal branch priority */
132 extern
134  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
135  );
136 
137 /** insert variable, its score and its solution value into the external branching candidate storage
138  * the absolute difference of the current lower and upper bounds of the variable must be at least epsilon
139  */
140 extern
142  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
143  SCIP_SET* set, /**< global SCIP settings */
144  SCIP_VAR* var, /**< variable to insert */
145  SCIP_Real score, /**< score of external candidate, e.g. infeasibility */
146  SCIP_Real solval /**< value of the variable in the current solution */
147  );
148 
149 /** removes all external candidates from the storage for external branching */
150 extern
152  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
153  );
154 
155 /** checks whether the given variable is contained in the candidate storage for external branching */
156 extern
158  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
159  SCIP_VAR* var /**< variable to look for */
160  );
161 
162 /** gets branching candidates for pseudo solution branching (non-fixed variables) */
163 extern
165  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
166  SCIP_SET* set, /**< global SCIP settings */
167  SCIP_PROB* prob, /**< problem data */
168  SCIP_VAR*** pseudocands, /**< pointer to store the array of pseudo branching candidates, or NULL */
169  int* npseudocands, /**< pointer to store the number of pseudo branching candidates, or NULL */
170  int* npriopseudocands /**< pointer to store the number of candidates with maximal priority, or NULL */
171  );
172 
173 /** gets number of branching candidates for pseudo solution branching (non-fixed variables) */
174 extern
176  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
177  );
178 
179 /** gets number of branching candidates with maximal branch priority for pseudo solution branching */
180 extern
182  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
183  );
184 
185 /** gets number of binary branching candidates with maximal branch priority for pseudo solution branching */
186 extern
188  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
189  );
190 
191 /** gets number of integer branching candidates with maximal branch priority for pseudo solution branching */
192 extern
194  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
195  );
196 
197 /** gets number of implicit integer branching candidates with maximal branch priority for pseudo solution branching */
198 extern
200  SCIP_BRANCHCAND* branchcand /**< branching candidate storage */
201  );
202 
203 /** removes variable from branching candidate list */
204 extern
206  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
207  SCIP_VAR* var /**< variable that changed its bounds */
208  );
209 
210 /** updates branching candidate list for a given variable */
211 extern
213  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
214  SCIP_SET* set, /**< global SCIP settings */
215  SCIP_VAR* var /**< variable that changed its bounds */
216  );
217 
218 /** updates branching priority of the given variable and update the pseude candidate array if needed */
219 extern
221  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
222  SCIP_SET* set, /**< global SCIP settings */
223  SCIP_VAR* var, /**< variable that changed its bounds */
224  int branchpriority /**< branch priority of the variable */
225  );
226 
227 
228 
229 
230 /*
231  * branching rules
232  */
233 
234 /** copies the given branchrule to a new scip */
235 extern
237  SCIP_BRANCHRULE* branchrule, /**< branchrule */
238  SCIP_SET* set /**< SCIP_SET of SCIP to copy to */
239  );
240 
241 /** creates a branching rule */
242 extern
244  SCIP_BRANCHRULE** branchrule, /**< pointer to store branching rule */
245  SCIP_SET* set, /**< global SCIP settings */
246  SCIP_MESSAGEHDLR* messagehdlr, /**< message handler */
247  BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
248  const char* name, /**< name of branching rule */
249  const char* desc, /**< description of branching rule */
250  int priority, /**< priority of the branching rule */
251  int maxdepth, /**< maximal depth level, up to which this branching rule should be used (or -1) */
252  SCIP_Real maxbounddist, /**< maximal relative distance from current node's dual bound to primal bound
253  * compared to best node's dual bound for applying branching rule
254  * (0.0: only on current best node, 1.0: on all nodes) */
255  SCIP_DECL_BRANCHCOPY ((*branchcopy)), /**< copy method of branching rule */
256  SCIP_DECL_BRANCHFREE ((*branchfree)), /**< destructor of branching rule */
257  SCIP_DECL_BRANCHINIT ((*branchinit)), /**< initialize branching rule */
258  SCIP_DECL_BRANCHEXIT ((*branchexit)), /**< deinitialize branching rule */
259  SCIP_DECL_BRANCHINITSOL((*branchinitsol)),/**< solving process initialization method of branching rule */
260  SCIP_DECL_BRANCHEXITSOL((*branchexitsol)),/**< solving process deinitialization method of branching rule */
261  SCIP_DECL_BRANCHEXECLP((*branchexeclp)), /**< branching execution method for fractional LP solutions */
262  SCIP_DECL_BRANCHEXECEXT((*branchexecext)),/**< branching execution method for external solutions */
263  SCIP_DECL_BRANCHEXECPS((*branchexecps)), /**< branching execution method for not completely fixed pseudo solutions */
264  SCIP_BRANCHRULEDATA* branchruledata /**< branching rule data */
265  );
266 
267 /** frees memory of branching rule */
268 extern
270  SCIP_BRANCHRULE** branchrule, /**< pointer to branching rule data structure */
271  SCIP_SET* set /**< global SCIP settings */
272  );
273 
274 /** initializes branching rule */
275 extern
277  SCIP_BRANCHRULE* branchrule, /**< branching rule */
278  SCIP_SET* set /**< global SCIP settings */
279  );
280 
281 /** deinitializes branching rule */
282 extern
284  SCIP_BRANCHRULE* branchrule, /**< branching rule */
285  SCIP_SET* set /**< global SCIP settings */
286  );
287 
288 /** informs branching rule that the branch and bound process is being started */
289 extern
291  SCIP_BRANCHRULE* branchrule, /**< branching rule */
292  SCIP_SET* set /**< global SCIP settings */
293  );
294 
295 /** informs branching rule that the branch and bound process data is being freed */
296 extern
298  SCIP_BRANCHRULE* branchrule, /**< branching rule */
299  SCIP_SET* set /**< global SCIP settings */
300  );
301 
302 /** executes branching rule for fractional LP solution */
303 extern
305  SCIP_BRANCHRULE* branchrule, /**< branching rule */
306  SCIP_SET* set, /**< global SCIP settings */
307  SCIP_STAT* stat, /**< problem statistics */
308  SCIP_TREE* tree, /**< branch and bound tree */
309  SCIP_SEPASTORE* sepastore, /**< separation storage */
310  SCIP_Real cutoffbound, /**< global upper cutoff bound */
311  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
312  SCIP_RESULT* result /**< pointer to store the result of the callback method */
313  );
314 
315 /** executes branching rule for external branching candidates */
316 extern
318  SCIP_BRANCHRULE* branchrule, /**< branching rule */
319  SCIP_SET* set, /**< global SCIP settings */
320  SCIP_STAT* stat, /**< problem statistics */
321  SCIP_TREE* tree, /**< branch and bound tree */
322  SCIP_SEPASTORE* sepastore, /**< separation storage */
323  SCIP_Real cutoffbound, /**< global upper cutoff bound */
324  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
325  SCIP_RESULT* result /**< pointer to store the result of the callback method */
326  );
327 
328 /** executes branching rule for not completely fixed pseudo solution */
329 extern
331  SCIP_BRANCHRULE* branchrule, /**< branching rule */
332  SCIP_SET* set, /**< global SCIP settings */
333  SCIP_STAT* stat, /**< problem statistics */
334  SCIP_TREE* tree, /**< branch and bound tree */
335  SCIP_Real cutoffbound, /**< global upper cutoff bound */
336  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
337  SCIP_RESULT* result /**< pointer to store the result of the callback method */
338  );
339 
340 /** sets priority of branching rule */
341 extern
343  SCIP_BRANCHRULE* branchrule, /**< branching rule */
344  SCIP_SET* set, /**< global SCIP settings */
345  int priority /**< new priority of the branching rule */
346  );
347 
348 /** sets maximal depth level, up to which this branching rule should be used (-1 for no limit) */
349 extern
351  SCIP_BRANCHRULE* branchrule, /**< branching rule */
352  int maxdepth /**< new maxdepth of the branching rule */
353  );
354 
355 /** sets maximal relative distance from current node's dual bound to primal bound for applying branching rule */
356 extern
358  SCIP_BRANCHRULE* branchrule, /**< branching rule */
359  SCIP_Real maxbounddist /**< new maxbounddist of the branching rule */
360  );
361 
362 /** sets copy method of branching rule */
363 extern
365  SCIP_BRANCHRULE* branchrule, /**< branching rule */
366  SCIP_DECL_BRANCHCOPY ((*branchcopy)) /**< copy method of branching rule or NULL if you don't want to copy your plugin into sub-SCIPs */
367  );
368 
369 /** sets destructor method of branching rule */
370 extern
372  SCIP_BRANCHRULE* branchrule, /**< branching rule */
373  SCIP_DECL_BRANCHFREE ((*branchfree)) /**< destructor of branching rule */
374  );
375 
376 /** sets initialization method of branching rule */
377 extern
379  SCIP_BRANCHRULE* branchrule, /**< branching rule */
380  SCIP_DECL_BRANCHINIT ((*branchinit)) /**< initialize branching rule */
381  );
382 
383 /** sets deinitialization method of branching rule */
384 extern
386  SCIP_BRANCHRULE* branchrule, /**< branching rule */
387  SCIP_DECL_BRANCHEXIT ((*branchexit)) /**< deinitialize branching rule */
388  );
389 
390 /** sets solving process initialization method of branching rule */
391 extern
393  SCIP_BRANCHRULE* branchrule, /**< branching rule */
394  SCIP_DECL_BRANCHINITSOL((*branchinitsol)) /**< solving process initialization method of branching rule */
395  );
396 
397 /** sets solving process deinitialization method of branching rule */
398 extern
400  SCIP_BRANCHRULE* branchrule, /**< branching rule */
401  SCIP_DECL_BRANCHEXITSOL((*branchexitsol)) /**< solving process deinitialization method of branching rule */
402  );
403 
404 /** sets branching execution method for fractional LP solutions */
405 extern
407  SCIP_BRANCHRULE* branchrule, /**< branching rule */
408  SCIP_DECL_BRANCHEXECLP((*branchexeclp)) /**< branching execution method for fractional LP solutions */
409  );
410 
411 /** sets branching execution method for external candidates */
412 extern
414  SCIP_BRANCHRULE* branchrule, /**< branching rule */
415  SCIP_DECL_BRANCHEXECEXT((*branchexecext)) /**< branching execution method for external candidates */
416  );
417 
418 /** sets branching execution method for not completely fixed pseudo solutions */
419 extern
421  SCIP_BRANCHRULE* branchrule, /**< branching rule */
422  SCIP_DECL_BRANCHEXECPS((*branchexecps)) /**< branching execution method for not completely fixed pseudo solutions */
423  );
424 
425 /** enables or disables all clocks of \p branchrule, depending on the value of the flag */
426 extern
428  SCIP_BRANCHRULE* branchrule, /**< the branching rule for which all clocks should be enabled or disabled */
429  SCIP_Bool enable /**< should the clocks of the branching rule be enabled? */
430  );
431 
432 /*
433  * branching methods
434  */
435 
436 /** calculates the branching score out of the gain predictions for a binary branching */
437 extern
439  SCIP_SET* set, /**< global SCIP settings */
440  SCIP_VAR* var, /**< variable, of which the branching factor should be applied, or NULL */
441  SCIP_Real downgain, /**< prediction of objective gain for rounding downwards */
442  SCIP_Real upgain /**< prediction of objective gain for rounding upwards */
443  );
444 
445 /** calculates the branching score out of the gain predictions for a branching with arbitrary many children */
446 extern
448  SCIP_SET* set, /**< global SCIP settings */
449  SCIP_VAR* var, /**< variable, of which the branching factor should be applied, or NULL */
450  int nchildren, /**< number of children that the branching will create */
451  SCIP_Real* gains /**< prediction of objective gain for each child */
452  );
453 
454 /** computes a branching point for a (not necessarily discrete) variable
455  * a suggested branching point is first projected onto the box
456  * if no point is suggested, then the value in the current LP or pseudo solution is used
457  * if this value is at infinity, then 0.0 projected onto the bounds and then moved inside the interval is used
458  * for a discrete variable, it is ensured that the returned value is fractional
459  * for a continuous variable, the parameter branching/clamp defines how far a branching point need to be from the bounds of a variable
460  * the latter is only applied if no point has been suggested, or the suggested point is not inside the variable's interval
461  */
462 extern
464  SCIP_SET* set, /**< global SCIP settings */
465  SCIP_TREE* tree, /**< branch and bound tree */
466  SCIP_VAR* var, /**< variable, of which the branching point should be computed */
467  SCIP_Real suggestion /**< suggestion for branching point, or SCIP_INVALID if no suggestion */
468  );
469 
470 /** calls branching rules to branch on an LP solution; if no fractional variables exist, the result is SCIP_DIDNOTRUN;
471  * if the branch priority of an unfixed variable is larger than the maximal branch priority of the fractional
472  * variables, pseudo solution branching is applied on the unfixed variables with maximal branch priority
473  */
474 extern
476  BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
477  SCIP_SET* set, /**< global SCIP settings */
478  SCIP_STAT* stat, /**< problem statistics */
479  SCIP_PROB* transprob, /**< transformed problem after presolve */
480  SCIP_PROB* origprob, /**< original problem */
481  SCIP_TREE* tree, /**< branch and bound tree */
482  SCIP_REOPT* reopt, /**< reoptimization data structure */
483  SCIP_LP* lp, /**< current LP data */
484  SCIP_SEPASTORE* sepastore, /**< separation storage */
485  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
486  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
487  SCIP_Real cutoffbound, /**< global upper cutoff bound */
488  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
489  SCIP_RESULT* result /**< pointer to store the result of the branching */
490  );
491 
492 /** calls branching rules to branch on an external solution; if no external branching candidates exist, the result is SCIP_DIDNOTRUN */
493 extern
495  BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
496  SCIP_SET* set, /**< global SCIP settings */
497  SCIP_STAT* stat, /**< problem statistics */
498  SCIP_PROB* transprob, /**< transformed problem after presolve */
499  SCIP_PROB* origprob, /**< original problem */
500  SCIP_TREE* tree, /**< branch and bound tree */
501  SCIP_REOPT* reopt, /**< reoptimization data structure */
502  SCIP_LP* lp, /**< current LP data */
503  SCIP_SEPASTORE* sepastore, /**< separation storage */
504  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
505  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
506  SCIP_Real cutoffbound, /**< global upper cutoff bound */
507  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
508  SCIP_RESULT* result /**< pointer to store the result of the branching */
509  );
510 
511 /** calls branching rules to branch on a pseudo solution; if no unfixed variables exist, the result is SCIP_DIDNOTRUN */
512 extern
514  BMS_BLKMEM* blkmem, /**< block memory for parameter settings */
515  SCIP_SET* set, /**< global SCIP settings */
516  SCIP_STAT* stat, /**< problem statistics */
517  SCIP_PROB* transprob, /**< transformed problem after presolve */
518  SCIP_PROB* origprob, /**< original problem */
519  SCIP_TREE* tree, /**< branch and bound tree */
520  SCIP_REOPT* reopt, /**< reoptimization data structure */
521  SCIP_LP* lp, /**< current LP data */
522  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
523  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
524  SCIP_Real cutoffbound, /**< global upper cutoff bound */
525  SCIP_Bool allowaddcons, /**< should adding constraints be allowed to avoid a branching? */
526  SCIP_RESULT* result /**< pointer to store the result of the branching */
527  );
528 
529 #ifdef __cplusplus
530 }
531 #endif
532 
533 #endif
enum SCIP_Result SCIP_RESULT
Definition: type_result.h:52
SCIP_RETCODE SCIPbranchExecPseudo(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:2642
void SCIPbranchruleSetFree(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHFREE((*branchfree)))
Definition: branch.c:1806
int SCIPbranchcandGetNPrioExternImpls(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:516
type definitions for miscellaneous datastructures
int SCIPbranchcandGetNPrioExternBins(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:496
int SCIPbranchcandGetNPseudoCands(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:821
#define SCIP_DECL_BRANCHEXECPS(x)
Definition: type_branch.h:161
struct SCIP_BranchruleData SCIP_BRANCHRULEDATA
Definition: type_branch.h:43
SCIP_RETCODE SCIPbranchruleExitsol(SCIP_BRANCHRULE *branchrule, SCIP_SET *set)
Definition: branch.c:1435
#define SCIP_DECL_BRANCHFREE(x)
Definition: type_branch.h:60
int SCIPbranchcandGetNExternCands(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:476
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
type definitions for global SCIP settings
void SCIPbranchruleSetCopy(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHCOPY((*branchcopy)))
Definition: branch.c:1795
int SCIPbranchcandGetNPrioExternCands(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:486
#define SCIP_DECL_BRANCHEXECEXT(x)
Definition: type_branch.h:140
type definitions for return codes for SCIP methods
public methods for branching rules
SCIP_RETCODE SCIPbranchcandCreate(SCIP_BRANCHCAND **branchcand)
Definition: branch.c:132
#define SCIP_DECL_BRANCHEXITSOL(x)
Definition: type_branch.h:98
int SCIPbranchcandGetNPrioPseudoImpls(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:861
SCIP_RETCODE SCIPbranchcandGetPseudoCands(SCIP_BRANCHCAND *branchcand, SCIP_SET *set, SCIP_PROB *prob, SCIP_VAR ***pseudocands, int *npseudocands, int *npriopseudocands)
Definition: branch.c:759
void SCIPbranchruleSetInit(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHINIT((*branchinit)))
Definition: branch.c:1817
void SCIPbranchcandClearExternCands(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:668
type definitions for branching rules
type definitions for problem statistics
type definitions for LP management
SCIP_RETCODE SCIPbranchruleExecPseudoSol(SCIP_BRANCHRULE *branchrule, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:1673
SCIP_Bool SCIPbranchcandContainsExternCand(SCIP_BRANCHCAND *branchcand, SCIP_VAR *var)
Definition: branch.c:683
#define SCIP_DECL_BRANCHINIT(x)
Definition: type_branch.h:68
int SCIPbranchcandGetNPrioExternInts(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:506
SCIP_RETCODE SCIPbranchruleInitsol(SCIP_BRANCHRULE *branchrule, SCIP_SET *set)
Definition: branch.c:1411
SCIP_RETCODE SCIPbranchcandAddExternCand(SCIP_BRANCHCAND *branchcand, SCIP_SET *set, SCIP_VAR *var, SCIP_Real score, SCIP_Real solval)
Definition: branch.c:538
#define SCIP_DECL_BRANCHCOPY(x)
Definition: type_branch.h:52
SCIP_RETCODE SCIPbranchcandGetExternCands(SCIP_BRANCHCAND *branchcand, SCIP_VAR ***externcands, SCIP_Real **externcandssol, SCIP_Real **externcandsscore, int *nexterncands, int *nprioexterncands, int *nprioexternbins, int *nprioexternints, int *nprioexternimpls)
Definition: branch.c:438
#define SCIP_DECL_BRANCHINITSOL(x)
Definition: type_branch.h:87
SCIP_RETCODE SCIPbranchcandGetLPCands(SCIP_BRANCHCAND *branchcand, SCIP_SET *set, SCIP_STAT *stat, SCIP_LP *lp, SCIP_VAR ***lpcands, SCIP_Real **lpcandssol, SCIP_Real **lpcandsfrac, int *nlpcands, int *npriolpcands, int *nfracimplvars)
Definition: branch.c:403
#define SCIP_DECL_BRANCHEXECLP(x)
Definition: type_branch.h:119
SCIP_RETCODE SCIPbranchExecLP(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_SEPASTORE *sepastore, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:2409
SCIP_RETCODE SCIPbranchruleExecLPSol(SCIP_BRANCHRULE *branchrule, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_SEPASTORE *sepastore, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:1459
int SCIPbranchcandGetNPrioPseudoCands(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:831
void SCIPbranchruleSetExecLp(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECLP((*branchexeclp)))
Definition: branch.c:1863
SCIP_Real SCIPbranchGetBranchingPoint(SCIP_SET *set, SCIP_TREE *tree, SCIP_VAR *var, SCIP_Real suggestion)
Definition: branch.c:2213
type definitions for problem variables
type definitions for storing separated cuts
void SCIPbranchruleSetInitsol(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHINITSOL((*branchinitsol)))
Definition: branch.c:1839
type definitions for managing events
SCIP_RETCODE SCIPbranchruleExecExternSol(SCIP_BRANCHRULE *branchrule, SCIP_SET *set, SCIP_STAT *stat, SCIP_TREE *tree, SCIP_SEPASTORE *sepastore, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:1566
void SCIPbranchruleSetExecExt(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECEXT((*branchexecext)))
Definition: branch.c:1874
#define SCIP_Bool
Definition: def.h:61
SCIP_RETCODE SCIPbranchruleExit(SCIP_BRANCHRULE *branchrule, SCIP_SET *set)
Definition: branch.c:1381
SCIP_RETCODE SCIPbranchruleInit(SCIP_BRANCHRULE *branchrule, SCIP_SET *set)
Definition: branch.c:1337
SCIP_RETCODE SCIPbranchcandFree(SCIP_BRANCHCAND **branchcand)
Definition: branch.c:172
SCIP_RETCODE SCIPbranchruleFree(SCIP_BRANCHRULE **branchrule, SCIP_SET *set)
Definition: branch.c:1311
void SCIPbranchruleSetExecPs(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECPS((*branchexecps)))
Definition: branch.c:1885
type definitions for branch and bound tree
void SCIPbranchruleSetMaxdepth(SCIP_BRANCHRULE *branchrule, int maxdepth)
Definition: branch.c:1950
void SCIPbranchruleSetPriority(SCIP_BRANCHRULE *branchrule, SCIP_SET *set, int priority)
Definition: branch.c:1926
type definitions for storing and manipulating the main problem
SCIP_RETCODE SCIPbranchcandUpdateVar(SCIP_BRANCHCAND *branchcand, SCIP_SET *set, SCIP_VAR *var)
Definition: branch.c:1099
int SCIPbranchcandGetNPrioExternConts(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:526
void SCIPbranchruleSetExit(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXIT((*branchexit)))
Definition: branch.c:1828
int SCIPbranchcandGetNPrioPseudoInts(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:851
SCIP_Real SCIPbranchGetScoreMultiple(SCIP_SET *set, SCIP_VAR *var, int nchildren, SCIP_Real *gains)
Definition: branch.c:2175
void SCIPbranchruleEnableOrDisableClocks(SCIP_BRANCHRULE *branchrule, SCIP_Bool enable)
Definition: branch.c:1984
#define SCIP_Real
Definition: def.h:135
result codes for SCIP callback methods
void SCIPbranchcandInvalidate(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:191
void SCIPbranchruleSetMaxbounddist(SCIP_BRANCHRULE *branchrule, SCIP_Real maxbounddist)
Definition: branch.c:1972
SCIP_RETCODE SCIPbranchExecExtern(BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_STAT *stat, SCIP_PROB *transprob, SCIP_PROB *origprob, SCIP_TREE *tree, SCIP_REOPT *reopt, SCIP_LP *lp, SCIP_SEPASTORE *sepastore, SCIP_BRANCHCAND *branchcand, SCIP_EVENTQUEUE *eventqueue, SCIP_Real cutoffbound, SCIP_Bool allowaddcons, SCIP_RESULT *result)
Definition: branch.c:2511
SCIP_RETCODE SCIPbranchruleCopyInclude(SCIP_BRANCHRULE *branchrule, SCIP_SET *set)
Definition: branch.c:1212
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:392
int SCIPbranchcandGetNPrioPseudoBins(SCIP_BRANCHCAND *branchcand)
Definition: branch.c:841
SCIP_RETCODE SCIPbranchcandRemoveVar(SCIP_BRANCHCAND *branchcand, SCIP_VAR *var)
Definition: branch.c:1082
SCIP_RETCODE SCIPbranchruleCreate(SCIP_BRANCHRULE **branchrule, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, 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)
Definition: branch.c:1231
SCIP_RETCODE SCIPbranchcandUpdateVarBranchPriority(SCIP_BRANCHCAND *branchcand, SCIP_SET *set, SCIP_VAR *var, int branchpriority)
Definition: branch.c:1139
#define SCIP_DECL_BRANCHEXIT(x)
Definition: type_branch.h:76
void SCIPbranchruleSetExitsol(SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXITSOL((*branchexitsol)))
Definition: branch.c:1850
SCIP_Real SCIPbranchGetScore(SCIP_SET *set, SCIP_VAR *var, SCIP_Real downgain, SCIP_Real upgain)
Definition: branch.c:2115
memory allocation routines