Scippy

GCG

Branch-and-Price & Column Generation for Everyone

Detailed Description

Pricer C++ Class

Definition at line 55 of file objpricer_gcg.h.

#include <objpricer_gcg.h>

Public Member Functions

 ObjPricerGcg (GCG *gcgstruct, const char *name, const char *desc, int priority, unsigned int delay, SCIP_PRICERDATA *p_pricerdata)
 
virtual ~ObjPricerGcg ()
 
virtual SCIP_DECL_PRICERFREE (scip_free)
 
virtual SCIP_DECL_PRICERINIT (scip_init)
 
virtual SCIP_DECL_PRICEREXIT (scip_exit)
 
virtual SCIP_DECL_PRICERINITSOL (scip_initsol)
 
virtual SCIP_DECL_PRICEREXITSOL (scip_exitsol)
 
virtual SCIP_DECL_PRICERREDCOST (scip_redcost)
 
virtual SCIP_DECL_PRICERFARKAS (scip_farkas)
 
SCIP_PRICERDATA * getPricerdata ()
 
SCIP_Real getConvconsDualsol (PricingType *pricetype, int probnr)
 
SCIP_RETCODE setPricingObjs (PricingType *pricetype, SCIP_Bool stabilize)
 
void updateRedcostColumnPool (PricingType *pricetype)
 
SCIP_RETCODE priceColumnPoolOld (PricingType *pricetype, int *pnfoundvars)
 
SCIP_RETCODE priceNewVariables (PricingType *pricetype, SCIP_RESULT *result, double *lowerbound)
 
SCIP_RETCODE 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)
 
SCIP_RETCODE createNewMasterVarFromGcgCol (PricingType *pricetype, GCG_COL *gcgcol, SCIP_Bool force, SCIP_Bool *added, SCIP_VAR **addedvar, SCIP_Real score)
 
SCIP_RETCODE computeDualDiff (SCIP_Real **dualvals1, SCIP_Real *dualconv1, SCIP_Real **dualvals2, SCIP_Real *dualconv2, SCIP_Real *dualdiff)
 
SCIP_RETCODE pricingLoop (PricingType *pricetype, SCIP_RESULT *result, int *nfoundvars, SCIP_Real *lowerbound, SCIP_Bool *bestredcostvalid)
 
const FarkasPricing * getFarkasPricing () const
 
FarkasPricing * getFarkasPricingNonConst ()
 
const ReducedCostPricing * getReducedCostPricing () const
 
ReducedCostPricing * getReducedCostPricingNonConst ()
 
SCIP * getOrigprob () const
 
GCG * getGcg () const
 
int getMaxColsRound () const
 
int getMaxColsProb () const
 
SCIP_RETCODE addArtificialVars ()
 
SCIP_RETCODE createPricingTypes ()
 
SCIP_RETCODE createPricingcontroller ()
 
void createStabilization ()
 
SCIP_RETCODE createColpool ()
 
SCIP_RETCODE createPricestore ()
 
SCIP_RETCODE addColToPricestore (GCG_COL *col, SCIP_Bool *added)
 
void getBestCols (GCG_COL **pricingprobcols)
 
SCIP_Real getDualconvsum (GCG_COL **bestcols)
 
SCIP_RETCODE getStabilizedDualObjectiveValue (PricingType *pricetype, SCIP_Real *stabdualval, SCIP_Bool stabilize)
 
SCIP_Real computeRedCostGcgCol (PricingType *pricetype, GCG_Col *gcgcol, SCIP_Real *objvalptr) const
 
SCIP_RETCODE computeColMastercoefs (GCG_COL *gcgcol)
 
SCIP_RETCODE computeColOriginalSepaCuts (GCG_COL *gcgcol)
 
SCIP_RETCODE computeColMastersepacutCoeffs (GCG_COL *gcgcol)
 
SCIP_RETCODE addVariableToMastersepacutsFromGCGCol (SCIP_VAR *newvar, GCG_COL *gcgcol)
 
SCIP_RETCODE addVariableToMastersepacuts (SCIP_VAR *newvar, int prob, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars)
 
GCG_SOLVER ** getSolvers () const
 
int getNumSolvers () const
 
- Public Member Functions inherited from scip::ObjPricer
 ObjPricer (SCIP *scip, const char *name, const char *desc, int priority, SCIP_Bool delay)
 
 ObjPricer (const ObjPricer &o)
 
 ObjPricer (ObjPricer &&o)
 
virtual ~ObjPricer ()
 
ObjPricer & operator= (const ObjPricer &o)=delete
 
ObjPricer & operator= (ObjPricer &&o)=delete
 
virtual SCIP_DECL_PRICERFREE (scip_free)
 
virtual SCIP_DECL_PRICERINIT (scip_init)
 
virtual SCIP_DECL_PRICEREXIT (scip_exit)
 
virtual SCIP_DECL_PRICERINITSOL (scip_initsol)
 
virtual SCIP_DECL_PRICEREXITSOL (scip_exitsol)
 
virtual SCIP_DECL_PRICERREDCOST (scip_redcost)=0
 
virtual SCIP_DECL_PRICERFARKAS (scip_farkas)
 
- Public Member Functions inherited from scip::ObjProbCloneable
virtual ~ObjProbCloneable ()
 
ObjProbCloneable & operator= (const ObjProbCloneable &o)=delete
 
ObjProbCloneable & operator= (ObjProbCloneable &&o)=delete
 
virtual SCIP_DECL_OBJPROBCLONE (ObjProbCloneable *clone)
 
virtual SCIP_DECL_OBJPROBISCLONEABLE (iscloneable)
 

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
gcgstructGCG data structure
namename of variable pricer
descdescription of variable pricer
prioritypriority of the variable pricer
delayshould the pricer be delayed until no other pricers or already existing
p_pricerdatapricerdata data structure

Definition at line 4683 of file pricer_gcg.cpp.

References GCGgetOrigprob(), NULL, origprob, and pricerdata.

◆ ~ObjPricerGcg()

virtual ObjPricerGcg::~ObjPricerGcg ( )
inlinevirtual

destructor

Definition at line 76 of file objpricer_gcg.h.

Member Function Documentation

◆ SCIP_DECL_PRICERFREE()

virtual ObjPricerGcg::SCIP_DECL_PRICERFREE ( scip_free  )
virtual

destructor of variable pricer to free user data (called when SCIP is exiting)

Reimplemented from scip::ObjPricer.

◆ SCIP_DECL_PRICERINIT()

virtual ObjPricerGcg::SCIP_DECL_PRICERINIT ( scip_init  )
virtual

initialization method of variable pricer (called after problem was transformed)

Reimplemented from scip::ObjPricer.

◆ SCIP_DECL_PRICEREXIT()

virtual ObjPricerGcg::SCIP_DECL_PRICEREXIT ( scip_exit  )
virtual

deinitialization method of variable pricer (called before transformed problem is freed)

Reimplemented from scip::ObjPricer.

◆ SCIP_DECL_PRICERINITSOL()

virtual ObjPricerGcg::SCIP_DECL_PRICERINITSOL ( scip_initsol  )
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 ObjPricerGcg::SCIP_DECL_PRICEREXITSOL ( scip_exitsol  )
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 ObjPricerGcg::SCIP_DECL_PRICERREDCOST ( scip_redcost  )
virtual

reduced cost pricing method of variable pricer for feasible LPs

Implements scip::ObjPricer.

◆ SCIP_DECL_PRICERFARKAS()

virtual ObjPricerGcg::SCIP_DECL_PRICERFARKAS ( scip_farkas  )
virtual

farkas pricing method of variable pricer for infeasible LPs

Reimplemented from scip::ObjPricer.

◆ getPricerdata()

◆ 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
pricetypeFarkas or Reduced cost pricing
probnrindex 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
pricetypeFarkas or Reduced cost pricing
stabilizedo 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
pricetypetype of pricing: reduced cost or Farkas

◆ priceColumnPoolOld()

SCIP_RETCODE ObjPricerGcg::priceColumnPoolOld ( PricingType *  pricetype,
int *  pnfoundvars 
)

method to price new columns from Column Pool

Parameters
pricetypetype of pricing: reduced cost or Farkas
pnfoundvarspointer to store number of priced variables

◆ priceNewVariables()

◆ 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
pricetypetype of the pricing
solsolution to compute reduced cost for
solvarsarray of variables with non-zero value in the solution of the pricing problem
solvalsarray of values in the solution of the pricing problem for variables in array solvars
nsolvarsnumber of variables in array solvars
solisrayis the solution a ray?
probnumber of the pricing problem the solution belongs to
forceshould the given variable be added also if it has non-negative reduced cost?
addedpointer to store whether the variable was successfully added
addedvarpointer 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 
)

◆ computeDualDiff()

SCIP_RETCODE ObjPricerGcg::computeDualDiff ( SCIP_Real **  dualvals1,
SCIP_Real *  dualconv1,
SCIP_Real **  dualvals2,
SCIP_Real *  dualconv2,
SCIP_Real *  dualdiff 
)
Parameters
dualvals1array of dual values for each pricing problem
dualconv1array of dual solutions for the convexity constraints
dualvals2array of dual values for each pricing problem
dualconv2array of dual solutions for the convexity constraints
dualdiffpointer 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
pricetypetype of pricing
resultresult pointer
pnfoundvarspointer to store number of found variables
lowerboundpointer to store lowerbound obtained due to lagrange bound
bestredcostvalidpointer 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()

const FarkasPricing * ObjPricerGcg::getFarkasPricing ( ) const
inline

Definition at line 169 of file objpricer_gcg.h.

Referenced by GCGpricerPrintStatistics().

◆ getFarkasPricingNonConst()

FarkasPricing * ObjPricerGcg::getFarkasPricingNonConst ( )
inline

Definition at line 174 of file objpricer_gcg.h.

Referenced by GCGcomputeRedCostGcgCol(), and GCGcreateNewMasterVarFromGcgCol().

◆ getReducedCostPricing()

const ReducedCostPricing * ObjPricerGcg::getReducedCostPricing ( ) const
inline

Definition at line 179 of file objpricer_gcg.h.

Referenced by GCGpricerPrintStatistics().

◆ getReducedCostPricingNonConst()

ReducedCostPricing * ObjPricerGcg::getReducedCostPricingNonConst ( )
inline

◆ getOrigprob()

SCIP * ObjPricerGcg::getOrigprob ( ) const
inline

Definition at line 189 of file objpricer_gcg.h.

References origprob.

Referenced by GCGmasterPrintSimplexIters().

◆ getGcg()

GCG * ObjPricerGcg::getGcg ( ) const
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()

◆ 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()

◆ 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
colpriced col
addedpointer 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
pricingprobcolsarray 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()

SCIP_Real ObjPricerGcg::getDualconvsum ( GCG_COL **  bestcols)

get the sum over the dual values of convexity constraints

Parameters
bestcolsbest 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
pricetypetype of pricing
stabdualvalpointer to store stabilized dual objective value
stabilizestabilize?

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()

◆ computeColMastercoefs()

◆ computeColOriginalSepaCuts()

◆ computeColMastersepacutCoeffs()

SCIP_RETCODE ObjPricerGcg::computeColMastersepacutCoeffs ( GCG_COL *  gcgcol)

◆ 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
newvarThe new variable to add
gcgcolGCG 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
newvarThe new variable to add
probnumber of the pricing problem the solution belongs to
solvarsarray of variables with non-zero value in the solution of the pricing problem
solvalsarray of values in the solution of the pricing problem for variables in array solvars
nsolvarsnumber 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

GCG data structure

Definition at line 60 of file objpricer_gcg.h.

Referenced by getGcg().

◆ origprob

◆ pricerdata

◆ 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().