GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

branching rule for original problem in GCG implementing the Ryan and Foster branching scheme

Author
Gerald Gamrath
Oliver Gaul

Definition in file branch_ryanfoster.c.

Go to the source code of this file.

Data Structures

struct  GCG_BranchData
struct  SCIP_BranchruleData

Macros

#define BRANCHRULE_NAME   "ryanfoster"
#define BRANCHRULE_DESC   "ryan and foster branching in generic column generation"
#define BRANCHRULE_PRIORITY   10
#define BRANCHRULE_MAXDEPTH   -1
#define BRANCHRULE_MAXBOUNDDIST   1.0
#define DEFAULT_USESTRONG   FALSE
#define DEFAULT_MINPHASE0OUTCANDS   10
#define DEFAULT_MAXPHASE0OUTCANDS   50
#define DEFAULT_MAXPHASE0OUTCANDSFRAC   0.7
#define DEFAULT_PHASE1GAPWEIGHT   0.25
#define DEFAULT_MINPHASE1OUTCANDS   3
#define DEFAULT_MAXPHASE1OUTCANDS   20
#define DEFAULT_MAXPHASE1OUTCANDSFRAC   0.7
#define DEFAULT_PHASE2GAPWEIGHT   1
#define branchExitRyanfoster   NULL
#define branchInitsolRyanfoster   NULL
#define branchExitsolRyanfoster   NULL

Functions

static SCIP_DECL_BRANCHCOPY (branchCopyRyanfoster)
static GCG_DECL_BRANCHACTIVEMASTER (branchActiveMasterRyanfoster)
static GCG_DECL_BRANCHDEACTIVEMASTER (branchDeactiveMasterRyanfoster)
static GCG_DECL_BRANCHPROPMASTER (branchPropMasterRyanfoster)
static GCG_DECL_BRANCHDATADELETE (branchDataDeleteRyanfoster)
static SCIP_RETCODE createChildNodesRyanfoster (GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_VAR *ovar1, SCIP_VAR *ovar2, int blocknr, SCIP_Bool sameinf, SCIP_Bool differinf)
static SCIP_DECL_BRANCHEXECLP (branchExeclpRyanfoster)
static SCIP_DECL_BRANCHEXECEXT (branchExecextRyanfoster)
static SCIP_DECL_BRANCHEXECPS (branchExecpsRyanfoster)
static SCIP_DECL_BRANCHINIT (branchInitRyanfoster)
static SCIP_DECL_BRANCHFREE (branchFreeRyanfoster)
SCIP_RETCODE GCGincludeBranchruleRyanfoster (GCG *gcg)

Macro Definition Documentation

◆ BRANCHRULE_NAME

#define BRANCHRULE_NAME   "ryanfoster"

Definition at line 63 of file branch_ryanfoster.c.

◆ BRANCHRULE_DESC

#define BRANCHRULE_DESC   "ryan and foster branching in generic column generation"

Definition at line 64 of file branch_ryanfoster.c.

◆ BRANCHRULE_PRIORITY

#define BRANCHRULE_PRIORITY   10

Definition at line 65 of file branch_ryanfoster.c.

◆ BRANCHRULE_MAXDEPTH

#define BRANCHRULE_MAXDEPTH   -1

Definition at line 66 of file branch_ryanfoster.c.

◆ BRANCHRULE_MAXBOUNDDIST

#define BRANCHRULE_MAXBOUNDDIST   1.0

Definition at line 67 of file branch_ryanfoster.c.

◆ DEFAULT_USESTRONG

#define DEFAULT_USESTRONG   FALSE

Definition at line 70 of file branch_ryanfoster.c.

◆ DEFAULT_MINPHASE0OUTCANDS

#define DEFAULT_MINPHASE0OUTCANDS   10

Definition at line 72 of file branch_ryanfoster.c.

◆ DEFAULT_MAXPHASE0OUTCANDS

#define DEFAULT_MAXPHASE0OUTCANDS   50

Definition at line 73 of file branch_ryanfoster.c.

◆ DEFAULT_MAXPHASE0OUTCANDSFRAC

#define DEFAULT_MAXPHASE0OUTCANDSFRAC   0.7

Definition at line 74 of file branch_ryanfoster.c.

◆ DEFAULT_PHASE1GAPWEIGHT

#define DEFAULT_PHASE1GAPWEIGHT   0.25

Definition at line 75 of file branch_ryanfoster.c.

◆ DEFAULT_MINPHASE1OUTCANDS

#define DEFAULT_MINPHASE1OUTCANDS   3

Definition at line 77 of file branch_ryanfoster.c.

◆ DEFAULT_MAXPHASE1OUTCANDS

#define DEFAULT_MAXPHASE1OUTCANDS   20

Definition at line 78 of file branch_ryanfoster.c.

◆ DEFAULT_MAXPHASE1OUTCANDSFRAC

#define DEFAULT_MAXPHASE1OUTCANDSFRAC   0.7

Definition at line 79 of file branch_ryanfoster.c.

◆ DEFAULT_PHASE2GAPWEIGHT

#define DEFAULT_PHASE2GAPWEIGHT   1

Definition at line 80 of file branch_ryanfoster.c.

◆ branchExitRyanfoster

#define branchExitRyanfoster   NULL

Definition at line 963 of file branch_ryanfoster.c.

◆ branchInitsolRyanfoster

#define branchInitsolRyanfoster   NULL

Definition at line 964 of file branch_ryanfoster.c.

◆ branchExitsolRyanfoster

#define branchExitsolRyanfoster   NULL

Definition at line 965 of file branch_ryanfoster.c.

Function Documentation

◆ SCIP_DECL_BRANCHCOPY()

SCIP_DECL_BRANCHCOPY ( branchCopyRyanfoster )
static

copy method for master branching rule

Definition at line 108 of file branch_ryanfoster.c.

References assert(), SCIP_DECL_BRANCHCOPY(), and SCIPdebugMessage().

◆ GCG_DECL_BRANCHACTIVEMASTER()

GCG_DECL_BRANCHACTIVEMASTER ( branchActiveMasterRyanfoster )
static

◆ GCG_DECL_BRANCHDEACTIVEMASTER()

GCG_DECL_BRANCHDEACTIVEMASTER ( branchDeactiveMasterRyanfoster )
static

callback deactivation method

Definition at line 178 of file branch_ryanfoster.c.

References assert(), GCG_DECL_BRANCHDEACTIVEMASTER, GCGgetPricingprob(), SCIP_CALL(), and SCIPdebugMessage().

◆ GCG_DECL_BRANCHPROPMASTER()

GCG_DECL_BRANCHPROPMASTER ( branchPropMasterRyanfoster )
static

◆ GCG_DECL_BRANCHDATADELETE()

GCG_DECL_BRANCHDATADELETE ( branchDataDeleteRyanfoster )
static

callback deletion method for branching data

Definition at line 298 of file branch_ryanfoster.c.

References assert(), GCG_DECL_BRANCHDATADELETE, GCGgetOrigprob(), GCGgetPricingprob(), origprob, SCIP_CALL(), and SCIPdebugMessage().

◆ createChildNodesRyanfoster()

SCIP_RETCODE createChildNodesRyanfoster ( GCG * gcg,
GCG_BRANCHRULE * branchrule,
SCIP_VAR * ovar1,
SCIP_VAR * ovar2,
int blocknr,
SCIP_Bool sameinf,
SCIP_Bool differinf )
static

for the two given original variables, create two Ryan&Foster branching nodes, one for same, one for differ

Parameters
gcgGCG data structure
branchrulebranching rule
ovar1first original variable
ovar2second original variable
blocknrnumber of the pricing block
sameinfis the samebranch known to be infeasible?
differinfis the differbranch known to be infeasible?

Definition at line 329 of file branch_ryanfoster.c.

References assert(), GCG_BranchData::blocknr, createChildNodesRyanfoster(), GCGconsMasterbranchGetActiveCons(), GCGcreateConsMasterbranch(), GCGgetMasterprob(), GCGgetOrigprob(), GCGoriginalVarGetPricingVar(), GCGpricingVarGetNOrigvars(), GCGpricingVarGetOrigvars(), GCGvarGetBlock(), GCGvarIsOriginal(), GCGvarIsPricing(), masterprob, origprob, GCG_BranchData::pricecons, GCG_BranchData::same, SCIP_CALL(), SCIPdebugMessage(), GCG_BranchData::var1, and GCG_BranchData::var2.

Referenced by createChildNodesRyanfoster(), SCIP_DECL_BRANCHEXECLP(), and SCIP_DECL_BRANCHEXECPS().

◆ SCIP_DECL_BRANCHEXECLP()

◆ SCIP_DECL_BRANCHEXECEXT()

SCIP_DECL_BRANCHEXECEXT ( branchExecextRyanfoster )
static

branching execution method for relaxation solutions

Definition at line 828 of file branch_ryanfoster.c.

References result, and SCIP_DECL_BRANCHEXECEXT().

◆ SCIP_DECL_BRANCHEXECPS()

◆ SCIP_DECL_BRANCHINIT()

SCIP_DECL_BRANCHINIT ( branchInitRyanfoster )
static

initialization method of branching rule (called after problem was transformed)

Definition at line 942 of file branch_ryanfoster.c.

References SCIP_DECL_BRANCHINIT().

◆ SCIP_DECL_BRANCHFREE()

SCIP_DECL_BRANCHFREE ( branchFreeRyanfoster )
static

destructor of branching rule (called when SCIP is exiting)

Definition at line 949 of file branch_ryanfoster.c.

References assert(), and SCIP_DECL_BRANCHFREE().

◆ GCGincludeBranchruleRyanfoster()