GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

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
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 assert(), colpool, GCGgetMasterprob(), GCGgetOrigprob(), scip::ObjPricer::ObjPricer(), origprob, pricerdata, and pricestore.

Referenced by GCGincludePricerGcg().

◆ ~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(), and scip::ObjPricer::scip_.

◆ 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 assert(), 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(), i, j, SCIP_PricerData::npricingprobs, SCIP_PricerData::nrealdualvalues, origprob, pricerdata, SCIP_PricerData::pricingprobs, SCIP_PricerData::realdualvalues, SCIP_PricerData::relaxweight, PricingType::rowGetDual(), scip::ObjPricer::scip_, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), 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

References computeDualDiff(), createNewMasterVar(), createNewMasterVarFromGcgCol(), priceNewVariables(), pricingLoop(), result, and sol.

◆ 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
pricetypetype of the pricing
resultresult pointer
lowerboundlower bound of pricingproblems

Definition at line 4595 of file pricer_gcg.cpp.

References assert(), SCIP_PricerData::avgrootnodedegeneracy, SCIP_PricerData::calls, GCG_PRICETYPE_FARKAS, GCG_PRICETYPE_REDCOST, GCGisRootNode(), GCGpricerPrintInfo, PricingType::getCalls(), PricingType::getType(), PricingType::incCalls(), SCIP_PricerData::ndegeneracycalcs, pricerdata, pricingLoop(), result, SCIP_PricerData::rootnodedegeneracy, scip::ObjPricer::scip_, SCIP_CALL(), and SCIPdebugMessage().

Referenced by priceColumnPoolOld().

◆ 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(), assert(), SCIP_PricerData::dualsolconv, SCIP_PricerData::eventhdlr, GCG_PRICETYPE_REDCOST, GCGcreateMasterVar(), GCGgetConvCons(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGsetRootRedcostCall(), GCGupdateVarStatistics(), GCGvarIsInferredPricing(), GCGvarIsPricing(), PricingType::getType(), i, SCIP_PricerData::npointsprob, SCIP_PricerData::nraysprob, pricerdata, SCIP_PricerData::pricingprobs, scip::ObjPricer::scip_, SCIP_CALL(), SCIPdebugMessage(), sol, solval, and SCIP_PricerData::vartype.

Referenced by GCGmasterTransOrigSolToMasterVars(), and priceColumnPoolOld().

◆ 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
pricetypetype of pricing
gcgcolGCG column data structure
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
scorescore of column (or -1.0 if not specified)

Definition at line 3163 of file pricer_gcg.cpp.

References addVariableToMastersepacutsFromGCGCol(), assert(), SCIP_PricerData::dualsolconv, SCIP_PricerData::eventhdlr, GCG_PRICETYPE_REDCOST, GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetRedcost(), GCGcolGetVals(), GCGcolGetVars(), GCGcolIsRay(), GCGcreateMasterVar(), GCGgetConvCons(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGsetRootRedcostCall(), GCGupdateVarStatistics(), GCGvarIsPricing(), PricingType::getType(), i, SCIP_PricerData::npointsprob, SCIP_PricerData::nraysprob, pricerdata, SCIP_PricerData::pricingprobs, scip::ObjPricer::scip_, SCIP_CALL(), SCIPdebugMessage(), solval, and SCIP_PricerData::vartype.

Referenced by GCGcreateNewMasterVarFromGcgCol(), and priceColumnPoolOld().

◆ 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 i, j, SCIP_PricerData::npricingprobs, pricerdata, and SCIP_PricerData::pricingprobs.

Referenced by GCGpricerPrintStatistics(), priceColumnPoolOld(), 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 assert(), c, colpool, computeDualDiff(), PricingType::consGetDual(), SCIP_Stat::duallptime, SCIP_PricerData::dualsolconv, SCIP_PricerData::dualweight, 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(), getStabilizedDualObjectiveValue(), PricingType::getType(), i, j, SCIP_PricerData::nappliedpricingmods, SCIP_PricerData::nefficaciouscols, SCIP_PricerData::npricingloopiters, SCIP_PricerData::npricingprobs, SCIP_PricerData::nroundsredcost, origprob, pricerdata, pricestore, SCIP_PricerData::pricingprobs, SCIP_Stat::primallptime, SCIP_PricerData::realdualvalues, SCIP_PricerData::relaxobjective, result, retcode, scip::ObjPricer::scip_, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), SCIPsepaBasisAddPPObjConss(), setPricingObjs(), SCIP_PricerData::stabilization, SCIP_PricerData::stabilizationtree, Scip::stat, and SCIP_PricerData::usecolpool.

Referenced by priceColumnPoolOld(), and 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.

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

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

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 FarkasPricing::FarkasPricing(), ReducedCostPricing::ReducedCostPricing(), and SCIP_CALL().

Referenced by GCGincludePricerGcg().

◆ createPricingcontroller()

SCIP_RETCODE ObjPricerGcg::createPricingcontroller ( )

create the pricing controller

Definition at line 5441 of file pricer_gcg.cpp.

References gcg::Pricingcontroller::Pricingcontroller(), and SCIP_CALL().

Referenced by GCGincludePricerGcg().

◆ createStabilization()

void ObjPricerGcg::createStabilization ( )

◆ createColpool()

SCIP_RETCODE ObjPricerGcg::createColpool ( )

create the pointers for the colpool

Definition at line 5461 of file pricer_gcg.cpp.

References assert(), colpool, SCIP_PricerData::colpoolagelimit, GCGcolpoolCreate(), pricerdata, and SCIP_CALL().

◆ 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 assert(), computeRedCostGcgCol(), GCG_SET_LOCK, GCG_UNSET_LOCK, GCGcolGetProbNr(), GCGcolGetRedcost(), GCGcolUpdateRedcost(), GCGpricestoreAddCol(), SCIP_PricerData::nefficaciouscols, pricerdata, pricestore, scip::ObjPricer::scip_, and SCIPdebugMessage().

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 assert(), GCGcolGetProbNr(), GCGcolGetRedcost(), GCGpricestoreGetCols(), GCGpricestoreGetNCols(), i, j, SCIP_PricerData::npricingprobs, pricerdata, pricestore, scip::ObjPricer::scip_, and SCIPdebugMessage().

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 assert(), GCGcolIsRay(), GCGgetConvCons(), GCGgetNIdenticalBlocks(), GCGisPricingprobRelevant(), i, SCIP_PricerData::npricingprobs, and pricerdata.

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 assert(), 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(), i, j, origprob, PricingType::rowGetDual(), scip::ObjPricer::scip_, SCIP_CALL(), SCIPdebugMessage(), and SCIPfreeBufferArray().

Referenced by pricingLoop().

◆ computeRedCostGcgCol()

◆ computeColMastercoefs()

◆ 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
gcgcolGCG column data structure

Definition at line 1936 of file pricer_gcg.cpp.

References assert(), GCGcolGetNOriginalSepaMastercuts(), GCGcolGetNVars(), GCGcolGetProbNr(), GCGcolGetVals(), GCGcolGetVars(), GCGcolUpdateOriginalSepaMastercuts(), GCGoriginalVarGetPricingVar(), GCGsepaGetNOriginalSepaCuts(), GCGsepaGetOriginalSepaMastercuts(), GCGsepaGetOriginalSepaOrigcuts(), GCGvarGetBlock(), GCGvarIsOriginal(), i, j, origprob, scip::ObjPricer::scip_, SCIP_CALL(), SCIPfreeBufferArray(), and var.

Referenced by GCGcomputeColMastercoefs().

◆ 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 assert(), computeColMastersepacutCoeffs(), GCGcolGetMastersepaCutCoeffs(), GCGextendedmasterconsGetRow(), GCGgetActiveMastersepacuts(), GCGgetNActiveMastersepacuts(), j, scip::ObjPricer::scip_, and SCIP_CALL().

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 assert(), GCGextendedmasterconsGetMastersepacut(), GCGextendedmasterconsGetRow(), GCGgetActiveMastersepacuts(), GCGgetNActiveMastersepacuts(), GCGmastersepacutGetExtendedmasterconsCoeff(), GCGmastersepacutGetVarHistory(), GCGvarhistoryJumpToLatest(), j, scip::ObjPricer::scip_, and SCIP_CALL().

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.

◆ origprob

◆ pricerdata

◆ colpool

GCG_COLPOOL* ObjPricerGcg::colpool

column pool

Definition at line 63 of file objpricer_gcg.h.

Referenced by createColpool(), GCGgetColpool(), ObjPricerGcg(), and pricingLoop().

◆ pricestore

GCG_PRICESTORE* ObjPricerGcg::pricestore

price storage

Definition at line 64 of file objpricer_gcg.h.

Referenced by addColToPricestore(), createPricestore(), getBestCols(), ObjPricerGcg(), and pricingLoop().