Detailed Description
generic branch-and-price strong branching heuristics
Definition in file branch_bpstrong.c.
#include <assert.h>#include "gcg/branch_bpstrong.h"#include "gcg/type_branchgcg.h"#include "gcg/branch_orig.h"#include <string.h>#include "gcg/gcg.h"#include "gcg/branch_relpsprob.h"#include "gcg/cons_integralorig.h"#include "gcg/cons_masterbranch.h"#include "gcg/cons_origbranch.h"#include "gcg/relax_gcg.h"#include "gcg/pricer_gcg.h"#include "scip/cons_linear.h"#include "scip/scipdefplugins.h"#include "scip/var.h"Go to the source code of this file.
Data Structures | |
| struct | GCG_BranchData |
| struct | VarTuple |
| struct | SCIP_BranchruleData |
Functions | |
| static | SCIP_DECL_HASHGETKEY (hashGetKeyVars) |
| static | SCIP_DECL_HASHKEYEQ (hashKeyEqVars) |
| static | SCIP_DECL_HASHKEYVAL (hashKeyValVars) |
| static int | calculateNCands (SCIP *scip, SCIP_BRANCHRULEDATA *branchruledata, SCIP_Real nodegap, int phase, int ncands) |
| static int | assignUniqueBlockFlags (GCG *gcg, SCIP_VAR *branchcand) |
| static SCIP_RETCODE | addBranchcandsToData (GCG *gcg, SCIP_BRANCHRULE *branchrule, SCIP_VAR **var1s, SCIP_VAR **var2s, int ncands) |
| static int | score_compare_function (const void *index1, const void *index2) |
| static int | geq_compare_function (const void *index1, const void *index2) |
| static SCIP_RETCODE | newProbingNodeRyanfosterMaster (GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_VAR *ovar1, SCIP_VAR *ovar2, int blocknr, SCIP_Bool same) |
| static SCIP_RETCODE | executeStrongBranching (GCG *gcg, SCIP_BRANCHRULE *branchrule, SCIP_VAR *branchvar1, SCIP_VAR *branchvar2, SCIP_Real solval1, SCIP_Real solval2, int candinfo, SCIP_Bool pricing, int maxpricingrounds, SCIP_Real *up, SCIP_Real *down, SCIP_Bool *upvalid, SCIP_Bool *downvalid, SCIP_Bool *upinf, SCIP_Bool *downinf) |
| static SCIP_Bool | isKAncestor (SCIP *scip, int ancestornodenr, SCIP_NODE *successornode, int k) |
| static SCIP_Real | score_function (GCG *gcg, SCIP_BRANCHRULE *branchrule, SCIP_VAR *var1, SCIP_VAR *var2, SCIP_Real solval1, SCIP_Real solval2, int candinfo, SCIP_Bool useheuristic, SCIP_Bool usehistorical, SCIP_Bool usecolgen, SCIP_Real *score, SCIP_Bool *upinf, SCIP_Bool *downinf) |
| static SCIP_RETCODE | selectCandidate (GCG *gcg, SCIP_BRANCHRULE *branchrule, SCIP_VAR **cand1s, SCIP_VAR **cand2s, int *candinfos, int ncands, SCIP_VAR **outcand1, SCIP_VAR **outcand2, int *outcandinfo, SCIP_Bool *bestupinf, SCIP_Bool *bestdowninf, SCIP_RESULT *result) |
| static | SCIP_DECL_BRANCHFREE (branchFreeBPStrong) |
| static | SCIP_DECL_BRANCHINIT (branchInitBPStrong) |
| SCIP_RETCODE | GCGincludeBranchruleBPStrong (GCG *gcg) |
| SCIP_RETCODE | GCGbranchSelectCandidateStrongBranchingOrig (GCG *gcg, GCG_BRANCHRULE *origbranchrule, SCIP_VAR **branchvar, SCIP_Bool *upinf, SCIP_Bool *downinf, SCIP_RESULT *result, SCIP_Bool *stillusestrong) |
| SCIP_RETCODE | GCGbranchSelectCandidateStrongBranchingRyanfoster (GCG *gcg, GCG_BRANCHRULE *rfbranchrule, SCIP_VAR **ovar1s, SCIP_VAR **ovar2s, int *nspricingblock, int npairs, SCIP_VAR **ovar1, SCIP_VAR **ovar2, int *pricingblock, SCIP_Bool *sameinf, SCIP_Bool *differinf, SCIP_RESULT *result, SCIP_Bool *stillusestrong) |
Variables | |
| SCIP_BRANCHRULEDATA * | this_branchruledata |
Macro Definition Documentation
◆ BRANCHRULE_NAME
| #define BRANCHRULE_NAME "bpstrong" |
name of branching rule
Definition at line 58 of file branch_bpstrong.c.
Referenced by branchExtern(), branchVar(), GCGbranchSelectCandidateStrongBranchingOrig(), GCGbranchSelectCandidateStrongBranchingRyanfoster(), GCGgetRelpsprobBranchVar(), GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleEmpty(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), GCGincludeBranchruleRelpsprob(), GCGincludeBranchruleRyanfoster(), GCGisBranchruleCompBnd(), GCGisBranchruleGeneric(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_BRANCHFREE(), and selectCandidate().
◆ BRANCHRULE_DESC
short description of branching rule
Definition at line 59 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleEmpty(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), GCGincludeBranchruleRelpsprob(), and GCGincludeBranchruleRyanfoster().
◆ BRANCHRULE_PRIORITY
| #define BRANCHRULE_PRIORITY -536870912 |
priority of this branching rule
Definition at line 60 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleEmpty(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), GCGincludeBranchruleRelpsprob(), and GCGincludeBranchruleRyanfoster().
◆ BRANCHRULE_MAXDEPTH
| #define BRANCHRULE_MAXDEPTH 0 |
maximal depth level of the branching rule
Definition at line 61 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleEmpty(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), GCGincludeBranchruleRelpsprob(), and GCGincludeBranchruleRyanfoster().
◆ BRANCHRULE_MAXBOUNDDIST
| #define BRANCHRULE_MAXBOUNDDIST 0.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 62 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong(), GCGincludeBranchruleCompBnd(), GCGincludeBranchruleEmpty(), GCGincludeBranchruleGeneric(), GCGincludeBranchruleOrig(), GCGincludeBranchruleRelpsprob(), and GCGincludeBranchruleRyanfoster().
◆ DEFAULT_ENFORCEBYCONS
| #define DEFAULT_ENFORCEBYCONS FALSE |
Definition at line 65 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleOrig().
◆ DEFAULT_MOSTFRAC
| #define DEFAULT_MOSTFRAC FALSE |
Definition at line 66 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleOrig().
◆ DEFAULT_USEPSEUDO
| #define DEFAULT_USEPSEUDO TRUE |
Definition at line 67 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleOrig().
◆ DEFAULT_USEPSSTRONG
| #define DEFAULT_USEPSSTRONG FALSE |
Definition at line 68 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleOrig().
◆ DEFAULT_USESTRONG
| #define DEFAULT_USESTRONG FALSE |
Definition at line 70 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleOrig(), and GCGincludeBranchruleRyanfoster().
◆ DEFAULT_STRONGLITE
| #define DEFAULT_STRONGLITE FALSE |
Definition at line 71 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_STRONGTRAIN
| #define DEFAULT_STRONGTRAIN FALSE |
Definition at line 72 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_IMMEDIATEINF
| #define DEFAULT_IMMEDIATEINF TRUE |
Definition at line 73 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXSBLPITERS
| #define DEFAULT_MAXSBLPITERS INT_MAX |
Definition at line 74 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXSBPRICEROUNDS
| #define DEFAULT_MAXSBPRICEROUNDS INT_MAX |
Definition at line 75 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_RFUSEPSEUDOCOSTS
| #define DEFAULT_RFUSEPSEUDOCOSTS TRUE |
Definition at line 77 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_RFUSEMOSTFRAC
| #define DEFAULT_RFUSEMOSTFRAC FALSE |
Definition at line 78 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_REEVALAGE
| #define DEFAULT_REEVALAGE 1 |
Definition at line 80 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MINCOLGENCANDS
| #define DEFAULT_MINCOLGENCANDS 4 |
Definition at line 81 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_HISTWEIGHT
| #define DEFAULT_HISTWEIGHT 0.5 |
Definition at line 82 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXLOOKAHEAD
| #define DEFAULT_MAXLOOKAHEAD 8 |
Definition at line 83 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong(), and GCGincludeBranchruleRelpsprob().
◆ DEFAULT_LOOKAHEADSCALES
| #define DEFAULT_LOOKAHEADSCALES 0.5 |
Definition at line 84 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MINPHASE0DEPTH
| #define DEFAULT_MINPHASE0DEPTH 0 |
Definition at line 85 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXPHASE1DEPTH
| #define DEFAULT_MAXPHASE1DEPTH 4 |
Definition at line 86 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXPHASE2DEPTH
| #define DEFAULT_MAXPHASE2DEPTH 3 |
Definition at line 87 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_DEPTHLOGWEIGHT
| #define DEFAULT_DEPTHLOGWEIGHT 0.5 |
Definition at line 88 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_DEPTHLOGBASE
| #define DEFAULT_DEPTHLOGBASE 3.5 |
Definition at line 89 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_DEPTHLOGPHASE0FRAC
| #define DEFAULT_DEPTHLOGPHASE0FRAC 0 |
Definition at line 90 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_DEPTHLOGPHASE2FRAC
| #define DEFAULT_DEPTHLOGPHASE2FRAC 0.75 |
Definition at line 91 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_CLOSEPERCENTAGE
| #define DEFAULT_CLOSEPERCENTAGE 0.90 |
Definition at line 93 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_MAXCONSECHEURCLOSE
| #define DEFAULT_MAXCONSECHEURCLOSE 4 |
Definition at line 94 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_SBPSEUDOCOSTWEIGHT
| #define DEFAULT_SBPSEUDOCOSTWEIGHT 1 |
Definition at line 96 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_PHASE1RELIABLE
| #define DEFAULT_PHASE1RELIABLE INT_MAX |
Definition at line 98 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_PHASE2RELIABLE
| #define DEFAULT_PHASE2RELIABLE INT_MAX |
Definition at line 99 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ DEFAULT_FORCEP0
| #define DEFAULT_FORCEP0 FALSE |
Definition at line 101 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ ORIG
| #define ORIG 0 |
Definition at line 103 of file branch_bpstrong.c.
Referenced by executeStrongBranching(), GCGbranchSelectCandidateStrongBranchingOrig(), score_function(), and selectCandidate().
◆ RYANFOSTER
| #define RYANFOSTER 1 |
Definition at line 104 of file branch_bpstrong.c.
Referenced by executeStrongBranching(), GCGbranchSelectCandidateStrongBranchingRyanfoster(), SCIP_DECL_BRANCHINIT(), and selectCandidate().
◆ GENERIC
| #define GENERIC 2 |
Definition at line 105 of file branch_bpstrong.c.
◆ branchDeactiveMasterBPStrong
| #define branchDeactiveMasterBPStrong NULL |
Definition at line 1477 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ branchPropMasterBPStrong
| #define branchPropMasterBPStrong NULL |
Definition at line 1478 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ branchActiveMasterBPStrong
| #define branchActiveMasterBPStrong NULL |
Definition at line 1479 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ branchMasterSolvedBPStrong
| #define branchMasterSolvedBPStrong NULL |
Definition at line 1480 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ branchDataDeleteBPStrong
| #define branchDataDeleteBPStrong NULL |
Definition at line 1481 of file branch_bpstrong.c.
Referenced by GCGincludeBranchruleBPStrong().
◆ branchExeclpBPStrong
| #define branchExeclpBPStrong NULL |
Definition at line 1483 of file branch_bpstrong.c.
◆ branchExecextBPStrong
| #define branchExecextBPStrong NULL |
Definition at line 1484 of file branch_bpstrong.c.
◆ branchExecpsBPStrong
| #define branchExecpsBPStrong NULL |
Definition at line 1485 of file branch_bpstrong.c.
Typedef Documentation
◆ VarTuple
| typedef struct VarTuple VarTuple |
Function Documentation
◆ SCIP_DECL_HASHGETKEY()
|
static |
gets the hash key of a variable tuple
Definition at line 238 of file branch_bpstrong.c.
◆ SCIP_DECL_HASHKEYEQ()
|
static |
returns TRUE iff both variable tuples contain the same variables (ignoring order)
Definition at line 251 of file branch_bpstrong.c.
References assert(), VarTuple::var1, and VarTuple::var2.
◆ SCIP_DECL_HASHKEYVAL()
|
static |
Definition at line 280 of file branch_bpstrong.c.
◆ calculateNCands()
|
static |
- Parameters
-
scip scip data structure branchruledata strong branching branchruledata nodegap node gap in current focus node phase phase we are calculating this for ncands number of input candidates for the phase
Definition at line 304 of file branch_bpstrong.c.
References assert(), calculateNCands(), SCIP_BranchruleData::maxphase0outcands, SCIP_BranchruleData::maxphase0outcandsfrac, SCIP_BranchruleData::maxphase1outcands, SCIP_BranchruleData::maxphase1outcandsfrac, SCIP_BranchruleData::minphase0outcands, SCIP_BranchruleData::minphase1outcands, SCIP_BranchruleData::phase1gapweight, and SCIP_BranchruleData::phase2gapweight.
Referenced by calculateNCands(), and selectCandidate().
◆ assignUniqueBlockFlags()
- Parameters
-
gcg GCG data structure branchcand branching candidate to be considered
Definition at line 349 of file branch_bpstrong.c.
References assert(), assignUniqueBlockFlags(), GCGgetNIdenticalBlocks(), GCGgetOrigprob(), GCGlinkingVarGetBlocks(), GCGlinkingVarGetNBlocks(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsOriginal(), j, origprob, SCIP_CALL(), and SCIPfreeBufferArray().
Referenced by assignUniqueBlockFlags(), and selectCandidate().
◆ addBranchcandsToData()
|
static |
adds branching candidates to branchruledata to collect infos about it
- Parameters
-
gcg GCG data structure branchrule branching rule var1s first parts of branching candidates var2s second parts of branching candidates ncands number of priority branching candidates
Definition at line 409 of file branch_bpstrong.c.
References addBranchcandsToData(), assert(), SCIP_BranchruleData::candhashtable, GCGgetMasterprob(), i, VarTuple::index, SCIP_BranchruleData::lastevalnode, masterprob, SCIP_BranchruleData::maxvars, nvars, SCIP_BranchruleData::nvars, SCIP_BranchruleData::sbscoreisrecent, SCIP_CALL(), SCIP_BranchruleData::strongbranchscore, SCIP_BranchruleData::uniqueblockflags, VarTuple::var1, VarTuple::var2, and SCIP_BranchruleData::vartuples.
Referenced by addBranchcandsToData(), addBranchcandsToData(), execRelpsprob(), and selectCandidate().
◆ score_compare_function()
|
static |
- Parameters
-
index1 index in branchruledata->score of first element index2 index in branchruledata->score of first element
Definition at line 482 of file branch_bpstrong.c.
References SCIP_BranchruleData::score, score_compare_function(), and this_branchruledata.
Referenced by score_compare_function(), and selectCandidate().
◆ geq_compare_function()
|
static |
- Parameters
-
index1 first index index2 second index
Definition at line 491 of file branch_bpstrong.c.
References geq_compare_function().
Referenced by geq_compare_function(), and selectCandidate().
◆ newProbingNodeRyanfosterMaster()
|
static |
- Parameters
-
gcg GCG data structure branchrule branching rule ovar1 first original variable ovar2 second original variable blocknr number of the pricing block same do we want to create the same (TRUE) or differ (FALSE) branch?
Definition at line 503 of file branch_bpstrong.c.
References assert(), GCG_BranchData::blocknr, GCGgetMasterprob(), GCGgetOrigprob(), GCGoriginalVarGetPricingVar(), GCGpricingVarGetNOrigvars(), GCGpricingVarGetOrigvars(), GCGrelaxNewProbingnodeMasterCons(), GCGvarGetBlock(), GCGvarIsOriginal(), GCGvarIsPricing(), masterprob, newProbingNodeRyanfosterMaster(), origprob, GCG_BranchData::pricecons, GCG_BranchData::same, SCIP_CALL(), GCG_BranchData::var1, and GCG_BranchData::var2.
Referenced by executeStrongBranching(), and newProbingNodeRyanfosterMaster().
◆ executeStrongBranching()
|
static |
Definition at line 603 of file branch_bpstrong.c.
References assert(), cutoff, executeStrongBranching(), GCGgetOrigprob(), GCGrelaxEndProbing(), GCGrelaxNewProbingnodeMaster(), GCGrelaxNewProbingnodeOrig(), GCGrelaxPerformProbing(), GCGrelaxPerformProbingWithPricing(), GCGrelaxStartProbing(), SCIP_BranchruleData::initiator, SCIP_BranchruleData::initiatorbranchrule, lperror, lpsolved, SCIP_BranchruleData::maxsblpiters, SCIP_BranchruleData::maxsbpricerounds, newProbingNodeRyanfosterMaster(), nlpiterations, SCIP_BranchruleData::nphase1lps, SCIP_BranchruleData::nphase2lps, npricerounds, SCIP_BranchruleData::nsblpiterations, SCIP_BranchruleData::nsbpricerounds, ORIG, origprob, RYANFOSTER, and SCIP_CALL().
Referenced by executeStrongBranching(), and score_function().
◆ isKAncestor()
- Parameters
-
scip SCIP data structure ancestornodenr number of the supposed ancestor successornode the supposed successor k maximal allowed distance between the nodes
Definition at line 719 of file branch_bpstrong.c.
References i, and isKAncestor().
Referenced by isKAncestor(), and score_function().
◆ score_function()
|
static |
- Parameters
-
gcg GCG data structure branchrule pointer to the branching rule var1 first var to be scored var2 second var to be scored solval1 the first var's current solution value solval2 the second var's current solution value candinfo additional integer information about the candidate useheuristic should heuristics be used instead of strong branching? usehistorical should historical data from phase 2 be used as heuristic? usecolgen should column generation be used during strong branching? score stores the computed score upinf stores whether the upbranch is infeasible downinf stores whether the downbranch is infeasible
Definition at line 745 of file branch_bpstrong.c.
References assert(), SCIP_BranchruleData::candhashtable, executeStrongBranching(), frac, GCGgetMasterprob(), GCGgetOrigprob(), SCIP_BranchruleData::initiator, isKAncestor(), SCIP_BranchruleData::lastevalnode, SCIP_BranchruleData::mostfrac, ORIG, origprob, SCIP_BranchruleData::reevalage, SCIP_BranchruleData::sbscoreisrecent, SCIP_CALL(), score_function(), SCIP_BranchruleData::strongbranchscore, and SCIP_BranchruleData::usepseudocosts.
Referenced by branchExtern(), score_function(), score_function(), and selectCandidate().
◆ selectCandidate()
|
static |
branching method for relaxation solutions
- Parameters
-
gcg GCG data structure branchrule pointer to the branching rule cand1s first variable candidates cand2s second variable candidates (each cand2 corresponds to exactly one cand1 and vice versa) candinfos additional information for each candidate ncands number of input candidates outcand1 pointer to store the pointer of the first selected variable outcand2 pointer to store the pointer of the second selected variable (if applicable) outcandinfo pointer to store additional (integer) info bestupinf pointer to store whether strong branching detected infeasibility in the upbranch bestdowninf pointer to store whether strong branching detected infeasibility in the downbranch result pointer to store the result of the branching call
Definition at line 889 of file branch_bpstrong.c.
References addBranchcandsToData(), assert(), assignUniqueBlockFlags(), BRANCHRULE_NAME, c, calculateNCands(), SCIP_BranchruleData::candhashtable, SCIP_BranchruleData::closepercentage, SCIP_BranchruleData::consecheurclose, depth, SCIP_BranchruleData::done, SCIP_BranchruleData::forcephase0, GCGgetMasterprob(), GCGgetOrigprob(), geq_compare_function(), SCIP_BranchruleData::histweight, i, SCIP_BranchruleData::immediateinf, SCIP_BranchruleData::initiator, j, SCIP_BranchruleData::lastcand, SCIP_BranchruleData::lookaheadscales, SCIP_BranchruleData::maxconsecheurclose, SCIP_BranchruleData::maxlookahead, SCIP_BranchruleData::maxphase1depth, SCIP_BranchruleData::maxphase1outcands, SCIP_BranchruleData::maxphase2depth, SCIP_BranchruleData::maxsblpiters, SCIP_BranchruleData::maxsbpricerounds, SCIP_BranchruleData::maxvars, SCIP_BranchruleData::minphase0depth, SCIP_BranchruleData::mostfrac, nlpiterations, nlps, SCIP_BranchruleData::nphase1lps, SCIP_BranchruleData::nphase2lps, npricerounds, SCIP_BranchruleData::nsblpiterations, SCIP_BranchruleData::nsbpricerounds, ORIG, origprob, result, RYANFOSTER, SCIP_BranchruleData::sbscoreisrecent, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), SCIP_BranchruleData::score, score_compare_function(), score_function(), selectCandidate(), SCIP_BranchruleData::strongbranchscore, this_branchruledata, SCIP_BranchruleData::uniqueblockflags, SCIP_BranchruleData::usepseudocosts, SCIP_BranchruleData::usestronglite, VarTuple::var1, and VarTuple::var2.
Referenced by GCGbranchSelectCandidateStrongBranchingOrig(), GCGbranchSelectCandidateStrongBranchingRyanfoster(), and selectCandidate().
◆ SCIP_DECL_BRANCHFREE()
|
static |
free remaining allocated memory
Definition at line 1489 of file branch_bpstrong.c.
References SCIP_BranchruleData::candhashtable, i, SCIP_BranchruleData::initialized, SCIP_BranchruleData::lastevalnode, SCIP_BranchruleData::maxvars, SCIP_BranchruleData::nvars, SCIP_BranchruleData::sbscoreisrecent, SCIP_DECL_BRANCHFREE(), SCIP_BranchruleData::strongbranchscore, SCIP_BranchruleData::uniqueblockflags, and SCIP_BranchruleData::vartuples.
Referenced by SCIP_DECL_BRANCHFREE(), SCIP_DECL_BRANCHFREE(), SCIP_DECL_BRANCHFREE(), SCIP_DECL_BRANCHFREE(), SCIP_DECL_BRANCHFREE(), SCIP_DECL_BRANCHFREE(), and SCIP_DECL_BRANCHFREE().
◆ SCIP_DECL_BRANCHINIT()
|
static |
initialization method of branching rule (called after problem was transformed)
Definition at line 1527 of file branch_bpstrong.c.
References assert(), SCIP_BranchruleData::candhashtable, SCIP_BranchruleData::consecheurclose, SCIP_BranchruleData::done, SCIP_BranchruleData::gcg, GCGgetOrigprob(), i, SCIP_BranchruleData::initialized, SCIP_BranchruleData::initiator, SCIP_BranchruleData::lastcand, SCIP_BranchruleData::lastevalnode, SCIP_BranchruleData::maxcands, SCIP_BranchruleData::maxphase1depth, SCIP_BranchruleData::maxphase2depth, SCIP_BranchruleData::maxvars, SCIP_BranchruleData::minphase0depth, SCIP_BranchruleData::nphase1lps, SCIP_BranchruleData::nphase2lps, SCIP_BranchruleData::nsblpiterations, SCIP_BranchruleData::nsbpricerounds, SCIP_BranchruleData::nvars, origprob, RYANFOSTER, SCIP_BranchruleData::sbscoreisrecent, SCIP_CALL(), SCIP_DECL_BRANCHINIT(), SCIPdebugMessage(), SCIP_BranchruleData::strongbranchscore, SCIP_BranchruleData::uniqueblockflags, and SCIP_BranchruleData::vartuples.
Referenced by SCIP_DECL_BRANCHINIT(), SCIP_DECL_BRANCHINIT(), SCIP_DECL_BRANCHINIT(), SCIP_DECL_BRANCHINIT(), and SCIP_DECL_BRANCHINIT().
◆ GCGincludeBranchruleBPStrong()
| SCIP_RETCODE GCGincludeBranchruleBPStrong | ( | GCG * | gcg | ) |
creates the b&p strong-branching branching rule and includes it in SCIP
creates the xyz branching rule and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 1627 of file branch_bpstrong.c.
References assert(), branchActiveMasterBPStrong, branchDataDeleteBPStrong, branchDeactiveMasterBPStrong, branchMasterSolvedBPStrong, branchPropMasterBPStrong, BRANCHRULE_DESC, BRANCHRULE_MAXBOUNDDIST, BRANCHRULE_MAXDEPTH, BRANCHRULE_NAME, BRANCHRULE_PRIORITY, SCIP_BranchruleData::closepercentage, DEFAULT_CLOSEPERCENTAGE, DEFAULT_DEPTHLOGBASE, DEFAULT_DEPTHLOGPHASE0FRAC, DEFAULT_DEPTHLOGPHASE2FRAC, DEFAULT_DEPTHLOGWEIGHT, DEFAULT_FORCEP0, DEFAULT_HISTWEIGHT, DEFAULT_IMMEDIATEINF, DEFAULT_LOOKAHEADSCALES, DEFAULT_MAXCONSECHEURCLOSE, DEFAULT_MAXLOOKAHEAD, DEFAULT_MAXPHASE1DEPTH, DEFAULT_MAXPHASE2DEPTH, DEFAULT_MAXSBLPITERS, DEFAULT_MAXSBPRICEROUNDS, DEFAULT_MINCOLGENCANDS, DEFAULT_MINPHASE0DEPTH, DEFAULT_PHASE1RELIABLE, DEFAULT_PHASE2RELIABLE, DEFAULT_REEVALAGE, DEFAULT_RFUSEMOSTFRAC, DEFAULT_RFUSEPSEUDOCOSTS, DEFAULT_SBPSEUDOCOSTWEIGHT, DEFAULT_STRONGLITE, DEFAULT_STRONGTRAIN, SCIP_BranchruleData::forcephase0, SCIP_BranchruleData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGincludeBranchruleBPStrong(), GCGrelaxIncludeBranchrule(), SCIP_BranchruleData::histweight, SCIP_BranchruleData::immediateinf, SCIP_BranchruleData::initialized, SCIP_BranchruleData::lookaheadscales, masterprob, SCIP_BranchruleData::maxconsecheurclose, SCIP_BranchruleData::maxlookahead, SCIP_BranchruleData::maxphase1depth, SCIP_BranchruleData::maxphase2depth, SCIP_BranchruleData::mincolgencands, SCIP_BranchruleData::minphase0depth, SCIP_BranchruleData::phase1reliable, SCIP_BranchruleData::phase2reliable, SCIP_BranchruleData::reevalage, SCIP_BranchruleData::sbpseudocostweight, SCIP_CALL(), SCIPdebugMessage(), SCIP_BranchruleData::usestronglite, and SCIP_BranchruleData::usestrongtrain.
Referenced by GCGincludeBranchruleBPStrong(), and GCGincludeMasterPlugins().
◆ GCGbranchSelectCandidateStrongBranchingOrig()
| SCIP_RETCODE GCGbranchSelectCandidateStrongBranchingOrig | ( | GCG * | gcg, |
| GCG_BRANCHRULE * | origbranchrule, | ||
| SCIP_VAR ** | branchvar, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_RESULT * | result, | ||
| SCIP_Bool * | stillusestrong ) |
- Parameters
-
gcg GCG data structure origbranchrule pointer storing original branching rule branchvar pointer to store output var pointer upinf pointer to store whether strong branching detected infeasibility in the upbranch downinf pointer to store whether strong branching detected infeasibility in the downbranch result pointer to store result stillusestrong pointer to store whether strong branching has reached a permanent stopping condition for orig
Definition at line 1766 of file branch_bpstrong.c.
References assert(), BRANCHRULE_NAME, SCIP_BranchruleData::done, GCGbranchSelectCandidateStrongBranchingOrig(), GCGgetMasterprob(), GCGgetOrigprob(), SCIP_BranchruleData::initiator, masterprob, SCIP_BranchruleData::maxphase0outcands, SCIP_BranchruleData::maxphase0outcandsfrac, SCIP_BranchruleData::maxphase1outcands, SCIP_BranchruleData::maxphase1outcandsfrac, SCIP_BranchruleData::minphase0outcands, SCIP_BranchruleData::minphase1outcands, SCIP_BranchruleData::mostfrac, ORIG, origprob, SCIP_BranchruleData::phase1gapweight, SCIP_BranchruleData::phase2gapweight, result, SCIP_CALL(), selectCandidate(), and SCIP_BranchruleData::usepseudocosts.
Referenced by branchExtern(), and GCGbranchSelectCandidateStrongBranchingOrig().
◆ GCGbranchSelectCandidateStrongBranchingRyanfoster()
| SCIP_RETCODE GCGbranchSelectCandidateStrongBranchingRyanfoster | ( | GCG * | gcg, |
| GCG_BRANCHRULE * | rfbranchrule, | ||
| SCIP_VAR ** | ovar1s, | ||
| SCIP_VAR ** | ovar2s, | ||
| int * | nspricingblock, | ||
| int | npairs, | ||
| SCIP_VAR ** | ovar1, | ||
| SCIP_VAR ** | ovar2, | ||
| int * | pricingblock, | ||
| SCIP_Bool * | sameinf, | ||
| SCIP_Bool * | differinf, | ||
| SCIP_RESULT * | result, | ||
| SCIP_Bool * | stillusestrong ) |
interface method for Ryan-Foster branching to strong branching heuristics
- Parameters
-
gcg GCG data structure rfbranchrule Ryan-Foster branchrule ovar1s first elements of candidate pairs ovar2s second elements of candidate pairs nspricingblock pricing block numbers corresponding to input pairs npairs number of input pairs ovar1 pointer to store output var 1 pointer ovar2 pointer to store output var 2 pointer pricingblock pointer to store output pricing block number sameinf pointer to store whether strong branching detected infeasibility in the same branch differinf pointer to store whether strong branching detected infeasibility in the differ branch result pointer to store result stillusestrong pointer to store whether strong branching has reached a permanent stopping condition for Ryan-Foster
Definition at line 1822 of file branch_bpstrong.c.
References assert(), BRANCHRULE_NAME, SCIP_BranchruleData::done, GCGbranchSelectCandidateStrongBranchingRyanfoster(), GCGgetMasterprob(), GCGgetOrigprob(), SCIP_BranchruleData::initiator, SCIP_BranchruleData::initiatorbranchrule, SCIP_BranchruleData::maxphase0outcands, SCIP_BranchruleData::maxphase0outcandsfrac, SCIP_BranchruleData::maxphase1outcands, SCIP_BranchruleData::maxphase1outcandsfrac, SCIP_BranchruleData::minphase0outcands, SCIP_BranchruleData::minphase1outcands, SCIP_BranchruleData::mostfrac, origprob, SCIP_BranchruleData::phase1gapweight, SCIP_BranchruleData::phase2gapweight, result, RYANFOSTER, SCIP_CALL(), selectCandidate(), and SCIP_BranchruleData::usepseudocosts.
Referenced by GCGbranchSelectCandidateStrongBranchingRyanfoster(), and SCIP_DECL_BRANCHEXECLP().
Variable Documentation
◆ this_branchruledata
| SCIP_BRANCHRULEDATA* this_branchruledata |
Definition at line 229 of file branch_bpstrong.c.
Referenced by score_compare_function(), and selectCandidate().