#include "gcg/branch_compbnd.h"#include "gcg/cons_integralorig.h"#include "gcg/cons_masterbranch.h"#include "gcg/gcg.h"#include "gcg/pricer_gcg.h"#include "gcg/relax_gcg.h"#include "gcg/pub_extendedmasterconsdata.h"#include "gcg/extendedmasterconsdata.h"#include "gcg/pub_gcgvar.h"#include "gcg/type_extendedmasterconsdata.h"#include "gcg/type_branchgcg.h"#include "scip/cons_linear.h"#include "scip/cons_varbound.h"Go to the source code of this file.
Data Structures | |
| struct | SCIP_BranchruleData |
| struct | GCG_BranchData |
Macros | |
| #define | BRANCHRULE_NAME "compbnd" |
| #define | BRANCHRULE_DESC "component bound branching" |
| #define | BRANCHRULE_PRIORITY -200 |
| #define | BRANCHRULE_MAXDEPTH -1 |
| #define | BRANCHRULE_MAXBOUNDDIST 1.0 |
| #define | CHOOSE_COMPBND(x) |
| #define | CHOOSE_COMPBNDSEQ(x) |
| #define | FLOOR(scip, x) |
| #define | CEIL(scip, x) |
| #define | branchExitCompBnd NULL |
| #define | branchInitsolCompBnd NULL |
| #define | branchExitsolCompBnd NULL |
| #define | branchCopyCompBnd NULL |
| #define | branchMasterSolvedCompBnd NULL |
Functions | |
| static void | freeComponentBoundSequence (SCIP *scip, GCG_COMPBND **compBndSeq, int *compBndSeqSize) |
| static SCIP_RETCODE | initNodeBranchdata (SCIP *scip, GCG_BRANCHDATA **nodebranchdata, GCG_BRANCH_TYPE branchtype, int constant, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr) |
| static SCIP_RETCODE | simplifyComponentBoundSequence (SCIP *scip, GCG_COMPBND **compBndSeq, int *compBndSeqSize) |
| static SCIP_Real | getGeneratorEntryCol (SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, SCIP_VAR *origvar) |
| static SCIP_Real | getGeneratorEntry (SCIP_VAR *mastervar, SCIP_VAR *origvar) |
| static SCIP_Bool | isColInCompBndSeq (SCIP *scip, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, GCG_COMPBND *compBndSeq, int compBndSeqSize) |
| static SCIP_Bool | isMasterVarInCompBndSeq (SCIP *scip, SCIP_VAR *mastervar, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr) |
| static SCIP_RETCODE | addVarToMasterbranch (GCG *gcg, SCIP_VAR *mastervar, GCG_BRANCHDATA *branchdata) |
| static | GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF (branchGetExtendedmasterconsCoeffCompBnd) |
| static SCIP_RETCODE | createBranchingCons (GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_NODE *node, GCG_BRANCHDATA *branchdata) |
| static SCIP_RETCODE | createChildNodesCompBndSeq (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr) |
| static SCIP_Real | calcFractionality (SCIP *masterscip, SCIP_VAR **mastervars, int nmastervars) |
| static SCIP_RETCODE | initIndexSet (SCIP *scip, SCIP_VAR ***indexSet, int *indexSetSize, SCIP_VAR **mastervars, int mastervarsSize) |
| static SCIP_Real | getLowerBound (SCIP *scip, SCIP_VAR *origvar, GCG_COMPBND *compBndSeq, int compBndSeqSize) |
| static SCIP_Real | getUpperBound (SCIP *scip, SCIP_VAR *origvar, GCG_COMPBND *compBndSeq, int compBndSeqSize) |
| static SCIP_RETCODE | separation_helper (GCG *gcg, SCIP_VAR **satisfyingMastervars, int satisfyingMastervarsSize, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr, CHOOSE_COMPBND((*chooseCompBnd)), GCG_COMPBND ***foundCompBndSeqList, int **foundCompBndSeqSizeList, int *foundCompBndSeqListSize, SCIP_RESULT *result) |
| static SCIP_RETCODE | findSatisfyingMastervars (SCIP *masterscip, SCIP_VAR ***satisfyingMastervars, int *satisfyingMastervarsSize, int blocknr, GCG_COMPBND *compBndSeq, int compBndSeqSize) |
| static | CHOOSE_COMPBND (chooseMaxMin) |
| static | CHOOSE_COMPBND (chooseMostDistinctValuesMedian) |
| static SCIP_Real | calcSum (SCIP *masterscip, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr) |
| static | CHOOSE_COMPBNDSEQ (chooseClosestToKHalf) |
| static | CHOOSE_COMPBNDSEQ (chooseMostFractional) |
| static | CHOOSE_COMPBNDSEQ (chooseSmallestSize) |
| static SCIP_RETCODE | separation (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_COMPBND **compBndSeq, int *compBndSeqSize, int blocknr, SCIP_RESULT *result) |
| static SCIP_RETCODE | initBranch (GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_RESULT *result) |
| static | SCIP_DECL_BRANCHFREE (branchFreeCompBnd) |
| static | SCIP_DECL_BRANCHEXECLP (branchExeclpCompBnd) |
| static | SCIP_DECL_BRANCHEXECEXT (branchExecextCompBnd) |
| static | SCIP_DECL_BRANCHEXECPS (branchExecpsCompBnd) |
| static | GCG_DECL_BRANCHACTIVEMASTER (branchActiveMasterCompBnd) |
| static | GCG_DECL_BRANCHDEACTIVEMASTER (branchDeactiveMasterCompBnd) |
| static | GCG_DECL_BRANCHPROPMASTER (branchPropMasterCompBnd) |
| static | GCG_DECL_BRANCHDATADELETE (branchDataDeleteCompBnd) |
| static | GCG_DECL_BRANCHNEWCOL (branchNewColCompBnd) |
| static | GCG_DECL_BRANCHGETEXTENDEDMASTERCONS (branchGetExtendedmasterconsCompBnd) |
| static | SCIP_DECL_BRANCHINIT (branchInitCompBnd) |
| SCIP_RETCODE | GCGincludeBranchruleCompBnd (GCG *gcg) |
| SCIP_Bool | GCGisBranchruleCompBnd (SCIP_BRANCHRULE *branchrule) |
Macro Definition Documentation
◆ BRANCHRULE_NAME
| #define BRANCHRULE_NAME "compbnd" |
name of branching rule
Definition at line 67 of file branch_compbnd.c.
◆ BRANCHRULE_DESC
| #define BRANCHRULE_DESC "component bound branching" |
short description of branching rule
Definition at line 68 of file branch_compbnd.c.
◆ BRANCHRULE_PRIORITY
| #define BRANCHRULE_PRIORITY -200 |
priority of this branching rule
Definition at line 69 of file branch_compbnd.c.
◆ BRANCHRULE_MAXDEPTH
| #define BRANCHRULE_MAXDEPTH -1 |
maximal depth level of the branching rule
Definition at line 70 of file branch_compbnd.c.
◆ BRANCHRULE_MAXBOUNDDIST
| #define BRANCHRULE_MAXBOUNDDIST 1.0 |
maximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for applying branching
Definition at line 71 of file branch_compbnd.c.
◆ CHOOSE_COMPBND
| #define CHOOSE_COMPBND | ( | x | ) |
define the signature of functions to choose the component bound
Definition at line 106 of file branch_compbnd.c.
Referenced by CHOOSE_COMPBND(), CHOOSE_COMPBND(), and separation_helper().
◆ CHOOSE_COMPBNDSEQ
| #define CHOOSE_COMPBNDSEQ | ( | x | ) |
define the signature of functions that chose one component bound sequence out of many
Definition at line 109 of file branch_compbnd.c.
Referenced by CHOOSE_COMPBNDSEQ(), CHOOSE_COMPBNDSEQ(), and CHOOSE_COMPBNDSEQ().
◆ FLOOR
Definition at line 116 of file branch_compbnd.c.
Referenced by createChildNodesCompBndSeq(), and separation_helper().
◆ CEIL
Definition at line 117 of file branch_compbnd.c.
Referenced by createChildNodesCompBndSeq().
◆ branchExitCompBnd
| #define branchExitCompBnd NULL |
deinitialization method of branching rule (called before transformed problem is freed)
Definition at line 1825 of file branch_compbnd.c.
◆ branchInitsolCompBnd
| #define branchInitsolCompBnd NULL |
solving process initialization method of branching rule (called when branch and bound process is about to begin)
Definition at line 1829 of file branch_compbnd.c.
◆ branchExitsolCompBnd
| #define branchExitsolCompBnd NULL |
solving process deinitialization method of branching rule (called before branch and bound process data is freed)
Definition at line 1833 of file branch_compbnd.c.
◆ branchCopyCompBnd
| #define branchCopyCompBnd NULL |
copy method for branchrule plugins (called when SCIP copies plugins)
Definition at line 1903 of file branch_compbnd.c.
◆ branchMasterSolvedCompBnd
| #define branchMasterSolvedCompBnd NULL |
method for branchrule, called when the master LP is solved at one node, can store pseudocosts for the branching decisions
Definition at line 1991 of file branch_compbnd.c.
Referenced by GCGincludeBranchruleCompBnd().
Function Documentation
◆ freeComponentBoundSequence()
|
static |
set components of componentbound sequence to NULL
- Parameters
-
scip SCIP data structure compBndSeq component bound sequence to set to NULL compBndSeqSize size of the component bound sequence compBndSeq
Definition at line 121 of file branch_compbnd.c.
References assert(), freeComponentBoundSequence(), and GCGisMaster().
Referenced by createChildNodesCompBndSeq(), freeComponentBoundSequence(), initBranch(), separation(), separation_helper(), and simplifyComponentBoundSequence().
◆ initNodeBranchdata()
|
static |
initialize branchdata at the node
- Parameters
-
scip SCIP data structure nodebranchdata branching data to set branchtype type of branch to generate constant constant value of the branching constraint in the master problem - either lhs or rhs, depending on branchtype compBndSeq component bound sequence which induce the current branching constraint compBndSeqSize size of the component bound sequence compBndSeq blocknr block we are branching in
Definition at line 137 of file branch_compbnd.c.
References assert(), GCGisMaster(), initNodeBranchdata(), and SCIP_CALL().
Referenced by branchDirectlyOnMastervar(), createChildNodesCompBndSeq(), createChildNodesGeneric(), initNodeBranchdata(), and initNodeBranchdata().
◆ simplifyComponentBoundSequence()
|
static |
simplify a component bound sequence by strengthening bounds of the same sense on the same component
- Parameters
-
scip SCIP data structure compBndSeq Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq
Definition at line 165 of file branch_compbnd.c.
References assert(), ComponentBound::bound, ComponentBound::component, freeComponentBoundSequence(), GCG_COMPBND_SENSE_GE, GCG_COMPBND_SENSE_LE, GCGisMaster(), i, j, SCIP_CALL(), SCIPdebugMessage(), ComponentBound::sense, and simplifyComponentBoundSequence().
Referenced by initBranch(), and simplifyComponentBoundSequence().
◆ getGeneratorEntryCol()
|
static |
computes the generator of mastervar for the entry in origvar
- Returns
- entry of the generator corresponding to origvar
- Parameters
-
solvars column solution variables solvals column solution values nsolvars number of column solution variables origvar corresponding origvar
Definition at line 257 of file branch_compbnd.c.
References assert(), GCGoriginalVarGetPricingVar(), GCGvarIsOriginal(), getGeneratorEntryCol(), and i.
Referenced by getGeneratorEntryCol(), and isColInCompBndSeq().
◆ getGeneratorEntry()
computes the generator of mastervar for the entry in origvar
- Returns
- entry of the generator corresponding to origvar
- Parameters
-
mastervar current mastervariable origvar corresponding origvar
Definition at line 292 of file branch_compbnd.c.
References GCGmasterVarGetOrigval(), and getGeneratorEntry().
Referenced by CHOOSE_COMPBND(), CHOOSE_COMPBND(), computeAlpha(), createChildNodesGeneric(), Explore(), GCG_DECL_SORTPTRCOMP(), getColCoefficient(), getGeneratorEntry(), getGeneratorEntry(), ILOcomp(), isMasterVarInCompBndSeq(), partition(), and Separate().
◆ isColInCompBndSeq()
|
static |
whether a master variable is in the component bound sequence or not
- Parameters
-
scip SCIP data structure solvars column solution variables solvals column solution values nsolvars number of column solution variables compBndSeq component bound sequence to check compBndSeqSize size of compBndSeq
Definition at line 304 of file branch_compbnd.c.
References assert(), GCG_COMPBND_SENSE_GE, GCG_COMPBND_SENSE_LE, getGeneratorEntryCol(), i, and isColInCompBndSeq().
Referenced by GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF(), and isColInCompBndSeq().
◆ isMasterVarInCompBndSeq()
|
static |
whether a master variable is in compBndSeq or not
- Parameters
-
scip SCIP data structure mastervar master variable to check compBndSeq component bound sequence to check compBndSeqSize size of compBndSeq blocknr block we are branching in
Definition at line 334 of file branch_compbnd.c.
References assert(), GCG_COMPBND_SENSE_GE, GCG_COMPBND_SENSE_LE, GCGisMasterVarInBlock(), getGeneratorEntry(), i, and isMasterVarInCompBndSeq().
Referenced by createChildNodesCompBndSeq(), findSatisfyingMastervars(), isMasterVarInCompBndSeq(), and separation_helper().
◆ addVarToMasterbranch()
|
static |
adds a variable to a branching constraint
- Parameters
-
gcg GCG data structure mastervar the variable to add branchdata branching data structure where the variable should be added
Definition at line 367 of file branch_compbnd.c.
References addVarToMasterbranch(), assert(), GCG_BranchData::branchtype, GCG_BranchData::constant, GCG_BRANCH_DOWN, GCGbranchGetExtendedmasterconsCoeff(), GCGextendedmasterconsAddMasterVar(), GCGgetMasterprob(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvals(), GCGmasterVarGetOrigvars(), GCGvarGetBlock(), GCG_BranchData::mastercons, masterprob, SCIP_CALL(), and SCIPdebugMessage().
Referenced by addVarToMasterbranch(), addVarToMasterbranch(), createBranchingCons(), createBranchingCons(), GCG_DECL_BRANCHNEWCOL(), GCG_DECL_BRANCHNEWCOL(), and SCIP_DECL_EVENTEXEC().
◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF()
|
static |
callback new column method
Definition at line 400 of file branch_compbnd.c.
References assert(), GCG_DECL_BRANCHGETEXTENDEDMASTERCONSCOEFF, GCGgetMasterprob(), GCGisMaster(), isColInCompBndSeq(), and masterprob.
◆ createBranchingCons()
|
static |
creates the constraint for branching directly on a master variable
- Parameters
-
gcg GCG data structure branchrule branch rule structure node node to add constraint branchdata branching data structure
Definition at line 427 of file branch_compbnd.c.
References addVarToMasterbranch(), assert(), GCG_BranchData::blocknr, ComponentBound::bound, GCG_BranchData::branchtype, GCG_BranchData::compBndSeq, GCG_BranchData::compBndSeqSize, ComponentBound::component, GCG_BranchData::constant, createBranchingCons(), GCG_BRANCH_DOWN, GCG_COMPBND_SENSE_GE, GCG_COMPBND_SENSE_LE, GCGbranchCreateExtendedmastercons(), GCGbranchGetScipBranchruledata(), SCIP_BranchruleData::gcgbranchrule, GCGcreateInferredPricingVar(), GCGgetMasterprob(), GCGgetPricingprob(), GCGisMaster(), GCGoriginalVarGetPricingVar(), GCGpricingmodificationCreate(), i, GCG_BranchData::mastercons, masterprob, mastervars, nmastervars, SCIP_CALL(), and ComponentBound::sense.
Referenced by createBranchingCons(), createBranchingCons(), createChildNodesCompBndSeq(), and createChildNodesGeneric().
◆ createChildNodesCompBndSeq()
|
static |
for given component bound sequence create the 2 child nodes
- Parameters
-
gcg GCG data structure branchrule branching rule compBndSeq Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq blocknr number of the block
Definition at line 647 of file branch_compbnd.c.
References assert(), ComponentBound::bound, CEIL, GCG_BranchData::compBndSeq, GCG_BranchData::compBndSeqSize, ComponentBound::component, GCG_BranchData::constant, createBranchingCons(), createChildNodesCompBndSeq(), FLOOR, freeComponentBoundSequence(), GCG_BRANCH_DOWN, GCG_BRANCH_UP, GCG_COMPBND_SENSE_GE, GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetBlockRepresentative(), GCGgetMasterprob(), GCGgetNIdenticalBlocks(), GCGgetOrigprob(), GCGisMasterVarInBlock(), i, initNodeBranchdata(), isMasterVarInCompBndSeq(), masterprob, mastervars, nmastervars, origprob, SCIP_CALL(), SCIPdebugMessage(), and ComponentBound::sense.
Referenced by createChildNodesCompBndSeq(), and initBranch().
◆ calcFractionality()
determine fractionality of a set of mastervariables
- Parameters
-
masterscip SCIP data structure mastervars mastervariables nmastervars number of mastervariables
Definition at line 744 of file branch_compbnd.c.
References assert(), calcFractionality(), GCGisMaster(), i, mastervars, nmastervars, and solval.
Referenced by calcFractionality(), initBranch(), and separation_helper().
◆ initIndexSet()
|
static |
method for initializing the indexSet for a given set of master variables
the index set denotes the set of all integral original variables contained in the provided master variables
- Parameters
-
scip SCIP data structure indexSet set to initialize indexSetSize size of the index set mastervars mastervariables currently satisfying the component bound sequence in the specified block mastervarsSize size of mastervars
Definition at line 777 of file branch_compbnd.c.
References assert(), GCGisMaster(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvars(), i, initIndexSet(), j, mastervars, and SCIP_CALL().
Referenced by initIndexSet(), and separation_helper().
◆ getLowerBound()
|
static |
get the lower bound of a original variable from the component bound sequence, or the lb
- Parameters
-
scip SCIP data structure origvar original variable compBndSeq component bound sequence compBndSeqSize size of compBndSeq
Definition at line 859 of file branch_compbnd.c.
References assert(), GCG_COMPBND_SENSE_GE, getLowerBound(), and i.
Referenced by CHOOSE_COMPBND(), and getLowerBound().
◆ getUpperBound()
|
static |
get the upper bound of a original variable from the component bound sequence, or the ub
- Parameters
-
scip SCIP data structure origvar original variable compBndSeq component bound sequence compBndSeqSize size of compBndSeq
Definition at line 891 of file branch_compbnd.c.
References assert(), GCG_COMPBND_SENSE_LE, getUpperBound(), and i.
Referenced by CHOOSE_COMPBND(), and getUpperBound().
◆ separation_helper()
|
static |
separation algorithm determining multiple component bound sequences one could branch on
- Parameters
-
gcg GCG data structure satisfyingMastervars mastervariables currently satisfying the component bound sequence in the specified block satisfyingMastervarsSize size of mastervars compBndSeq current Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq blocknr number of the block - method for choosing the variable to branch on foundCompBndSeqList list of component bound sequences foundCompBndSeqSizeList sizes of the component bound sequences foundCompBndSeqListSize size of Blist result pointer to store the result of the branching call
Definition at line 924 of file branch_compbnd.c.
References assert(), calcFractionality(), CHOOSE_COMPBND, FLOOR, freeComponentBoundSequence(), GCG_COMPBND_SENSE_GE, GCG_COMPBND_SENSE_LE, GCGgetMasterprob(), GCGisMaster(), i, initIndexSet(), isMasterVarInCompBndSeq(), masterprob, result, SCIP_CALL(), SCIPdebugMessage(), and separation_helper().
Referenced by separation(), and separation_helper().
◆ findSatisfyingMastervars()
|
static |
collects all currently mastervariables in the given block that satisfy the given component bound sequence
- Parameters
-
masterscip SCIP data structure satisfyingMastervars mastervariables in the given block satisfying the compBndSeq satisfyingMastervarsSize size of mastervars blocknr number of the block compBndSeq Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq
Definition at line 1120 of file branch_compbnd.c.
References assert(), findSatisfyingMastervars(), GCGisMaster(), GCGisMasterVarInBlock(), i, isMasterVarInCompBndSeq(), and SCIP_CALL().
Referenced by calcSum(), findSatisfyingMastervars(), initBranch(), and separation().
◆ CHOOSE_COMPBND() [1/2]
|
static |
choose to separate on original variable where max-min is maximal
Definition at line 1181 of file branch_compbnd.c.
References assert(), CHOOSE_COMPBND, GCGgetMasterprob(), getGeneratorEntry(), getLowerBound(), getUpperBound(), i, j, masterprob, and SCIPdebugMessage().
◆ CHOOSE_COMPBND() [2/2]
|
static |
choose to separate on original variable which has the largest number of distinct numbers, and find the median value
Definition at line 1277 of file branch_compbnd.c.
References assert(), CHOOSE_COMPBND, GCGgetMasterprob(), getGeneratorEntry(), i, j, masterprob, and SCIP_CALL().
◆ calcSum()
|
static |
calculate sum of component bound sequence
- Parameters
-
masterscip SCIP data structure compBndSeq Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq blocknr number of the block
Definition at line 1404 of file branch_compbnd.c.
References assert(), calcSum(), findSatisfyingMastervars(), GCGisMaster(), and i.
Referenced by calcSum(), CHOOSE_COMPBNDSEQ(), CHOOSE_COMPBNDSEQ(), and initBranch().
◆ CHOOSE_COMPBNDSEQ() [1/3]
|
static |
choose the component bound of which the sum is closest to K/2, where K is the number of identical subproblems in the current block
Definition at line 1436 of file branch_compbnd.c.
References assert(), calcSum(), CHOOSE_COMPBNDSEQ, GCGgetMasterprob(), GCGgetNIdenticalBlocks(), GCGisMaster(), i, and masterprob.
◆ CHOOSE_COMPBNDSEQ() [2/3]
|
static |
choose the component bound of which the sum is most fractional
Definition at line 1478 of file branch_compbnd.c.
References assert(), calcSum(), CHOOSE_COMPBNDSEQ, GCGgetMasterprob(), GCGisMaster(), i, and masterprob.
◆ CHOOSE_COMPBNDSEQ() [3/3]
|
static |
choose the component bound sequence with the smallest size
Definition at line 1519 of file branch_compbnd.c.
References assert(), CHOOSE_COMPBNDSEQ, GCGgetMasterprob(), GCGisMaster(), i, masterprob, and SCIP_CALL().
◆ separation()
|
static |
separation algorithm determining a component bound sequence to branch on
- Parameters
-
gcg GCG data structure branchrule branching rule compBndSeq Component Bound Sequence defining the nodes compBndSeqSize size of compBndSeq blocknr number of the block result pointer to store the result of the branching call
Definition at line 1583 of file branch_compbnd.c.
References assert(), findSatisfyingMastervars(), freeComponentBoundSequence(), GCGbranchGetScipBranchrule(), GCGgetMasterprob(), i, masterprob, result, SCIP_CALL(), separation(), separation_helper(), SCIP_BranchruleData::useMaxRangeMidrangeHeuristic, and SCIP_BranchruleData::useMostDistinctMedianHeuristic.
Referenced by initBranch(), and separation().
◆ initBranch()
|
static |
prepares information for using the generic branching scheme
- Parameters
-
gcg GCG data structure branchrule branching rule result pointer to store the result of the branching call
Definition at line 1673 of file branch_compbnd.c.
References assert(), calcFractionality(), calcSum(), createChildNodesCompBndSeq(), depth, findSatisfyingMastervars(), freeComponentBoundSequence(), GCG_COMPBND_SENSE_LE, GCGgetMasterprob(), GCGgetNIdenticalBlocks(), GCGgetNPricingprobs(), GCGisPricingprobRelevant(), i, initBranch(), masterprob, origprob, result, SCIP_CALL(), SCIPdebugMessage(), separation(), and simplifyComponentBoundSequence().
Referenced by ChooseSeparateMethod(), initBranch(), initBranch(), SCIP_DECL_BRANCHEXECLP(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIP_DECL_BRANCHFREE()
|
static |
destructor of branching rule to free user data (called when SCIP is exiting)
Definition at line 1803 of file branch_compbnd.c.
References SCIP_DECL_BRANCHFREE().
◆ SCIP_DECL_BRANCHEXECLP()
|
static |
branching execution method for fractional LP solutions
Definition at line 1838 of file branch_compbnd.c.
References assert(), BRANCHRULE_NAME, SCIP_BranchruleData::gcg, SCIP_BranchruleData::gcgbranchrule, GCGgetOrigprob(), GCGisMasterSetCovering(), GCGisMasterSetPartitioning(), GCGrelaxGetCurrentOrigSol(), GCGrelaxIsOrigSolFeasible(), initBranch(), origprob, result, SCIP_CALL(), SCIP_DECL_BRANCHEXECLP(), and SCIPdebugMessage().
Referenced by SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIP_DECL_BRANCHEXECEXT()
|
static |
Definition at line 1892 of file branch_compbnd.c.
References result, SCIP_DECL_BRANCHEXECEXT(), and SCIPdebugMessage().
Referenced by SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECEXT(), and SCIP_DECL_BRANCHEXECEXT().
◆ SCIP_DECL_BRANCHEXECPS()
|
static |
branching execution method for not completely fixed pseudo solutions
Definition at line 1908 of file branch_compbnd.c.
References assert(), BRANCHRULE_NAME, result, SCIP_DECL_BRANCHEXECPS(), and SCIPdebugMessage().
Referenced by SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), and SCIP_DECL_BRANCHEXECPS().
◆ GCG_DECL_BRANCHACTIVEMASTER()
|
static |
activation method for branchrule, called when a node in the master problem is activated, should perform changes to the current node's problem due to the branchdata
Definition at line 1944 of file branch_compbnd.c.
References assert(), GCG_DECL_BRANCHACTIVEMASTER, and SCIPdebugMessage().
◆ GCG_DECL_BRANCHDEACTIVEMASTER()
|
static |
deactivation method for branchrule, called when a node in the master problem is deactivated, should undo changes to the current node's problem due to the branchdata
Definition at line 1961 of file branch_compbnd.c.
References assert(), GCG_DECL_BRANCHDEACTIVEMASTER, and SCIPdebugMessage().
◆ GCG_DECL_BRANCHPROPMASTER()
|
static |
propagation method for branchrule, called when a node in the master problem is propagated, should perform propagation at the current node due to the branchdata
Definition at line 1977 of file branch_compbnd.c.
References assert(), GCG_DECL_BRANCHPROPMASTER, and result.
◆ GCG_DECL_BRANCHDATADELETE()
|
static |
frees branching data of an origbranch constraint (called when the origbranch constraint is deleted)
Definition at line 1995 of file branch_compbnd.c.
References assert(), GCG_DECL_BRANCHDATADELETE, GCGbranchFreeExtendedmasterconsBranchData(), GCGgetMasterprob(), SCIP_CALL(), and SCIPdebugMessage().
◆ GCG_DECL_BRANCHNEWCOL()
|
static |
callback new column method
Definition at line 2030 of file branch_compbnd.c.
References addVarToMasterbranch(), assert(), GCG_DECL_BRANCHNEWCOL, GCGvarIsMaster(), and SCIP_CALL().
◆ GCG_DECL_BRANCHGETEXTENDEDMASTERCONS()
|
static |
Definition at line 2045 of file branch_compbnd.c.
References assert(), and GCG_DECL_BRANCHGETEXTENDEDMASTERCONS.
◆ SCIP_DECL_BRANCHINIT()
|
static |
initialization method of branching rule (called after problem was transformed)
Definition at line 2060 of file branch_compbnd.c.
References assert(), origprob, SCIP_CALL(), SCIP_DECL_BRANCHINIT(), SCIPdebugMessage(), SCIP_BranchruleData::useMaxRangeMidrangeHeuristic, and SCIP_BranchruleData::useMostDistinctMedianHeuristic.
◆ GCGincludeBranchruleCompBnd()
| SCIP_RETCODE GCGincludeBranchruleCompBnd | ( | GCG * | gcg | ) |
creates the compbnd branching rule and includes it in SCIP
creates the component bound branching rule and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 2111 of file branch_compbnd.c.
References assert(), branchMasterSolvedCompBnd, BRANCHRULE_DESC, BRANCHRULE_MAXBOUNDDIST, BRANCHRULE_MAXDEPTH, BRANCHRULE_NAME, BRANCHRULE_PRIORITY, SCIP_BranchruleData::gcg, SCIP_BranchruleData::gcgbranchrule, GCGgetMasterprob(), GCGgetOrigprob(), GCGincludeBranchruleCompBnd(), GCGrelaxIncludeBranchrule(), masterprob, origprob, SCIP_CALL(), SCIPdebugMessage(), SCIP_BranchruleData::useMaxRangeMidrangeHeuristic, and SCIP_BranchruleData::useMostDistinctMedianHeuristic.
Referenced by GCGincludeBranchruleCompBnd(), and GCGincludeMasterPlugins().
◆ GCGisBranchruleCompBnd()
| SCIP_Bool GCGisBranchruleCompBnd | ( | SCIP_BRANCHRULE * | branchrule | ) |
returns true when the branch rule is the component bound branching rule
returns true when the branch rule is the generic branchrule
- Parameters
-
branchrule branchrule to check
Definition at line 2158 of file branch_compbnd.c.
References BRANCHRULE_NAME, and GCGisBranchruleCompBnd().
Referenced by GCGisBranchruleCompBnd().