Detailed Description
Pricer C++ Class
Definition at line 55 of file objpricer_gcg.h.
#include <objpricer_gcg.h>
Data Fields | |
| GCG * | gcg |
| SCIP * | origprob |
| SCIP_PRICERDATA * | pricerdata |
| GCG_COLPOOL * | colpool |
| GCG_PRICESTORE * | pricestore |
Data Fields inherited from scip::ObjPricer | |
| SCIP * | scip_ |
| char * | scip_name_ |
| char * | scip_desc_ |
| const int | scip_priority_ |
| const SCIP_Bool | scip_delay_ |
Constructor & Destructor Documentation
◆ ObjPricerGcg()
| ObjPricerGcg::ObjPricerGcg | ( | GCG * | gcgstruct, |
| const char * | name, | ||
| const char * | desc, | ||
| int | priority, | ||
| unsigned int | delay, | ||
| SCIP_PRICERDATA * | p_pricerdata | ||
| ) |
default constructor
- Parameters
-
gcgstruct GCG data structure name name of variable pricer desc description of variable pricer priority priority of the variable pricer delay should the pricer be delayed until no other pricers or already existing p_pricerdata pricerdata data structure
Definition at line 4683 of file pricer_gcg.cpp.
References GCGgetOrigprob(), NULL, origprob, and pricerdata.
◆ ~ObjPricerGcg()
|
inlinevirtual |
destructor
Definition at line 76 of file objpricer_gcg.h.
Member Function Documentation
◆ SCIP_DECL_PRICERFREE()
|
virtual |
destructor of variable pricer to free user data (called when SCIP is exiting)
Reimplemented from scip::ObjPricer.
◆ SCIP_DECL_PRICERINIT()
|
virtual |
initialization method of variable pricer (called after problem was transformed)
Reimplemented from scip::ObjPricer.
◆ SCIP_DECL_PRICEREXIT()
|
virtual |
deinitialization method of variable pricer (called before transformed problem is freed)
Reimplemented from scip::ObjPricer.
◆ SCIP_DECL_PRICERINITSOL()
|
virtual |
solving process initialization method of variable pricer (called when branch and bound process is about to begin)
Reimplemented from scip::ObjPricer.
◆ SCIP_DECL_PRICEREXITSOL()
|
virtual |
solving process deinitialization method of variable pricer (called before branch and bound process data is freed)
Reimplemented from scip::ObjPricer.
◆ SCIP_DECL_PRICERREDCOST()
|
virtual |
reduced cost pricing method of variable pricer for feasible LPs
Implements scip::ObjPricer.
◆ SCIP_DECL_PRICERFARKAS()
|
virtual |
farkas pricing method of variable pricer for infeasible LPs
Reimplemented from scip::ObjPricer.
◆ getPricerdata()
|
inline |
Definition at line 93 of file objpricer_gcg.h.
References pricerdata.
Referenced by GCGgetCurrentVarhistoryReference(), GCGgetNActivePricingproblemModifications(), GCGgetNAppliedPricingproblemModifications(), GCGmasterAddMasterconsToHashmap(), GCGmasterGetDegeneracy(), GCGmasterGetNPricedvars(), GCGmasterGetPricedvars(), GCGmasterGetPricingSimplexIters(), GCGmasterIsBestsolValid(), GCGmasterIsCurrentSolValid(), GCGmasterIsSolValid(), GCGmasterPrintSimplexIters(), GCGmasterTransOrigSolToMasterVars(), GCGpricerExistRays(), GCGpricerFindPricingcb(), GCGpricerGetNPointsProb(), GCGpricerGetNPricingcbs(), GCGpricerGetNRaysProb(), GCGpricerGetNSolvers(), GCGpricerGetPricingcbs(), GCGpricerGetSolvers(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricerPrintListOfSolvers(), GCGpricerPrintPricingStatistics(), GCGpricerPrintStatistics(), and SCIP_DECL_EVENTEXEC().
◆ getConvconsDualsol()
| SCIP_Real ObjPricerGcg::getConvconsDualsol | ( | PricingType * | pricetype, |
| int | probnr | ||
| ) |
for a pricing problem, get the dual solution value or Farkas value of the convexity constraint
- Parameters
-
pricetype Farkas or Reduced cost pricing probnr index of corresponding pricing problem
Definition at line 1064 of file pricer_gcg.cpp.
References PricingType::consGetDual(), GCGgetConvCons(), GCGisPricingprobRelevant(), scip::ObjPricer::scip_, SCIP_Real, and SCIPinfinity().
◆ setPricingObjs()
| SCIP_RETCODE ObjPricerGcg::setPricingObjs | ( | PricingType * | pricetype, |
| SCIP_Bool | stabilize | ||
| ) |
computes the pricing problem objectives
computes the pricing problem objectives
- Parameters
-
pricetype Farkas or Reduced cost pricing stabilize do we use stabilization ?
Definition at line 1078 of file pricer_gcg.cpp.
References GCG_MastervarKey::block, gcg::Stabilization::branchmasterconsGetDual(), gcg::Stabilization::consGetDual(), PricingType::consGetDual(), SCIP_PricerData::dualsolconv, SCIP_PricerData::dualweight, PricingType::extendedmasterconsGetDual(), GCGconsGetNVars(), GCGconsGetVals(), GCGconsGetVars(), GCGextendedmasterconsGetName(), GCGextendedmasterconsIsActive(), GCGextendedmasterconsUpdateDualValue(), GCGgetActiveMastersepacuts(), GCGgetConvCons(), GCGgetMasterConss(), GCGgetNActiveMastersepacuts(), GCGgetNMasterConss(), GCGgetNVarLinkingconss(), GCGgetOrigMasterConss(), GCGgetVarLinkingconss(), GCGgetVarLinkingconssBlock(), GCGlinkingVarGetPricingVars(), GCGmasterVarGetOrigvars(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), GCGsepaGetNOriginalSepaCuts(), GCGsepaGetOriginalSepaMastercuts(), GCGsepaGetOriginalSepaOrigcuts(), GCGvarGetBlock(), GCGvarIsInferredPricing(), GCGvarIsOriginal(), GCGvarIsPricing(), gcg::Stabilization::linkingconsGetDual(), SCIP_PricerData::npricingprobs, SCIP_PricerData::nrealdualvalues, NULL, origprob, pricerdata, SCIP_PricerData::pricingprobs, SCIP_PricerData::realdualvalues, SCIP_PricerData::relaxweight, gcg::Stabilization::rowGetDual(), PricingType::rowGetDual(), scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPallocClearBufferArray, SCIPchgVarObj(), SCIPcolGetVar(), SCIPconsGetName(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetNOrigVars(), SCIPgetOrigVars(), SCIPgetVarsLinear(), SCIPinfinity(), SCIPisEQ(), SCIPisZero(), SCIProwGetCols(), SCIProwGetName(), SCIProwGetNNonz(), SCIProwGetVals(), SCIPvarGetIndex(), SCIPvarGetName(), and PricingType::varGetObj().
Referenced by GCGsetPricingObjs(), and pricingLoop().
◆ updateRedcostColumnPool()
| void ObjPricerGcg::updateRedcostColumnPool | ( | PricingType * | pricetype | ) |
update reduced cost of columns in column pool
- Parameters
-
pricetype type of pricing: reduced cost or Farkas
◆ priceColumnPoolOld()
| SCIP_RETCODE ObjPricerGcg::priceColumnPoolOld | ( | PricingType * | pricetype, |
| int * | pnfoundvars | ||
| ) |
method to price new columns from Column Pool
- Parameters
-
pricetype type of pricing: reduced cost or Farkas pnfoundvars pointer to store number of priced variables
◆ priceNewVariables()
| SCIP_RETCODE ObjPricerGcg::priceNewVariables | ( | PricingType * | pricetype, |
| SCIP_RESULT * | result, | ||
| double * | lowerbound | ||
| ) |
performs the pricing routine, gets the type of pricing that should be done: farkas or redcost pricing
- Parameters
-
pricetype type of the pricing result result pointer lowerbound lower bound of pricingproblems
Definition at line 4595 of file pricer_gcg.cpp.
References SCIP_PricerData::avgrootnodedegeneracy, SCIP_PricerData::calls, gcg::Pricingcontroller::exitPricing(), GCG_PRICETYPE_FARKAS, GCG_PRICETYPE_REDCOST, GCGisRootNode(), GCGpricerPrintInfo, PricingType::getCalls(), PricingType::getType(), PricingType::incCalls(), gcg::Pricingcontroller::initPricing(), SCIP_PricerData::ndegeneracycalcs, NULL, pricerdata, pricingLoop(), gcg::Pricingcontroller::resetEagerage(), SCIP_PricerData::rootnodedegeneracy, scip::ObjPricer::scip_, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SUCCESS, SCIPdebugMessage, SCIPgetLPObjval(), SCIPgetNNodes(), SCIPgetNVars(), SCIPgetSolvingTime(), SCIPinfinity(), SCIPisLPSolBasic(), and TRUE.
◆ createNewMasterVar()
| SCIP_RETCODE ObjPricerGcg::createNewMasterVar | ( | PricingType * | pricetype, |
| SCIP_SOL * | sol, | ||
| SCIP_VAR ** | solvars, | ||
| double * | solvals, | ||
| int | nsolvars, | ||
| unsigned int | solisray, | ||
| int | prob, | ||
| unsigned int | force, | ||
| unsigned int * | added, | ||
| SCIP_VAR ** | addedvar | ||
| ) |
creates a new master variable corresponding to the given solution and problem
- Parameters
-
pricetype type of the pricing sol solution to compute reduced cost for solvars array of variables with non-zero value in the solution of the pricing problem solvals array of values in the solution of the pricing problem for variables in array solvars nsolvars number of variables in array solvars solisray is the solution a ray? prob number of the pricing problem the solution belongs to force should the given variable be added also if it has non-negative reduced cost? added pointer to store whether the variable was successfully added addedvar pointer to store the created variable
Definition at line 3004 of file pricer_gcg.cpp.
References addVariableToMastersepacuts(), SCIP_PricerData::dualsolconv, SCIP_PricerData::eventhdlr, FALSE, GCG_PRICETYPE_REDCOST, GCGcreateMasterVar(), GCGgetConvCons(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGsetRootRedcostCall(), GCGupdateVarStatistics(), GCGvarIsInferredPricing(), GCGvarIsPricing(), PricingType::getType(), SCIP_PricerData::npointsprob, SCIP_PricerData::nraysprob, NULL, pricerdata, SCIP_PricerData::pricingprobs, scip::ObjPricer::scip_, SCIP_CALL, SCIP_EVENTTYPE_VARDELETED, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPaddPricedVar(), SCIPaddVar(), SCIPcatchVarEvent(), SCIPdebugMessage, SCIPgetCurrentNode(), SCIPgetRootNode(), SCIPinfinity(), SCIPisDualfeasNegative(), SCIPisFeasIntegral(), SCIPisInfinity(), SCIPisZero(), SCIPround(), SCIPsnprintf(), SCIPvarGetObj(), SCIPvarIsIntegral(), SCIPvarMarkDeletable(), SCIPwarningMessage(), TRUE, and SCIP_PricerData::vartype.
Referenced by GCGmasterTransOrigSolToMasterVars().
◆ createNewMasterVarFromGcgCol()
| SCIP_RETCODE ObjPricerGcg::createNewMasterVarFromGcgCol | ( | PricingType * | pricetype, |
| GCG_COL * | gcgcol, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | added, | ||
| SCIP_VAR ** | addedvar, | ||
| SCIP_Real | score | ||
| ) |
creates a new master variable corresponding to the given gcg column
- Parameters
-
pricetype type of pricing gcgcol GCG column data structure force should the given variable be added also if it has non-negative reduced cost? added pointer to store whether the variable was successfully added addedvar pointer to store the created variable score score of column (or -1.0 if not specified)
Definition at line 3163 of file pricer_gcg.cpp.
References addVariableToMastersepacutsFromGCGCol(), SCIP_PricerData::dualsolconv, SCIP_PricerData::eventhdlr, FALSE, GCG_PRICETYPE_REDCOST, GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetRedcost(), GCGcolGetVals(), GCGcolGetVars(), GCGcolIsRay(), GCGcreateMasterVar(), GCGgetConvCons(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGsetRootRedcostCall(), GCGupdateVarStatistics(), GCGvarIsPricing(), PricingType::getType(), SCIP_PricerData::npointsprob, SCIP_PricerData::nraysprob, NULL, pricerdata, SCIP_PricerData::pricingprobs, scip::ObjPricer::scip_, SCIP_Bool, SCIP_CALL, SCIP_EVENTTYPE_VARDELETED, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPaddPricedVar(), SCIPaddVar(), SCIPcatchVarEvent(), SCIPdebugMessage, SCIPgetCurrentNode(), SCIPgetRootNode(), SCIPinfinity(), SCIPisDualfeasNegative(), SCIPisInfinity(), SCIPisNegative(), SCIPisZero(), SCIPsnprintf(), SCIPvarGetObj(), SCIPvarMarkDeletable(), SCIPwarningMessage(), TRUE, and SCIP_PricerData::vartype.
Referenced by GCGcreateNewMasterVarFromGcgCol().
◆ computeDualDiff()
| SCIP_RETCODE ObjPricerGcg::computeDualDiff | ( | SCIP_Real ** | dualvals1, |
| SCIP_Real * | dualconv1, | ||
| SCIP_Real ** | dualvals2, | ||
| SCIP_Real * | dualconv2, | ||
| SCIP_Real * | dualdiff | ||
| ) |
- Parameters
-
dualvals1 array of dual values for each pricing problem dualconv1 array of dual solutions for the convexity constraints dualvals2 array of dual values for each pricing problem dualconv2 array of dual solutions for the convexity constraints dualdiff pointer to store difference of duals solutions
Definition at line 3605 of file pricer_gcg.cpp.
References ABS, SCIP_PricerData::npricingprobs, NULL, pricerdata, SCIP_PricerData::pricingprobs, SCIP_OKAY, SCIPgetNVars(), and SQR.
Referenced by GCGpricerPrintStatistics(), and pricingLoop().
◆ pricingLoop()
| SCIP_RETCODE ObjPricerGcg::pricingLoop | ( | PricingType * | pricetype, |
| SCIP_RESULT * | result, | ||
| int * | pnfoundvars, | ||
| SCIP_Real * | lowerbound, | ||
| SCIP_Bool * | bestredcostvalid | ||
| ) |
the pricing loop: solve the pricing problems
- Parameters
-
pricetype type of pricing result result pointer pnfoundvars pointer to store number of found variables lowerbound pointer to store lowerbound obtained due to lagrange bound bestredcostvalid pointer to store if bestredcost are valid (pp solvedoptimal)
Definition at line 3639 of file pricer_gcg.cpp.
References gcg::Stabilization::activateMispricingSchedule(), gcg::Stabilization::branchmasterconsGetStabCenter(), gcg::Pricingcontroller::canPricingloopBeAborted(), gcg::Pricingcontroller::checkNextChunk(), gcg::Pricingcontroller::collectResults(), colpool, computeDualDiff(), PricingType::consGetDual(), gcg::Stabilization::disablingMispricingSchedule(), SCIP_Stat::duallptime, SCIP_PricerData::dualsolconv, SCIP_PricerData::dualweight, gcg::Pricingcontroller::evaluatePricingjob(), PricingType::extendedmasterconsGetDual(), FALSE, GCG_PRICETYPE_REDCOST, GCG_PRICINGSTATUS_NOTAPPLICABLE, GCG_PRICINGSTATUS_UNKNOWN, GCG_SET_LOCK, GCG_UNSET_LOCK, GCGcolpoolPrice(), GCGcolpoolUpdateNode(), GCGcolpoolUpdateRedcost(), GCGconsGetRhs(), GCGconsMasterbranchGetActiveCons(), GCGconsMasterbranchGetBranchrule(), GCGextendedmasterconsGetMastersepacut(), GCGextendedmasterconsIsActive(), GCGextendedmasterconsUndoPricingModifications(), GCGgetActiveMastersepacuts(), GCGgetConvCons(), GCGgetNActiveMastersepacuts(), GCGgetNRelPricingprobs(), GCGisBranchruleGeneric(), GCGisPricingprobRelevant(), GCGmastersepacutGetVarHistory(), GCGpricestoreApplyCols(), GCGpricestoreGetNColsTotal(), GCGpricingjobGetPricingprob(), GCGpricingjobGetSolver(), GCGpricingjobIsHeuristic(), GCGpricingprobGetProbnr(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), GCGsepaBasisAddPricingCut(), GCGsolverGetName(), GCGvarhistoryJumpToLatest(), getBestCols(), PricingType::getClockTime(), getDualconvsum(), gcg::Pricingcontroller::getNextPricingjob(), getStabilizedDualObjectiveValue(), PricingType::getType(), gcg::Stabilization::hasStabilityCenter(), gcg::Stabilization::isInMispricingSchedule(), gcg::Stabilization::isStabilized(), MAX, MIN, SCIP_PricerData::nappliedpricingmods, SCIP_PricerData::nefficaciouscols, SCIP_PricerData::npricingloopiters, SCIP_PricerData::npricingprobs, SCIP_PricerData::nroundsredcost, NULL, origprob, pricerdata, pricestore, SCIP_PricerData::pricingprobs, SCIP_Stat::primallptime, r, SCIP_PricerData::realdualvalues, SCIP_PricerData::relaxobjective, scip::ObjPricer::scip_, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_DIDNOTRUN, SCIP_LONGINT_FORMAT, SCIP_NODETYPE_PROBINGNODE, SCIP_OKAY, SCIP_PARAMSETTING_DEFAULT, SCIP_Real, SCIP_STAGE_SOLVING, SCIP_SUCCESS, SCIPallocBlockMemoryArray, SCIPallocBufferArray, SCIPcolGetLb(), SCIPcolGetUb(), SCIPcolGetVar(), SCIPcolIsInLP(), SCIPcutGetRow(), SCIPdebugMessage, SCIPfreeBlockMemoryArray, SCIPfreeBufferArray, SCIPgetBoolParam(), SCIPgetClockTime(), SCIPgetColRedcost(), SCIPgetCurrentNode(), SCIPgetLPCols(), SCIPgetLPI(), SCIPgetLPObjval(), SCIPgetLPRows(), SCIPgetNLPCols(), SCIPgetNLPRows(), SCIPgetNNodes(), SCIPgetNPoolCuts(), SCIPgetNVars(), SCIPgetPoolCuts(), SCIPgetRootNode(), SCIPgetSolOrigObj(), SCIPgetStage(), SCIPgetVars(), SCIPinfinity(), SCIPisDualfeasEQ(), SCIPisDualfeasNegative(), SCIPisEQ(), SCIPisInfinity(), SCIPisStopped(), SCIPisSumEQ(), SCIPisZero(), SCIPnodeGetDepth(), SCIPnodeGetType(), SCIPretransformObj(), SCIProwGetDualsol(), SCIProwGetLhs(), SCIProwGetName(), SCIProwGetRank(), SCIProwGetRhs(), SCIProwIsInLP(), SCIProwIsLocal(), SCIPsepaBasisAddPPObjConss(), SCIPsetIntParam(), SCIPsetPresolving(), SCIPstatisticMessage, SCIPtransformObj(), SCIPvarGetIndex(), SCIPvarGetName(), gcg::Pricingcontroller::setPricingjobTimelimit(), setPricingObjs(), gcg::Pricingcontroller::setupPriorityQueue(), SCIP_PricerData::stabilization, SCIP_PricerData::stabilizationtree, Scip::stat, TRUE, gcg::Stabilization::updateAlpha(), gcg::Stabilization::updateAlphaMisprice(), gcg::Stabilization::updateHybrid(), gcg::Stabilization::updateNode(), gcg::Pricingcontroller::updatePricingprob(), gcg::Stabilization::updateStabilityCenter(), gcg::Stabilization::updateSubgradientProduct(), and SCIP_PricerData::usecolpool.
Referenced by priceNewVariables().
◆ getFarkasPricing()
|
inline |
Definition at line 169 of file objpricer_gcg.h.
Referenced by GCGpricerPrintStatistics().
◆ getFarkasPricingNonConst()
|
inline |
Definition at line 174 of file objpricer_gcg.h.
Referenced by GCGcomputeRedCostGcgCol(), and GCGcreateNewMasterVarFromGcgCol().
◆ getReducedCostPricing()
|
inline |
Definition at line 179 of file objpricer_gcg.h.
Referenced by GCGpricerPrintStatistics().
◆ getReducedCostPricingNonConst()
|
inline |
Definition at line 184 of file objpricer_gcg.h.
Referenced by GCGcomputeRedCostGcgCol(), GCGcreateNewMasterVarFromGcgCol(), and GCGsetPricingObjs().
◆ getOrigprob()
|
inline |
Definition at line 189 of file objpricer_gcg.h.
References origprob.
Referenced by GCGmasterPrintSimplexIters().
◆ getGcg()
|
inline |
Definition at line 194 of file objpricer_gcg.h.
References gcg.
Referenced by GCGpricerGetGcg(), and SCIP_DECL_EVENTEXEC().
◆ getMaxColsRound()
| int ObjPricerGcg::getMaxColsRound | ( | ) | const |
get the number of columns to be added to the master LP in the current pricing round
Definition at line 543 of file pricer_gcg.cpp.
References PricingType::getMaxcolsround(), and NULL.
Referenced by GCGpricerGetMaxColsRound().
◆ getMaxColsProb()
| int ObjPricerGcg::getMaxColsProb | ( | ) | const |
get the number of columns per pricing problem to be added to the master LP in the current pricing round
Definition at line 551 of file pricer_gcg.cpp.
References PricingType::getMaxcolsprob(), and NULL.
Referenced by GCGpricerGetMaxColsProb().
◆ addArtificialVars()
| SCIP_RETCODE ObjPricerGcg::addArtificialVars | ( | ) |
add artificial vars
Definition at line 5240 of file pricer_gcg.cpp.
References SCIP_PricerData::artificialused, SCIP_PricerData::artificialvars, SCIP_PricerData::bigmartificial, GCGconsGetLhs(), GCGconsGetRhs(), GCGcreateArtificialVar(), GCGgetConvCons(), GCGgetMasterConss(), GCGgetNMasterConss(), GCGgetNPricingprobs(), GCGisPricingprobRelevant(), SCIP_PricerData::maxobj, SCIP_PricerData::nartificialvars, NULL, SCIP_PricerData::pricedvars, pricerdata, scip::ObjPricer::scip_, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPaddVar(), SCIPconsGetName(), SCIPisInfinity(), SCIPsnprintf(), TRUE, and SCIP_PricerData::usemaxobj.
◆ createPricingTypes()
| SCIP_RETCODE ObjPricerGcg::createPricingTypes | ( | ) |
create the pointers for the pricing types
Definition at line 5427 of file pricer_gcg.cpp.
References ReducedCostPricing::addParameters(), FarkasPricing::addParameters(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by GCGincludePricerGcg().
◆ createPricingcontroller()
| SCIP_RETCODE ObjPricerGcg::createPricingcontroller | ( | ) |
create the pricing controller
Definition at line 5441 of file pricer_gcg.cpp.
References gcg::Pricingcontroller::addParameters(), SCIP_CALL, and SCIP_OKAY.
Referenced by GCGincludePricerGcg().
◆ createStabilization()
| void ObjPricerGcg::createStabilization | ( | ) |
create the pointers for the stabilization
Definition at line 5450 of file pricer_gcg.cpp.
References GCGgetNPricingprobs(), GCGgetNRelPricingprobs(), SCIP_PricerData::hybridascent, SCIP_PricerData::hybridascentnoagg, pricerdata, and SCIP_Bool.
◆ createColpool()
| SCIP_RETCODE ObjPricerGcg::createColpool | ( | ) |
create the pointers for the colpool
Definition at line 5461 of file pricer_gcg.cpp.
References colpool, SCIP_PricerData::colpoolagelimit, GCGcolpoolCreate(), NULL, pricerdata, SCIP_CALL, and SCIP_OKAY.
◆ createPricestore()
| SCIP_RETCODE ObjPricerGcg::createPricestore | ( | ) |
create the pointers for the pricestore
Definition at line 5472 of file pricer_gcg.cpp.
References SCIP_PricerData::efficiacychoice, GCGgetNRelPricingprobs(), GCGpricestoreCreate(), ReducedCostPricing::getMaxcolsprob(), ReducedCostPricing::getMaxcolsround(), MAX, SCIP_PricerData::mincolorth, SCIP_PricerData::objparalfac, SCIP_PricerData::orthofac, pricerdata, pricestore, SCIP_PricerData::redcostfac, SCIP_CALL, and SCIP_OKAY.
◆ addColToPricestore()
| SCIP_RETCODE ObjPricerGcg::addColToPricestore | ( | GCG_COL * | col, |
| SCIP_Bool * | added | ||
| ) |
add a new column to the pricer's column buffer that will be added to the pricing storage
- Parameters
-
col priced col added pointer to var that indicates whether the col was added
Definition at line 2357 of file pricer_gcg.cpp.
References computeRedCostGcgCol(), FALSE, GCG_SET_LOCK, GCG_UNSET_LOCK, GCGcolGetProbNr(), GCGcolGetRedcost(), GCGcolUpdateRedcost(), GCGpricestoreAddCol(), SCIP_PricerData::nefficaciouscols, NULL, pricerdata, pricestore, scip::ObjPricer::scip_, SCIP_Bool, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, and SCIPisDualfeasNegative().
Referenced by GCGpricerAddCol(), and GCGpricerAddColResult().
◆ getBestCols()
| void ObjPricerGcg::getBestCols | ( | GCG_COL ** | pricingprobcols | ) |
for each pricing problem, get the best found column from the pricing storage
- Parameters
-
pricingprobcols array to be filled with best column per pricing problem
Definition at line 2385 of file pricer_gcg.cpp.
References GCGcolGetProbNr(), GCGcolGetRedcost(), GCGpricestoreGetCols(), GCGpricestoreGetNCols(), SCIP_PricerData::npricingprobs, NULL, pricerdata, pricestore, scip::ObjPricer::scip_, SCIPdebugMessage, and SCIPisDualfeasLT().
Referenced by pricingLoop().
◆ getDualconvsum()
get the sum over the dual values of convexity constraints
- Parameters
-
bestcols best columns found per pricing problem
Definition at line 2421 of file pricer_gcg.cpp.
References PricingType::consGetDual(), GCGcolIsRay(), GCGgetConvCons(), GCGgetNIdenticalBlocks(), GCGisPricingprobRelevant(), SCIP_PricerData::npricingprobs, NULL, pricerdata, and SCIP_Real.
Referenced by pricingLoop().
◆ getStabilizedDualObjectiveValue()
| SCIP_RETCODE ObjPricerGcg::getStabilizedDualObjectiveValue | ( | PricingType * | pricetype, |
| SCIP_Real * | stabdualval, | ||
| SCIP_Bool | stabilize | ||
| ) |
- Parameters
-
pricetype type of pricing stabdualval pointer to store stabilized dual objective value stabilize stabilize?
Definition at line 2439 of file pricer_gcg.cpp.
References GCG_MastervarKey::block, gcg::Stabilization::branchmasterconsGetDual(), gcg::Stabilization::consGetDual(), PricingType::consGetDual(), PricingType::extendedmasterconsGetDual(), GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS, GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW, GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetVals(), GCGconsGetVars(), GCGextendedmasterconsGetCons(), GCGextendedmasterconsGetConstant(), GCGextendedmasterconsGetLhs(), GCGextendedmasterconsGetName(), GCGextendedmasterconsGetRhs(), GCGextendedmasterconsGetRow(), GCGextendedmasterconsGetType(), GCGgetActiveMastersepacuts(), GCGgetMasterConss(), GCGgetNActiveMastersepacuts(), GCGgetNLinkingvars(), GCGgetNMasterConss(), GCGgetNTransvars(), GCGgetNVarLinkingconss(), GCGgetOrigMasterConss(), GCGgetVarLinkingconss(), GCGgetVarLinkingconssBlock(), GCGlinkingVarGetPricingVars(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvals(), GCGmasterVarGetOrigvars(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGoriginalVarIsLinking(), GCGoriginalVarIsTransVar(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), GCGsepaGetNOriginalSepaCuts(), GCGsepaGetOriginalSepaMastercuts(), GCGsepaGetOriginalSepaOrigcuts(), GCGvarGetBlock(), GCGvarIsMaster(), GCGvarIsOriginal(), GCGvarIsPricing(), gcg::Stabilization::linkingconsGetDual(), GCG_MastervarKey::mastervar, NULL, origprob, gcg::Stabilization::rowGetDual(), PricingType::rowGetDual(), scip::ObjPricer::scip_, SCIP_CALL, SCIP_CALL_ABORT, SCIP_ERROR, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcolGetVar(), SCIPconsGetName(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetLhsLinear(), SCIPgetNOrigVars(), SCIPgetOrigVars(), SCIPgetRhsLinear(), SCIPgetVarsLinear(), SCIPisInfinity(), SCIPisZero(), SCIProwGetCols(), SCIProwGetConstant(), SCIProwGetLhs(), SCIProwGetName(), SCIProwGetNNonz(), SCIProwGetRhs(), SCIProwGetVals(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetProbindex(), and SCIPvarGetUbLocal().
Referenced by pricingLoop().
◆ computeRedCostGcgCol()
| SCIP_Real ObjPricerGcg::computeRedCostGcgCol | ( | PricingType * | pricetype, |
| GCG_Col * | gcgcol, | ||
| SCIP_Real * | objvalptr | ||
| ) | const |
- Parameters
-
pricetype type of pricing gcgcol gcg column to compute reduced cost for objvalptr pointer to store the computed objective value
Definition at line 2261 of file pricer_gcg.cpp.
References SCIP_PricerData::dualsolconv, PricingType::extendedmasterconsGetDual(), GCGcolGetInferredPricingVals(), GCGcolGetInferredPricingVars(), GCGcolGetNInferredPricingVars(), GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetVals(), GCGcolGetVars(), GCGcolIsRay(), GCGinferredPricingVarGetExtendedmasterconsdata(), GCGinferredPricingVarIsCoefVar(), GCGpricingprobGetGenericBranchData(), GCGvarIsPricing(), gcg::Pricingcontroller::getPricingprob(), SCIP_PricerData::nrealdualvalues, NULL, pricerdata, SCIP_PricerData::realdualvalues, SCIP_Bool, SCIP_CALL_ABORT, SCIP_Real, and SCIPvarGetIndex().
Referenced by addColToPricestore(), and GCGcomputeRedCostGcgCol().
◆ computeColMastercoefs()
| SCIP_RETCODE ObjPricerGcg::computeColMastercoefs | ( | GCG_COL * | gcgcol | ) |
compute master coefficients of column
- Parameters
-
gcgcol GCG column data structure
Definition at line 1630 of file pricer_gcg.cpp.
References ABS, BMSclearMemoryArray, GCGcolGetInitializedCoefs(), GCGcolGetNMastercoefs(), GCGcolGetNVars(), GCGcolGetPricingProb(), GCGcolGetVals(), GCGcolGetVars(), GCGcolSetInitializedCoefs(), GCGcolSetLinkvars(), GCGcolSetMastercoefs(), GCGgetNMasterConss(), GCGoriginalVarGetCoefs(), GCGoriginalVarGetMasterconss(), GCGoriginalVarGetNCoefs(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGvarIsOriginal(), GCGvarIsPricing(), SCIP_PricerData::mapcons2idx, NULL, origprob, pricerdata, scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPgetTransformedCons(), SCIPhashmapGetImage(), SCIPisInfinity(), and SCIPisZero().
Referenced by computeColMastersepacutCoeffs(), and GCGcomputeColMastercoefs().
◆ computeColOriginalSepaCuts()
| SCIP_RETCODE ObjPricerGcg::computeColOriginalSepaCuts | ( | GCG_COL * | gcgcol | ) |
compute original separator master cut coefficients of column
compute original separator cut coefficients of column in the master problem
- Parameters
-
gcgcol GCG column data structure
Definition at line 1936 of file pricer_gcg.cpp.
References GCGcolGetNOriginalSepaMastercuts(), GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetVals(), GCGcolGetVars(), GCGcolUpdateOriginalSepaMastercuts(), GCGoriginalVarGetPricingVar(), GCGsepaGetNOriginalSepaCuts(), GCGsepaGetOriginalSepaMastercuts(), GCGsepaGetOriginalSepaOrigcuts(), GCGvarGetBlock(), GCGvarIsOriginal(), NULL, origprob, scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcolGetVar(), SCIPfreeBufferArray, SCIProwGetCols(), SCIProwGetNNonz(), SCIProwGetVals(), and SCIProwIsInLP().
Referenced by GCGcomputeColMastercoefs().
◆ computeColMastersepacutCoeffs()
| SCIP_RETCODE ObjPricerGcg::computeColMastersepacutCoeffs | ( | GCG_COL * | gcgcol | ) |
compute mastersepacut coefficients of column
compute separator master cut coefficients of column and store them in the column
- Parameters
-
gcgcol GCG column data structure
Definition at line 2038 of file pricer_gcg.cpp.
References computeColMastercoefs(), GCGcolGetInitializedCoefs(), GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetVals(), GCGcolGetVars(), GCGcolUpdateActiveMastersepacuts(), GCGextendedmasterconsIsActive(), GCGgetActiveMastersepacuts(), GCGgetNActiveMastersepacuts(), GCGmastersepacutGetExtendedmasterconsCoeff(), NULL, origprob, scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, and SCIPfreeBufferArrayNull.
Referenced by addVariableToMastersepacutsFromGCGCol(), and GCGcomputeColMastercoefs().
◆ addVariableToMastersepacutsFromGCGCol()
| SCIP_RETCODE ObjPricerGcg::addVariableToMastersepacutsFromGCGCol | ( | SCIP_VAR * | newvar, |
| GCG_COL * | gcgcol | ||
| ) |
add variable with computed coefficients to the original separator cuts
add variable with computed coefficients to the master separator cuts
- Parameters
-
newvar The new variable to add gcgcol GCG column data structure
Definition at line 1846 of file pricer_gcg.cpp.
References computeColMastersepacutCoeffs(), GCGcolGetMastersepaCutCoeffs(), GCGextendedmasterconsGetRow(), GCGgetActiveMastersepacuts(), GCGgetNActiveMastersepacuts(), NULL, scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddVarToRow(), SCIPisZero(), and SCIProwIsInLP().
Referenced by createNewMasterVarFromGcgCol().
◆ addVariableToMastersepacuts()
| SCIP_RETCODE ObjPricerGcg::addVariableToMastersepacuts | ( | SCIP_VAR * | newvar, |
| int | prob, | ||
| SCIP_VAR ** | solvars, | ||
| SCIP_Real * | solvals, | ||
| int | nsolvars | ||
| ) |
add variable with computed coefficients to the separator master cuts
compute coefficients for new master var and add them to the separator master cuts
- Parameters
-
newvar The new variable to add prob number of the pricing problem the solution belongs to solvars array of variables with non-zero value in the solution of the pricing problem solvals array of values in the solution of the pricing problem for variables in array solvars nsolvars number of variables in array solvars
Definition at line 1888 of file pricer_gcg.cpp.
References GCGextendedmasterconsGetMastersepacut(), GCGextendedmasterconsGetRow(), GCGgetActiveMastersepacuts(), GCGgetNActiveMastersepacuts(), GCGmastersepacutGetExtendedmasterconsCoeff(), GCGmastersepacutGetVarHistory(), GCGvarhistoryJumpToLatest(), NULL, scip::ObjPricer::scip_, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddVarToRow(), SCIPisZero(), and SCIProwIsInLP().
Referenced by createNewMasterVar().
◆ getSolvers()
| GCG_SOLVER ** ObjPricerGcg::getSolvers | ( | ) | const |
Definition at line 6776 of file pricer_gcg.cpp.
References pricerdata, and SCIP_PricerData::solvers.
Referenced by buildProblem().
◆ getNumSolvers()
| int ObjPricerGcg::getNumSolvers | ( | ) | const |
Definition at line 6781 of file pricer_gcg.cpp.
References SCIP_PricerData::nsolvers, and pricerdata.
Referenced by buildProblem().
Field Documentation
◆ gcg
| GCG* ObjPricerGcg::gcg |
◆ origprob
| SCIP* ObjPricerGcg::origprob |
the original program
Definition at line 61 of file objpricer_gcg.h.
Referenced by computeColMastercoefs(), computeColMastersepacutCoeffs(), computeColOriginalSepaCuts(), getOrigprob(), getStabilizedDualObjectiveValue(), ObjPricerGcg(), pricingLoop(), and setPricingObjs().
◆ pricerdata
| SCIP_PRICERDATA* ObjPricerGcg::pricerdata |
pricerdata data structure
Definition at line 62 of file objpricer_gcg.h.
Referenced by addArtificialVars(), addColToPricestore(), computeColMastercoefs(), computeDualDiff(), computeRedCostGcgCol(), createColpool(), createNewMasterVar(), createNewMasterVarFromGcgCol(), createPricestore(), createStabilization(), GCGsetPricingObjDualWeight(), GCGsetPricingObjRelaxWeight(), GCGsetPricingObjs(), getBestCols(), getDualconvsum(), getNumSolvers(), getPricerdata(), getSolvers(), ObjPricerGcg(), priceNewVariables(), pricingLoop(), and setPricingObjs().
◆ colpool
| GCG_COLPOOL* ObjPricerGcg::colpool |
column pool
Definition at line 63 of file objpricer_gcg.h.
Referenced by createColpool(), GCGgetColpool(), and pricingLoop().
◆ pricestore
| GCG_PRICESTORE* ObjPricerGcg::pricestore |
price storage
Definition at line 64 of file objpricer_gcg.h.
Referenced by addColToPricestore(), createPricestore(), getBestCols(), and pricingLoop().
Public Member Functions inherited from