Detailed Description
methods for interacting with GCG_EXTENDEDMASTERCONSDATA
Definition in file extendedmasterconsdata.c.
#include "gcg/pub_extendedmasterconsdata.h"#include "gcg/extendedmasterconsdata.h"#include "gcg/gcg.h"#include "gcg/scip_misc.h"#include "gcg/pricer_gcg.h"#include "gcg/struct_extendedmasterconsdata.h"#include "gcg/struct_vardata.h"#include "scip/scip.h"#include "scip/cons_linear.h"Go to the source code of this file.
Function Documentation
◆ GCGpricingmodificationFree()
|
static |
free a pricing modification
- Parameters
-
gcg GCG data structure pricingmodification pointer to the pricing modification
Definition at line 51 of file extendedmasterconsdata.c.
References GCGgetMasterprob(), GCGgetPricingprob(), GCGisMaster(), NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemoryArrayNull, SCIPfreeBlockMemoryNull, SCIPreleaseCons(), and SCIPreleaseVar().
Referenced by GCGextendedmasterconsFree().
◆ GCGextendedmasterconsCreateFromCons()
| SCIP_RETCODE GCGextendedmasterconsCreateFromCons | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA ** | extendedmasterconsdata, | ||
| GCG_EXTENDEDMASTERCONSTYPE | type, | ||
| SCIP_CONS * | cons, | ||
| GCG_PRICINGMODIFICATION ** | pricingmodifications, | ||
| int | npricingmodifications, | ||
| GCG_BRANCHCONSDATA * | data | ||
| ) |
create an extended master cons, taking ownership over pricingmodifications
- Parameters
-
gcg GCG data structure extendedmasterconsdata pointer to store the extended master cons data type type of the extended master cons 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 data branchconsdata that belongs to the cons
Definition at line 144 of file extendedmasterconsdata.c.
References GCG_PricingModification::blocknr, SCIP_VarData::data, GCG_InferredPricingVarData::extendedmasterconsdata, FALSE, GCGgetMasterprob(), GCGgetNPricingprobs(), GCGisMaster(), GCGisPricingprobRelevant(), SCIP_VarData::inferredpricingvardata, GCG_PricingModification::nadditionalvars, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPvarGetData(), and TRUE.
Referenced by GCGbranchCreateExtendedmastercons().
◆ GCGextendedmasterconsCreateFromRow()
| SCIP_RETCODE GCGextendedmasterconsCreateFromRow | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA ** | extendedmasterconsdata, | ||
| GCG_EXTENDEDMASTERCONSTYPE | type, | ||
| SCIP_ROW * | row, | ||
| GCG_PRICINGMODIFICATION ** | pricingmodifications, | ||
| int | npricingmodifications, | ||
| GCG_MASTERSEPACUT * | data | ||
| ) |
create an extended master cons, taking ownership over pricingmodifications
- Parameters
-
gcg GCG data structure extendedmasterconsdata pointer to store the extended master cons data type type of the extended master cons row row in the master problem that represents the extended master cons cut pricingmodifications pricing modifications for the extended master cons npricingmodifications number of pricing modifications for the extended master cons data mastersepacut that corresponds to the row
Definition at line 209 of file extendedmasterconsdata.c.
References GCG_PricingModification::blocknr, SCIP_VarData::data, GCG_InferredPricingVarData::extendedmasterconsdata, FALSE, GCGgetMasterprob(), GCGgetNPricingprobs(), GCGisMaster(), GCGisPricingprobRelevant(), SCIP_VarData::inferredpricingvardata, GCG_PricingModification::nadditionalvars, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPvarGetData(), and TRUE.
Referenced by GCGextendedmasterconsCreateForSepamastercut().
◆ GCGextendedmasterconsFree()
| SCIP_RETCODE GCGextendedmasterconsFree | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA ** | extendedmasterconsdata | ||
| ) |
free an extended master cons
- Parameters
-
gcg GCG data structure extendedmasterconsdata pointer to the extended master cons data
Definition at line 274 of file extendedmasterconsdata.c.
References GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGgetMasterprob(), GCGisMaster(), GCGpricingmodificationFree(), NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArrayNull, SCIPreleaseCons(), and SCIPreleaseRow().
Referenced by GCGbranchFreeExtendedmasterconsBranchData(), and GCGreleaseMastersepacut().
◆ GCGextendedmasterconsIsActive()
| SCIP_Bool GCGextendedmasterconsIsActive | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
determine whether the extendedmasterconsdata is active in the masterscip
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 317 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, FALSE, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, NULL, GCG_ExtendedMasterCons::row, SCIP_Bool, SCIP_CALL_ABORT, SCIP_INVALIDDATA, SCIPconsIsActive(), SCIProwIsInLP(), and GCG_ExtendedMasterConsData::type.
Referenced by ObjPricerGcg::computeColMastersepacutCoeffs(), GCGcolComputeDualObjPara(), ObjPricerGcg::pricingLoop(), and ObjPricerGcg::setPricingObjs().
◆ GCGextendedmasterconsAddMasterVar()
| SCIP_RETCODE GCGextendedmasterconsAddMasterVar | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata, | ||
| SCIP_VAR * | var, | ||
| SCIP_Real | coef | ||
| ) |
add a new variable along with its coefficient to the extended master cons
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data var variable to add coef coefficient of the variable
Definition at line 338 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGgetMasterprob(), GCGisMaster(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPaddCoefLinear(), SCIPaddVarToRow(), and GCG_ExtendedMasterConsData::type.
Referenced by addVarToMasterbranch().
◆ GCGextendedmasterconsGetCons()
| SCIP_CONS * GCGextendedmasterconsGetCons | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
get the constraint that is the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 397 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, NULL, and GCG_ExtendedMasterConsData::type.
Referenced by ReducedCostPricing::extendedmasterconsGetDual(), FarkasPricing::extendedmasterconsGetDual(), and ObjPricerGcg::getStabilizedDualObjectiveValue().
◆ GCGextendedmasterconsGetRow()
| SCIP_ROW * GCGextendedmasterconsGetRow | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
get the row that is the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 411 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, NULL, GCG_ExtendedMasterCons::row, and GCG_ExtendedMasterConsData::type.
Referenced by addMissedVariables(), addStoredCutsToActiveCuts(), addToActiveMastersepacuts(), ObjPricerGcg::addVariableToMastersepacuts(), ObjPricerGcg::addVariableToMastersepacutsFromGCGCol(), eventRowAddedToLP(), eventRowDeletedFromLP(), ReducedCostPricing::extendedmasterconsGetDual(), FarkasPricing::extendedmasterconsGetDual(), GCGaddGeneratedMastersepacut(), GCGcolComputeDualObjPara(), GCGeventmastersepacutRemoveNewInactiveMastersepacuts(), GCGeventmastersepacutShrinkActiveMastersepacuts(), ObjPricerGcg::getStabilizedDualObjectiveValue(), and reinsertGlobalMastersepacut().
◆ GCGpricingmodificationGetCoefVar()
| SCIP_VAR * GCGpricingmodificationGetCoefVar | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the variable that determines the coefficient of a column in the extended master cons
- Parameters
-
pricingmodification pricing modification
Definition at line 425 of file extendedmasterconsdata.c.
References GCG_PricingModification::coefvar, and NULL.
Referenced by GCGcolUpdateActiveMastersepacuts(), and GCGcreateGcgCol().
◆ GCGpricingmodificationGetAdditionalVars()
| SCIP_VAR ** GCGpricingmodificationGetAdditionalVars | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the additional variables that are inferred by the extended master cons
- Parameters
-
pricingmodification pricing modification
Definition at line 437 of file extendedmasterconsdata.c.
References GCG_PricingModification::additionalvars, and NULL.
◆ GCGpricingmodificationGetNAdditionalVars()
| int GCGpricingmodificationGetNAdditionalVars | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the number of additional variables that are inferred by the extended master cons
- Parameters
-
pricingmodification pricing modification
Definition at line 449 of file extendedmasterconsdata.c.
References GCG_PricingModification::nadditionalvars, and NULL.
◆ GCGpricingmodificationGetAdditionalConss()
| SCIP_CONS ** GCGpricingmodificationGetAdditionalConss | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the additional constraints that are inferred by the extended master cons
- Parameters
-
pricingmodification pricing modification
Definition at line 461 of file extendedmasterconsdata.c.
References GCG_PricingModification::additionalconss, and NULL.
Referenced by GCGchvatalGomoryCutGetVariableCoefficient().
◆ GCGpricingmodificationGetNAdditionalConss()
| int GCGpricingmodificationGetNAdditionalConss | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the number of additional constraints that are inferred by the extended master cons
- Parameters
-
pricingmodification pricing modification
Definition at line 473 of file extendedmasterconsdata.c.
References GCG_PricingModification::nadditionalconss, and NULL.
◆ GCGpricingmodificationGetBlock()
| int GCGpricingmodificationGetBlock | ( | GCG_PRICINGMODIFICATION * | pricingmodification | ) |
get the number of the block the modification belongs to
- Parameters
-
pricingmodification pricing modification
Definition at line 485 of file extendedmasterconsdata.c.
References GCG_PricingModification::blocknr, and NULL.
◆ GCGextendedmasterconsGetPricingModification()
| GCG_PRICINGMODIFICATION * GCGextendedmasterconsGetPricingModification | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata, | ||
| int | blocknr | ||
| ) |
get the pricing modification for a block, if exists, else NULL
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data blocknr block number
Definition at line 495 of file extendedmasterconsdata.c.
References GCG_PricingModification::blocknr, GCGgetNPricingprobs(), GCG_ExtendedMasterConsData::npricingmodifications, NULL, and GCG_ExtendedMasterConsData::pricingmodifications.
Referenced by GCGchvatalGomoryCutGetVariableCoefficient(), GCGcolUpdateActiveMastersepacuts(), and GCGcreateGcgCol().
◆ GCGextendedmasterconsGetPricingModifications()
| GCG_PRICINGMODIFICATION ** GCGextendedmasterconsGetPricingModifications | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
get the pricing modifications for the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 519 of file extendedmasterconsdata.c.
References NULL, and GCG_ExtendedMasterConsData::pricingmodifications.
◆ GCGextendedmasterconsGetNPricingModifications()
| int GCGextendedmasterconsGetNPricingModifications | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
get the number of pricing modifications for the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 531 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterConsData::npricingmodifications, and NULL.
◆ GCGpricingmodificationApply()
| SCIP_RETCODE GCGpricingmodificationApply | ( | SCIP * | pricingscip, |
| GCG_PRICINGMODIFICATION * | pricingmodification | ||
| ) |
apply a pricing modification
- Parameters
-
pricingscip pricing scip pricingmodification pricing modification
Definition at line 542 of file extendedmasterconsdata.c.
References GCG_PricingModification::additionalconss, GCG_PricingModification::additionalvars, GCG_PricingModification::coefvar, GCGvarIsInferredPricing(), GCG_PricingModification::nadditionalconss, GCG_PricingModification::nadditionalvars, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddCons(), and SCIPaddVar().
◆ GCGpricingmodificationUndo()
| SCIP_RETCODE GCGpricingmodificationUndo | ( | SCIP * | pricingscip, |
| GCG_PRICINGMODIFICATION * | pricingmodification | ||
| ) |
undo a pricing modification
- Parameters
-
pricingscip pricing scip pricingmodification pricing modification
Definition at line 572 of file extendedmasterconsdata.c.
References GCG_PricingModification::additionalconss, GCG_PricingModification::additionalvars, GCG_PricingModification::coefvar, FALSE, GCGvarIsInferredPricing(), GCG_PricingModification::nadditionalconss, GCG_PricingModification::nadditionalvars, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPdelCons(), and SCIPdelVar().
Referenced by GCGextendedmasterconsUndoPricingModifications().
◆ GCGextendedmasterconsUndoPricingModifications()
| SCIP_RETCODE GCGextendedmasterconsUndoPricingModifications | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
undo all pricing modifications
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 606 of file extendedmasterconsdata.c.
References GCG_PricingModification::blocknr, GCG_PricingModification::coefvar, GCGgetPricingprob(), GCGpricingmodificationUndo(), GCG_ExtendedMasterConsData::npricingmodifications, NULL, GCG_ExtendedMasterConsData::pricingmodifications, SCIP_CALL, SCIP_OKAY, and SCIPvarGetProbindex().
Referenced by ObjPricerGcg::pricingLoop().
◆ GCGpricingmodificationIsCoefVar()
| SCIP_Bool GCGpricingmodificationIsCoefVar | ( | GCG_PRICINGMODIFICATION * | pricingmodification, |
| SCIP_VAR * | var | ||
| ) |
check whether a given variable is a coefficient variable of a given pricing modification
- Parameters
-
pricingmodification pricing modification var variable to check
Definition at line 631 of file extendedmasterconsdata.c.
References GCG_PricingModification::coefvar, NULL, and SCIP_Bool.
Referenced by GCGextendedmasterconsIsCoefVar().
◆ GCGextendedmasterconsIsCoefVar()
| SCIP_Bool GCGextendedmasterconsIsCoefVar | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata, |
| SCIP_VAR * | var | ||
| ) |
check whether a given variable is a coefficient variable of a given extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data var variable to check
Definition at line 642 of file extendedmasterconsdata.c.
References FALSE, GCGpricingmodificationIsCoefVar(), GCG_ExtendedMasterConsData::npricingmodifications, NULL, GCG_ExtendedMasterConsData::pricingmodifications, SCIP_Bool, and TRUE.
◆ GCGextendedmasterconsGetName()
| const char * GCGextendedmasterconsGetName | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
get name of the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 662 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALIDDATA, SCIPconsGetName(), SCIProwGetName(), and GCG_ExtendedMasterConsData::type.
Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), and ObjPricerGcg::setPricingObjs().
◆ GCGextendedmasterconsGetLhs()
| SCIP_Real GCGextendedmasterconsGetLhs | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get the lhs of the extended master cons
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 683 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGconsGetLhs(), GCGgetMasterprob(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_Real, SCIProwGetLhs(), and GCG_ExtendedMasterConsData::type.
Referenced by gcg::Stabilization::branchmasterconsGetDual(), GCGcolComputeDualObjPara(), and ObjPricerGcg::getStabilizedDualObjectiveValue().
◆ GCGextendedmasterconsGetRhs()
| SCIP_Real GCGextendedmasterconsGetRhs | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get the rhs of the extended master cons
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 706 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGconsGetRhs(), GCGgetMasterprob(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_Real, SCIProwGetRhs(), and GCG_ExtendedMasterConsData::type.
Referenced by gcg::Stabilization::branchmasterconsGetDual(), GCGcolComputeDualObjPara(), and ObjPricerGcg::getStabilizedDualObjectiveValue().
◆ GCGextendedmasterconsGetConstant()
| SCIP_Real GCGextendedmasterconsGetConstant | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get the constant of the extended master cons (always returns 0 if extended master cons is a constraint, returns constant of row otherwise)
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 729 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_Real, SCIProwGetConstant(), and GCG_ExtendedMasterConsData::type.
Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue().
◆ GCGextendedmasterconsGetNNonz()
| int GCGextendedmasterconsGetNNonz | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get number of nonzero entries in the extended master cons
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 750 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGgetMasterprob(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALIDDATA, SCIPconsGetRow(), SCIProwGetNNonz(), and GCG_ExtendedMasterConsData::type.
◆ GCGextendedmasterconsGetCols()
| SCIP_COL ** GCGextendedmasterconsGetCols | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get array of columns with nonzero entries
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 773 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGgetMasterprob(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALIDDATA, SCIPconsGetRow(), SCIProwGetCols(), and GCG_ExtendedMasterConsData::type.
◆ GCGextendedmasterconsGetVals()
| SCIP_Real * GCGextendedmasterconsGetVals | ( | GCG * | gcg, |
| GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ||
| ) |
get array of coefficients with nonzero entries
- Parameters
-
gcg GCG data structure extendedmasterconsdata extended master cons data
Definition at line 796 of file extendedmasterconsdata.c.
References GCG_ExtendedMasterCons::cons, GCG_ExtendedMasterConsData::cons, GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGgetMasterprob(), NULL, GCG_ExtendedMasterCons::row, SCIP_CALL_ABORT, SCIP_INVALIDDATA, SCIP_Real, SCIPconsGetRow(), SCIProwGetVals(), and GCG_ExtendedMasterConsData::type.
◆ GCGextendedmasterconsGetCoeff()
| SCIP_RETCODE GCGextendedmasterconsGetCoeff | ( | 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 819 of file extendedmasterconsdata.c.
References GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGbranchGetExtendedmasterconsCoeff(), GCGmastersepacutGetExtendedmasterconsCoeff(), NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, and GCG_ExtendedMasterConsData::type.
◆ GCGextendedmasterconsGetType()
| GCG_EXTENDEDMASTERCONSTYPE GCGextendedmasterconsGetType | ( | GCG_EXTENDEDMASTERCONSDATA * | extendedmasterconsdata | ) |
gets the type of the extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Definition at line 850 of file extendedmasterconsdata.c.
References NULL, and GCG_ExtendedMasterConsData::type.
Referenced by addToActiveMastersepacuts(), ReducedCostPricing::extendedmasterconsGetDual(), FarkasPricing::extendedmasterconsGetDual(), GCGbranchFreeExtendedmasterconsBranchData(), GCGbranchGetExtendedmasterconsCoeff(), GCGcaptureMastersepacut(), GCGcolUpdateActiveMastersepacuts(), GCGextendedmasterconsGetMastersepacut(), GCGreleaseMastersepacut(), and ObjPricerGcg::getStabilizedDualObjectiveValue().