Detailed Description
methods for branching rules in GCG projects
Definition in file branchgcg.c.
#include "gcg/branchgcg.h"#include "gcg/struct_branchgcg.h"#include "gcg/struct_extendedmasterconsdata.h"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
-
gcg GCG data structure branchrule GCG branch rule extendedmasterconsdata pointer to store the extended master cons data cons constraint in the master problem that represents the extended master cons pricingmodifications pricing modifications for the extended master cons npricingmodifications number of pricing modifications for the extended master cons branchdata any 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
-
gcg GCG data structure extendedmasterconsdata extended master cons data solvars array of column solution variables solvals array of column solution values nsolvars number of column solution variables and values probnr the pricing problem that the column belongs to gcgcol gcg column if available (or NULL) coeff pointer 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
-
gcg GCG data structure extendedmasterconsdata extended 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()
| SCIP_BRANCHRULE * GCGbranchGetScipBranchrule | ( | GCG_BRANCHRULE * | branchrule | ) |
returns the pointer to the SCIP_BRNACHRULE object
Definition at line 102 of file branchgcg.c.
References assert(), GCG_Branchrule::branchrule, and GCGbranchGetScipBranchrule().
Referenced by branchExtern(), branchVar(), checkchildconsS(), createBranchNodesInOrigprob(), GCGbranchGetScipBranchrule(), GCGcurrentNodeIsGeneric(), GCGisBranchruleGeneric(), initBranch(), pruneChildNodeByDominanceGeneric(), SCIP_DECL_EVENTEXEC(), and separation().
◆ 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().