Scippy

GCG

Branch-and-Price & Column Generation for Everyone

mastersepacut.c File Reference

Detailed Description

data structures to store all the relevant data for cuts generated by master separators

public functions to work with master cuts

Author
Chantal Reinartz Groba
Erik Muehmer
Erik Muehmer

Definition in file mastersepacut.c.

Go to the source code of this file.

Functions

static SCIP_RETCODE freeMastersepacut (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
 
SCIP_RETCODE GCGcaptureMastersepacut (GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
 
SCIP_RETCODE GCGreleaseMastersepacut (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA **mastersepacut)
 
SCIP_RETCODE GCGcreateMastersepacut (GCG *gcg, GCG_MASTERSEPACUT **mastersepacut, GCG_SEPA *sepa, GCG_VARHISTORY *varhistory, GCG_MASTERSEPACUTDATA *mastersepacutdata)
 
GCG_VARHISTORY * GCGmastersepacutGetVarHistory (GCG_MASTERSEPACUT *mastersepacut)
 
GCG_SEPA * GCGmastersepacutGetSeparator (GCG_MASTERSEPACUT *mastersepacut)
 
GCG_MASTERSEPACUTDATA * GCGmastersepacutGetData (GCG_MASTERSEPACUT *mastersepacut)
 
SCIP_RETCODE GCGmastersepacutSetVarHistory (GCG *gcg, GCG_MASTERSEPACUT *mastersepacut)
 
GCG_MASTERSEPACUT * GCGextendedmasterconsGetMastersepacut (GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata)
 
SCIP_RETCODE GCGextendedmasterconsCreateForSepamastercut (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA **extendedmastercons, GCG_MASTERSEPACUT *cut, SCIP_ROW *row, GCG_PRICINGMODIFICATION **pricingmodifications, int npricingmodifications)
 
SCIP_RETCODE GCGmastersepacutGetExtendedmasterconsCoeff (GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *mastersepacut, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, int probnr, GCG_COL *gcgcol, SCIP_Real *coef)
 

Function Documentation

◆ freeMastersepacut()

static SCIP_RETCODE freeMastersepacut ( GCG *  gcg,
GCG_EXTENDEDMASTERCONSDATA *  mastersepacut 
)
static

◆ GCGcaptureMastersepacut()

SCIP_RETCODE GCGcaptureMastersepacut ( GCG_EXTENDEDMASTERCONSDATA *  mastersepacut)

◆ GCGreleaseMastersepacut()

SCIP_RETCODE GCGreleaseMastersepacut ( GCG *  gcg,
GCG_EXTENDEDMASTERCONSDATA **  mastersepacut 
)

◆ GCGcreateMastersepacut()

SCIP_RETCODE GCGcreateMastersepacut ( GCG *  gcg,
GCG_MASTERSEPACUT **  mastersepacut,
GCG_SEPA *  sepa,
GCG_VARHISTORY *  varhistory,
GCG_MASTERSEPACUTDATA *  mastersepacutdata 
)

returns the variable history of the separator master cut

Parameters
gcgGCG data structure
mastersepacutpointer to store separator master cut
sepaseparator creating this cut
varhistoryvariable history
mastersepacutdataseparator master cut data

Definition at line 129 of file mastersepacut.c.

References GCGgetMasterprob(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocBlockMemory.

Referenced by GCGcreateChvatalGomoryCut().

◆ GCGmastersepacutGetVarHistory()

GCG_VARHISTORY * GCGmastersepacutGetVarHistory ( GCG_MASTERSEPACUT *  mastersepacut)

return the separator which created the cut

Parameters
mastersepacutseparator master cut

Definition at line 151 of file mastersepacut.c.

References GCG_Mastersepacut::knownvarhistory, and NULL.

Referenced by addMissedVariables(), ObjPricerGcg::addVariableToMastersepacuts(), eventRowAddedToLP(), and ObjPricerGcg::pricingLoop().

◆ GCGmastersepacutGetSeparator()

GCG_SEPA * GCGmastersepacutGetSeparator ( GCG_MASTERSEPACUT *  mastersepacut)

returns the data of the separator master cut

Parameters
mastersepacutseparator master cut

Definition at line 162 of file mastersepacut.c.

References NULL, and GCG_Mastersepacut::sepa.

Referenced by GCGmastersepacutGetExtendedmasterconsCoeff().

◆ GCGmastersepacutGetData()

GCG_MASTERSEPACUTDATA * GCGmastersepacutGetData ( GCG_MASTERSEPACUT *  mastersepacut)

set the variable history of separator master cut

Parameters
mastersepacutseparator master cut

Definition at line 172 of file mastersepacut.c.

References GCG_Mastersepacut::data, and NULL.

Referenced by GCGchvatalGomoryCutGetConssIndices(), GCGchvatalGomoryCutGetNWeights(), and GCGchvatalGomoryCutGetWeights().

◆ GCGmastersepacutSetVarHistory()

SCIP_RETCODE GCGmastersepacutSetVarHistory ( GCG *  gcg,
GCG_MASTERSEPACUT *  mastersepacut 
)

set the variable history of separator master cut

Parameters
gcgGCG data structure
mastersepacutpointer to separator master cut

Definition at line 182 of file mastersepacut.c.

References GCGgetCurrentVarhistoryReference(), GCGgetMasterprob(), GCGvarhistoryCopyReference(), GCG_Mastersepacut::knownvarhistory, NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by eventRowAddedToLP().

◆ GCGextendedmasterconsGetMastersepacut()

◆ GCGextendedmasterconsCreateForSepamastercut()

SCIP_RETCODE GCGextendedmasterconsCreateForSepamastercut ( GCG *  gcg,
GCG_EXTENDEDMASTERCONSDATA **  extendedmastercons,
GCG_MASTERSEPACUT *  cut,
SCIP_ROW *  row,
GCG_PRICINGMODIFICATION **  pricingmodifications,
int  npricingmodifications 
)

creates extended master cons data for a given master cut

Parameters
gcgGCG data structure
extendedmasterconspointer to store the create extended master cons data
cutmaster cut data structure
rowcorresponding row object
pricingmodificationsrelated pricing modifications
npricingmodificationsnumber of pricing modifications

Definition at line 209 of file mastersepacut.c.

References GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGextendedmasterconsCreateFromRow(), NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by createMastercutData().

◆ GCGmastersepacutGetExtendedmasterconsCoeff()

SCIP_RETCODE GCGmastersepacutGetExtendedmasterconsCoeff ( GCG *  gcg,
GCG_EXTENDEDMASTERCONSDATA *  mastersepacut,
SCIP_VAR **  solvars,
SCIP_Real *  solvals,
int  nsolvars,
int  probnr,
GCG_COL *  gcgcol,
SCIP_Real *  coef 
)

calculate the coefficient of a column solution

Parameters
gcgGCG data structure
mastersepacutmaster cut data structure
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)
coefpointer to store the coefficient

Definition at line 226 of file mastersepacut.c.

References GCGextendedmasterconsGetMastersepacut(), GCGmastersepacutGetSeparator(), SCIP_CALL, and SCIP_OKAY.

Referenced by addMissedVariables(), ObjPricerGcg::addVariableToMastersepacuts(), ObjPricerGcg::computeColMastersepacutCoeffs(), GCGcreateGcgCol(), and GCGextendedmasterconsGetCoeff().