GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

methods for branching rules in GCG projects

Author
Erik Muehmer

Definition in file branchgcg.c.

Go to the source code of this file.

Functions

SCIP_RETCODE GCGbranchCreateExtendedmastercons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata, SCIP_CONS *cons, GCG_PRICINGMODIFICATION **pricingmodifications, int npricingmodifications, GCG_BRANCHDATA *branchdata)
SCIP_RETCODE GCGbranchGetExtendedmasterconsCoeff (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, int probnr, GCG_COL *gcgcol, SCIP_Real *coeff)
SCIP_RETCODE GCGbranchFreeExtendedmasterconsBranchData (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata)
SCIP_BRANCHRULE * GCGbranchGetScipBranchrule (GCG_BRANCHRULE *branchrule)
SCIP_BRANCHRULEDATA * GCGbranchGetScipBranchruledata (GCG_BRANCHRULE *branchrule)

Function Documentation

◆ GCGbranchCreateExtendedmastercons()

SCIP_RETCODE GCGbranchCreateExtendedmastercons ( GCG * gcg,
GCG_BRANCHRULE * branchrule,
GCG_EXTENDEDMASTERCONSDATA ** extendedmasterconsdata,
SCIP_CONS * cons,
GCG_PRICINGMODIFICATION ** pricingmodifications,
int npricingmodifications,
GCG_BRANCHDATA * branchdata )

creates an extended master cons for a cons created by a branch rule

Parameters
gcgGCG data structure
branchruleGCG branch rule
extendedmasterconsdatapointer to store the extended master cons data
consconstraint in the master problem that represents the extended master cons
pricingmodificationspricing modifications for the extended master cons
npricingmodificationsnumber of pricing modifications for the extended master cons
branchdataany data that might be required to calculate the coefficient of a column solution

Definition at line 41 of file branchgcg.c.

References GCG_BranchConsData::branchdata, GCG_BranchConsData::branchrule, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCGbranchCreateExtendedmastercons(), GCGextendedmasterconsCreateFromCons(), GCGgetMasterprob(), and SCIP_CALL().

Referenced by createBranchingCons(), and GCGbranchCreateExtendedmastercons().

◆ GCGbranchGetExtendedmasterconsCoeff()

SCIP_RETCODE GCGbranchGetExtendedmasterconsCoeff ( GCG * gcg,
GCG_EXTENDEDMASTERCONSDATA * extendedmasterconsdata,
SCIP_VAR ** solvars,
SCIP_Real * solvals,
int nsolvars,
int probnr,
GCG_COL * gcgcol,
SCIP_Real * coeff )

calculate the coefficient of a column solution in the extended master cons

Parameters
gcgGCG data structure
extendedmasterconsdataextended master cons data
solvarsarray of column solution variables
solvalsarray of column solution values
nsolvarsnumber of column solution variables and values
probnrthe pricing problem that the column belongs to
gcgcolgcg column if available (or NULL)
coeffpointer to store the coefficient

Definition at line 61 of file branchgcg.c.

References assert(), GCG_BranchConsData::branchdata, GCG_BranchConsData::branchrule, GCG_ExtendedMasterConsData::data, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCGbranchGetExtendedmasterconsCoeff(), GCGextendedmasterconsGetType(), and SCIP_CALL().

Referenced by addVarToMasterbranch(), GCGbranchGetExtendedmasterconsCoeff(), GCGcreateGcgCol(), and GCGextendedmasterconsGetCoeff().

◆ GCGbranchFreeExtendedmasterconsBranchData()

SCIP_RETCODE GCGbranchFreeExtendedmasterconsBranchData ( GCG * gcg,
GCG_EXTENDEDMASTERCONSDATA ** extendedmasterconsdata )

frees the branch data stored in the extened master cons data

Parameters
gcgGCG data structure
extendedmasterconsdataextended master cons data

Definition at line 83 of file branchgcg.c.

References assert(), GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCGbranchFreeExtendedmasterconsBranchData(), GCGextendedmasterconsFree(), GCGextendedmasterconsGetType(), GCGgetMasterprob(), and SCIP_CALL().

Referenced by GCG_DECL_BRANCHDATADELETE(), and GCGbranchFreeExtendedmasterconsBranchData().

◆ GCGbranchGetScipBranchrule()

◆ GCGbranchGetScipBranchruledata()

SCIP_BRANCHRULEDATA * GCGbranchGetScipBranchruledata ( GCG_BRANCHRULE * branchrule)

returns the pointer to the SCIP_BRNACHRULEDATA object

Definition at line 113 of file branchgcg.c.

References assert(), GCG_Branchrule::branchrule, and GCGbranchGetScipBranchruledata().

Referenced by branchExtern(), branchVar(), createBranchingCons(), and GCGbranchGetScipBranchruledata().