GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
branch_bpstrong.h File Reference

Detailed Description

generic branch and price strong branching as described in Pecin, D., Pessoa, A., Poggi, M., Uchoa, E. Improved branch-cut-and-price for capacitated vehicle routing. In: Math. Prog. Comp. 9:61-100. Springer (2017).

Author
Oliver Gaul

Definition in file branch_bpstrong.h.

#include "scip/scip.h"
#include "gcg/gcg.h"
#include "gcg/type_branchgcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT 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)

Function Documentation

◆ GCGincludeBranchruleBPStrong()

GCG_EXPORT SCIP_RETCODE GCGincludeBranchruleBPStrong ( GCG * gcg)

creates the xyz branching rule and includes it in SCIP

creates the b&p strong-branching branching rule and includes it in SCIP

Parameters
gcgGCG 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
gcgGCG data structure
origbranchrulepointer storing original branching rule
branchvarpointer to store output var pointer
upinfpointer to store whether strong branching detected infeasibility in the upbranch
downinfpointer to store whether strong branching detected infeasibility in the downbranch
resultpointer to store result
stillusestrongpointer 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
gcgGCG data structure
rfbranchruleRyan-Foster branchrule
ovar1sfirst elements of candidate pairs
ovar2ssecond elements of candidate pairs
nspricingblockpricing block numbers corresponding to input pairs
npairsnumber of input pairs
ovar1pointer to store output var 1 pointer
ovar2pointer to store output var 2 pointer
pricingblockpointer to store output pricing block number
sameinfpointer to store whether strong branching detected infeasibility in the same branch
differinfpointer to store whether strong branching detected infeasibility in the differ branch
resultpointer to store result
stillusestrongpointer 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().