Detailed Description
public methods for branching rules in GCG projects
Definition in file pub_branchgcg.h.
#include "gcg/type_branchgcg.h"#include "scip/scip.h"#include "gcg/def.h"#include "gcg/type_gcg.h"Go to the source code of this file.
Functions | |
| GCG_EXPORT SCIP_RETCODE | GCGbranchCreateExtendedmastercons (GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata, SCIP_CONS *cons, GCG_PRICINGMODIFICATION **pricingmodifications, int npricingmodifications, GCG_BRANCHDATA *branchdata) |
| GCG_EXPORT SCIP_RETCODE | GCGbranchGetExtendedmasterconsCoeff (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, int probnr, GCG_COL *gcgcol, SCIP_Real *coeff) |
| GCG_EXPORT SCIP_RETCODE | GCGbranchFreeExtendedmasterconsBranchData (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA **extendedmasterconsdata) |
| GCG_EXPORT SCIP_BRANCHRULE * | GCGbranchGetScipBranchrule (GCG_BRANCHRULE *branchrule) |
| GCG_EXPORT SCIP_BRANCHRULEDATA * | GCGbranchGetScipBranchruledata (GCG_BRANCHRULE *branchrule) |
Function Documentation
◆ GCGbranchCreateExtendedmastercons()
| GCG_EXPORT 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()
| GCG_EXPORT 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()
| GCG_EXPORT 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()
| GCG_EXPORT 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()
| GCG_EXPORT 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().