GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

generic branch-and-price strong branching heuristics

Author
Oliver Gaul

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

Macros

#define BRANCHRULE_NAME   "bpstrong"
#define BRANCHRULE_DESC   "strong branching for branch-and-price"
#define BRANCHRULE_PRIORITY   -536870912
#define BRANCHRULE_MAXDEPTH   0
#define BRANCHRULE_MAXBOUNDDIST   0.0
#define DEFAULT_ENFORCEBYCONS   FALSE
#define DEFAULT_MOSTFRAC   FALSE
#define DEFAULT_USEPSEUDO   TRUE
#define DEFAULT_USEPSSTRONG   FALSE
#define DEFAULT_USESTRONG   FALSE
#define DEFAULT_STRONGLITE   FALSE
#define DEFAULT_STRONGTRAIN   FALSE
#define DEFAULT_IMMEDIATEINF   TRUE
#define DEFAULT_MAXSBLPITERS   INT_MAX
#define DEFAULT_MAXSBPRICEROUNDS   INT_MAX
#define DEFAULT_RFUSEPSEUDOCOSTS   TRUE
#define DEFAULT_RFUSEMOSTFRAC   FALSE
#define DEFAULT_REEVALAGE   1
#define DEFAULT_MINCOLGENCANDS   4
#define DEFAULT_HISTWEIGHT   0.5
#define DEFAULT_MAXLOOKAHEAD   8
#define DEFAULT_LOOKAHEADSCALES   0.5
#define DEFAULT_MINPHASE0DEPTH   0
#define DEFAULT_MAXPHASE1DEPTH   4
#define DEFAULT_MAXPHASE2DEPTH   3
#define DEFAULT_DEPTHLOGWEIGHT   0.5
#define DEFAULT_DEPTHLOGBASE   3.5
#define DEFAULT_DEPTHLOGPHASE0FRAC   0
#define DEFAULT_DEPTHLOGPHASE2FRAC   0.75
#define DEFAULT_CLOSEPERCENTAGE   0.90
#define DEFAULT_MAXCONSECHEURCLOSE   4
#define DEFAULT_SBPSEUDOCOSTWEIGHT   1
#define DEFAULT_PHASE1RELIABLE   INT_MAX
#define DEFAULT_PHASE2RELIABLE   INT_MAX
#define DEFAULT_FORCEP0   FALSE
#define ORIG   0
#define RYANFOSTER   1
#define GENERIC   2
#define branchDeactiveMasterBPStrong   NULL
#define branchPropMasterBPStrong   NULL
#define branchActiveMasterBPStrong   NULL
#define branchMasterSolvedBPStrong   NULL
#define branchDataDeleteBPStrong   NULL
#define branchExeclpBPStrong   NULL
#define branchExecextBPStrong   NULL
#define branchExecpsBPStrong   NULL

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

◆ BRANCHRULE_DESC

◆ BRANCHRULE_PRIORITY

◆ BRANCHRULE_MAXDEPTH

◆ 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

◆ 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

◆ RYANFOSTER

◆ 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()

SCIP_DECL_HASHGETKEY ( hashGetKeyVars )
static

gets the hash key of a variable tuple

Definition at line 238 of file branch_bpstrong.c.

References assert(), and vars.

◆ SCIP_DECL_HASHKEYEQ()

SCIP_DECL_HASHKEYEQ ( hashKeyEqVars )
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()

SCIP_DECL_HASHKEYVAL ( hashKeyValVars )
static

Definition at line 280 of file branch_bpstrong.c.

References assert(), and vars.

◆ calculateNCands()

int calculateNCands ( SCIP * scip,
SCIP_BRANCHRULEDATA * branchruledata,
SCIP_Real nodegap,
int phase,
int ncands )
static
Parameters
scipscip data structure
branchruledatastrong branching branchruledata
nodegapnode gap in current focus node
phasephase we are calculating this for
ncandsnumber 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()

int assignUniqueBlockFlags ( GCG * gcg,
SCIP_VAR * branchcand )
static

◆ addBranchcandsToData()

SCIP_RETCODE addBranchcandsToData ( GCG * gcg,
SCIP_BRANCHRULE * branchrule,
SCIP_VAR ** var1s,
SCIP_VAR ** var2s,
int ncands )
static

adds branching candidates to branchruledata to collect infos about it

Parameters
gcgGCG data structure
branchrulebranching rule
var1sfirst parts of branching candidates
var2ssecond parts of branching candidates
ncandsnumber 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()

int score_compare_function ( const void * index1,
const void * index2 )
static
Parameters
index1index in branchruledata->score of first element
index2index 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()

int geq_compare_function ( const void * index1,
const void * index2 )
static
Parameters
index1first index
index2second index

Definition at line 491 of file branch_bpstrong.c.

References geq_compare_function().

Referenced by geq_compare_function(), and selectCandidate().

◆ newProbingNodeRyanfosterMaster()

SCIP_RETCODE newProbingNodeRyanfosterMaster ( GCG * gcg,
GCG_BRANCHRULE * branchrule,
SCIP_VAR * ovar1,
SCIP_VAR * ovar2,
int blocknr,
SCIP_Bool same )
static
Parameters
gcgGCG data structure
branchrulebranching rule
ovar1first original variable
ovar2second original variable
blocknrnumber of the pricing block
samedo 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()

◆ isKAncestor()

SCIP_Bool isKAncestor ( SCIP * scip,
int ancestornodenr,
SCIP_NODE * successornode,
int k )
static
Parameters
scipSCIP data structure
ancestornodenrnumber of the supposed ancestor
successornodethe supposed successor
kmaximal 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()

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
Parameters
gcgGCG data structure
branchrulepointer to the branching rule
var1first var to be scored
var2second var to be scored
solval1the first var's current solution value
solval2the second var's current solution value
candinfoadditional integer information about the candidate
useheuristicshould heuristics be used instead of strong branching?
usehistoricalshould historical data from phase 2 be used as heuristic?
usecolgenshould column generation be used during strong branching?
scorestores the computed score
upinfstores whether the upbranch is infeasible
downinfstores 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()

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

branching method for relaxation solutions

Parameters
gcgGCG data structure
branchrulepointer to the branching rule
cand1sfirst variable candidates
cand2ssecond variable candidates (each cand2 corresponds to exactly one cand1 and vice versa)
candinfosadditional information for each candidate
ncandsnumber of input candidates
outcand1pointer to store the pointer of the first selected variable
outcand2pointer to store the pointer of the second selected variable (if applicable)
outcandinfopointer to store additional (integer) info
bestupinfpointer to store whether strong branching detected infeasibility in the upbranch
bestdowninfpointer to store whether strong branching detected infeasibility in the downbranch
resultpointer 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()

◆ 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
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().

Variable Documentation

◆ this_branchruledata

SCIP_BRANCHRULEDATA* this_branchruledata

Definition at line 229 of file branch_bpstrong.c.

Referenced by score_compare_function(), and selectCandidate().