Scippy

GCG

Branch-and-Price & Column Generation for Everyone

GCG Variable Pricer

Detailed Description

Functions

GCG_EXPORT SCIP_RETCODE GCGincludePricerGcg (GCG *gcg)
 
GCG_EXPORT SCIP_VAR ** GCGmasterGetPricedvars (GCG *gcg)
 
GCG_EXPORT int GCGmasterGetNPricedvars (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGmasterAddMasterconsToHashmap (GCG *gcg, SCIP_CONS *cons, int pos)
 
GCG_EXPORT SCIP_RETCODE GCGmasterSetRootLPSol (GCG *gcg, SCIP_SOL **sol)
 
GCG_EXPORT SCIP_RETCODE GCGpricerIncludeSolver (GCG *gcg, const char *name, const char *desc, int priority, SCIP_Bool heurenabled, SCIP_Bool exactenabled, GCG_DECL_SOLVERUPDATE((*solverupdate)), GCG_DECL_SOLVERSOLVE((*solversolve)), GCG_DECL_SOLVERSOLVEHEUR((*solveheur)), GCG_DECL_SOLVERFREE((*solverfree)), GCG_DECL_SOLVERINIT((*solverinit)), GCG_DECL_SOLVEREXIT((*solverexit)), GCG_DECL_SOLVERINITSOL((*solverinitsol)), GCG_DECL_SOLVEREXITSOL((*solverexitsol)), GCG_SOLVERDATA *solverdata)
 
GCG_EXPORT GCG_SOLVER ** GCGpricerGetSolvers (GCG *gcg)
 
GCG_EXPORT int GCGpricerGetNSolvers (GCG *gcg)
 
GCG_EXPORT void GCGpricerPrintListOfSolvers (GCG *gcg)
 
GCG_EXPORT void GCGpricerPrintPricingStatistics (GCG *gcg, FILE *file)
 
GCG_EXPORT void GCGpricerPrintStatistics (GCG *gcg, FILE *file)
 
GCG_EXPORT SCIP_RETCODE GCGpricerExistRays (GCG *gcg, SCIP_Bool *exist)
 
GCG_EXPORT int GCGpricerGetNPointsProb (GCG *gcg, int probnr)
 
GCG_EXPORT int GCGpricerGetNRaysProb (GCG *gcg, int probnr)
 
GCG_EXPORT int GCGpricerGetMaxColsRound (GCG *gcg)
 
GCG_EXPORT int GCGpricerGetMaxColsProb (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGpricerAddCol (GCG *gcg, GCG_COL *col)
 
GCG_EXPORT SCIP_RETCODE GCGpricerAddColResult (GCG *gcg, GCG_COL *col, SCIP_Bool *added)
 
GCG_EXPORT SCIP_RETCODE GCGmasterTransOrigSolToMasterVars (GCG *gcg, SCIP_SOL *origsol, SCIP_Bool *stored)
 
GCG_EXPORT SCIP_RETCODE GCGmasterCreateInitialMastervars (GCG *gcg)
 
GCG_EXPORT SCIP_Real GCGmasterGetDegeneracy (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGmasterIsCurrentSolValid (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGmasterIsBestsolValid (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGmasterIsSolValid (GCG *gcg, SCIP_SOL *mastersol)
 
GCG_EXPORT SCIP_Longint GCGmasterGetPricingSimplexIters (GCG *gcg)
 
GCG_EXPORT SCIP_RETCODE GCGmasterPrintSimplexIters (GCG *gcg, FILE *file)
 
GCG_EXPORT SCIP_RETCODE GCGsetPricingObjs (GCG *gcg, SCIP_Real *dualsolconv)
 
GCG_EXPORT void GCGsetPricingObjDualWeight (GCG *gcg, SCIP_Real dualweight)
 
GCG_EXPORT void GCGsetPricingObjRelaxWeight (GCG *gcg, SCIP_Real *weights, int *weightids, int nweights)
 
GCG_EXPORT SCIP_RETCODE GCGcreateNewMasterVarFromGcgCol (GCG *gcg, SCIP_Bool infarkas, GCG_COL *gcgcol, SCIP_Bool force, SCIP_Bool *added, SCIP_VAR **addedvar, SCIP_Real score)
 
GCG_EXPORT SCIP_Real GCGcomputeRedCostGcgCol (GCG *gcg, SCIP_Bool infarkas, GCG_COL *gcgcol, SCIP_Real *objvalptr)
 
GCG_EXPORT SCIP_RETCODE GCGcomputeColMastercoefs (GCG *gcg, GCG_COL *gcgcol)
 
GCG_EXPORT SCIP_RETCODE GCGpricerIncludePricingcb (GCG *gcg, const char *name, const char *desc, int priority, GCG_DECL_PRICINGCBFREE((*pricingcbfree)), GCG_DECL_PRICINGCBINIT((*pricingcbinit)), GCG_DECL_PRICINGCBEXIT((*pricingcbexit)), GCG_DECL_PRICINGCBINITSOL((*pricingcbinitsol)), GCG_DECL_PRICINGCBEXITSOL((*pricingcbexitsol)), GCG_DECL_PRICINGCBPREPRICING((*pricingcbprepricing)), GCG_DECL_PRICINGCBPOSTPRICING((*pricingcbpostpricing)), GCG_PRICINGCBDATA *pricingcbdata)
 
GCG_EXPORT GCG_PRICINGCB ** GCGpricerGetPricingcbs (GCG *gcg)
 
GCG_EXPORT int GCGpricerGetNPricingcbs (GCG *gcg)
 
GCG_EXPORT GCG_PRICINGCB * GCGpricerFindPricingcb (GCG *gcg, const char *name)
 
GCG_EXPORT GCG_COLPOOL * GCGgetColpool (GCG *gcg)
 
GCG_EXPORT GCG_VARHISTORY * GCGgetCurrentVarhistoryReference (GCG *gcg)
 
GCG_EXPORT GCG * GCGpricerGetGcg (SCIP *masterprob)
 
GCG_EXPORT int GCGgetNActivePricingproblemModifications (GCG *gcg, int probnr)
 
GCG_EXPORT int GCGgetNAppliedPricingproblemModifications (GCG *gcg, int probnr)
 

Function Documentation

◆ GCGincludePricerGcg()

GCG_EXPORT SCIP_RETCODE GCGincludePricerGcg ( GCG *  gcg)

creates the GCG variable pricer and includes it in SCIP

Parameters
gcgGCG data structure

Definition at line 5487 of file pricer_gcg.cpp.

References SCIP_PricerData::abortpricinggap, SCIP_PricerData::abortpricingint, SCIP_PricerData::artificialvars, SCIP_PricerData::bigmartificial, SCIP_PricerData::colpoolagelimit, ObjPricerGcg::createPricingcontroller(), ObjPricerGcg::createPricingTypes(), DEFAULT_ABORTPRICINGGAP, DEFAULT_ABORTPRICINGINT, DEFAULT_BIGMARTIFICIAL, DEFAULT_COLPOOL_AGELIMIT, DEFAULT_DISABLECUTOFF, DEFAULT_DISPINFOS, DEFAULT_FACTORUNRELIABLE, DEFAULT_HYBRIDASCENT, DEFAULT_HYBRIDASCENT_NOAGG, DEFAULT_NTHREADS, DEFAULT_ONLYRELIABLEBIGM, DEFAULT_PREVENTDUPLICATECOLS, DEFAULT_PRICE_EFFICIACYCHOICE, DEFAULT_PRICE_MINCOLORTH, DEFAULT_PRICE_OBJPARALFAC, DEFAULT_PRICE_ORTHOFAC, DEFAULT_PRICE_REDCOSTFAC, DEFAULT_STABILIZATION, DEFAULT_STABILIZATIONTREE, DEFAULT_USEARTIFICIALVARS, DEFAULT_USECOLPOOL, DEFAULT_USEMAXOBJ, SCIP_PricerData::disablecutoff, SCIP_PricerData::dispinfos, SCIP_PricerData::efficiacychoice, eventDeleteVardeleted, eventExitsolVardeleted, eventExitVardeleted, SCIP_PricerData::eventhdlr, EVENTHDLR_DESC, EVENTHDLR_NAME, eventInitsolVardeleted, eventInitVardeleted, SCIP_PricerData::factorunreliable, FALSE, SCIP_EventhdlrData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), SCIP_PricerData::hybridascent, SCIP_PricerData::hybridascentnoagg, SCIP_PricerData::maxartificialvars, SCIP_PricerData::mincolorth, SCIP_PricerData::nartificialvars, SCIP_PricerData::npricingcbs, SCIP_PricerData::nsolvers, NULL, SCIP_PricerData::objparalfac, SCIP_PricerData::onlyreliablebigm, SCIP_PricerData::orthofac, SCIP_PricerData::preventduplicatecols, PRICER_DELAY, PRICER_DESC, PRICER_NAME, PRICER_PRIORITY, SCIP_PricerData::pricingcbs, SCIP_PricerData::realdualvalues, SCIP_PricerData::redcostfac, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPaddRealParam(), SCIPallocBlockMemory, SCIPallocMemory, SCIPfindEventhdlr(), SCIPfixParam(), SCIPincludeEventhdlr(), SCIPincludeObjPricer(), SCIPinfinity(), SCIPsetIntParam(), SCIP_PricerData::solvers, SCIP_PricerData::stabilization, SCIP_PricerData::stabilizationtree, TRUE, SCIP_PricerData::useartificialvars, SCIP_PricerData::usecolpool, and SCIP_PricerData::usemaxobj.

Referenced by GCGincludeRelaxGcg().

◆ GCGmasterGetPricedvars()

GCG_EXPORT SCIP_VAR ** GCGmasterGetPricedvars ( GCG *  gcg)

returns the array of variables that were priced in during the solving process

Parameters
gcgGCG data structure

Definition at line 5644 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), NULL, and SCIP_PricerData::pricedvars.

Referenced by applyGlobalBndchgsToPricedMastervars(), applyLocalBndchgsToPricedMastervars(), createBranchingCons(), and GCGmasterTransOrigSolToMasterVars().

◆ GCGmasterGetNPricedvars()

GCG_EXPORT int GCGmasterGetNPricedvars ( GCG *  gcg)

returns the number of variables that were priced in during the solving process

Parameters
gcgGCG data structure

Definition at line 5662 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricedvars, and NULL.

Referenced by applyGlobalBndchgsToPricedMastervars(), applyLocalBndchgsToPricedMastervars(), createBranchingCons(), GCGmasterTransOrigSolToMasterVars(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSDEACTIVE(), and SCIP_DECL_CONSPROP().

◆ GCGmasterAddMasterconsToHashmap()

GCG_EXPORT SCIP_RETCODE GCGmasterAddMasterconsToHashmap ( GCG *  gcg,
SCIP_CONS *  cons,
int  pos 
)

adds the given constraint and the given position to the hashmap of the pricer

Parameters
gcgGCG data structure
consthe constraint that should be added
posthe position of the constraint in the relaxator's masterconss array

Definition at line 5681 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::mapcons2idx, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetName(), SCIPdebugMessage, SCIPhashmapGetImage(), and SCIPhashmapInsert().

Referenced by GCGrelaxTransOrigToMasterCons().

◆ GCGmasterSetRootLPSol()

GCG_EXPORT SCIP_RETCODE GCGmasterSetRootLPSol ( GCG *  gcg,
SCIP_SOL **  sol 
)

sets the optimal LP solution in the pricerdata

Parameters
gcgGCG data structure
solpointer to optimal solution to root LP

◆ GCGpricerIncludeSolver()

GCG_EXPORT SCIP_RETCODE GCGpricerIncludeSolver ( GCG *  gcg,
const char *  name,
const char *  desc,
int  priority,
SCIP_Bool  heurenabled,
SCIP_Bool  exactenabled,
GCG_DECL_SOLVERUPDATE((*solverupdate))  ,
GCG_DECL_SOLVERSOLVE((*solversolve))  ,
GCG_DECL_SOLVERSOLVEHEUR((*solveheur))  ,
GCG_DECL_SOLVERFREE((*solverfree))  ,
GCG_DECL_SOLVERINIT((*solverinit))  ,
GCG_DECL_SOLVEREXIT((*solverexit))  ,
GCG_DECL_SOLVERINITSOL((*solverinitsol))  ,
GCG_DECL_SOLVEREXITSOL((*solverexitsol))  ,
GCG_SOLVERDATA *  solverdata 
)

includes a solver into the pricer data

Parameters
gcgGCG data structure
namename of solver
descdescription of solver
prioritypriority of solver
heurenabledflag to indicate whether heuristic solving method of the solver is enabled
exactenabledflag to indicate whether exact solving method of the solver is enabled
solverdatapricing solver data

References SCIP_Bool, SCIP_Longint, and SCIP_Real.

◆ GCGpricerGetSolvers()

GCG_EXPORT GCG_SOLVER ** GCGpricerGetSolvers ( GCG *  gcg)

returns the available pricing solvers

Parameters
gcgGCG data structure

Definition at line 5802 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), NULL, and SCIP_PricerData::solvers.

Referenced by GCGpricingjobNextSolver(), GCGpricingjobResetSolver(), and gcg::Pricingcontroller::initSol().

◆ GCGpricerGetNSolvers()

GCG_EXPORT int GCGpricerGetNSolvers ( GCG *  gcg)

returns the number of available pricing solvers

Parameters
gcgGCG data structure

Definition at line 5820 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nsolvers, and NULL.

Referenced by GCGpricingjobNextSolver(), GCGpricingjobResetSolver(), gcg::Pricingcontroller::initPricing(), and gcg::Pricingcontroller::initSol().

◆ GCGpricerPrintListOfSolvers()

GCG_EXPORT void GCGpricerPrintListOfSolvers ( GCG *  gcg)

◆ GCGpricerPrintPricingStatistics()

◆ GCGpricerPrintStatistics()

◆ GCGpricerExistRays()

GCG_EXPORT SCIP_RETCODE GCGpricerExistRays ( GCG *  gcg,
SCIP_Bool *  exist 
)

method to get existence of rays

Parameters
gcgGCG data structure
existpointer to store if there exists any ray

Definition at line 6029 of file pricer_gcg.cpp.

References FALSE, GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingprobs, SCIP_PricerData::nraysprob, NULL, SCIP_OKAY, and TRUE.

Referenced by initBranch().

◆ GCGpricerGetNPointsProb()

GCG_EXPORT int GCGpricerGetNPointsProb ( GCG *  gcg,
int  probnr 
)

get the number of extreme points that a pricing problem has generated so far

Parameters
gcgGCG data structure
probnrindex of pricing problem

Definition at line 6061 of file pricer_gcg.cpp.

References GCGgetObjPricer(), GCGisPricingprobRelevant(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npointsprob, and NULL.

Referenced by gcg::Pricingcontroller::setupPriorityQueue().

◆ GCGpricerGetNRaysProb()

GCG_EXPORT int GCGpricerGetNRaysProb ( GCG *  gcg,
int  probnr 
)

get the number of extreme rays that a pricing problem has generated so far

Parameters
gcgGCG data structure
probnrindex of pricing problem

Definition at line 6083 of file pricer_gcg.cpp.

References GCGgetObjPricer(), GCGisPricingprobRelevant(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nraysprob, and NULL.

Referenced by gcg::Pricingcontroller::setupPriorityQueue().

◆ GCGpricerGetMaxColsRound()

GCG_EXPORT int GCGpricerGetMaxColsRound ( GCG *  gcg)

get the number of columns to be added to the master LP in the current pricing round

Parameters
gcgGCG data structure

Definition at line 6105 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getMaxColsRound(), and NULL.

Referenced by GCGpricestoreApplyCols().

◆ GCGpricerGetMaxColsProb()

GCG_EXPORT int GCGpricerGetMaxColsProb ( GCG *  gcg)

get the number of columns per pricing problem to be added to the master LP in the current pricing round

Parameters
gcgGCG data structure

Definition at line 6119 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getMaxColsProb(), and NULL.

Referenced by GCGpricestoreApplyCols().

◆ GCGpricerAddCol()

GCG_EXPORT SCIP_RETCODE GCGpricerAddCol ( GCG *  gcg,
GCG_COL *  col 
)

add a new column to the pricing storage

Parameters
gcgGCG data structure
colpriced col

Definition at line 6133 of file pricer_gcg.cpp.

References ObjPricerGcg::addColToPricestore(), GCGgetObjPricer(), NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by getColumnsFromPricingprob(), solveCliquer(), solveCplex(), solveHighs(), solveKnapsack(), and solveProblem().

◆ GCGpricerAddColResult()

GCG_EXPORT SCIP_RETCODE GCGpricerAddColResult ( GCG *  gcg,
GCG_COL *  col,
SCIP_Bool *  added 
)

add a new column to the pricing storage and store result

add a new column to the pricing storage

Parameters
gcgGCG data structure
colpriced col
addedpointer to var that indicates whether the col was added

Definition at line 6150 of file pricer_gcg.cpp.

References ObjPricerGcg::addColToPricestore(), GCGgetObjPricer(), NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by GCGcolpoolPrice().

◆ GCGmasterTransOrigSolToMasterVars()

GCG_EXPORT SCIP_RETCODE GCGmasterTransOrigSolToMasterVars ( GCG *  gcg,
SCIP_SOL *  origsol,
SCIP_Bool *  stored 
)

transfers a primal solution of the original problem into the master variable space, i.e. creates one master variable for each block and adds the solution to the master problem

Parameters
gcgGCG data structure
origsolthe solution that should be transferred
storedpointer to store if transferred solution is feasible (or NULL)

Definition at line 6169 of file pricer_gcg.cpp.

References GCG_MastervarKey::block, ObjPricerGcg::createNewMasterVar(), SCIP_PricerData::duplicatecolclock, FALSE, GCG_DECMODE_DANTZIGWOLFE, GCGgetBlockRepresentative(), GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), GCGgetOrigprob(), GCGlinkingVarGetBlocks(), GCGlinkingVarGetNBlocks(), GCGlinkingVarGetPricingVars(), GCGmasterGetNPricedvars(), GCGmasterGetPricedvars(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGvarGetBlock(), GCGvarIsOriginal(), getMastervarKey(), ObjPricerGcg::getPricerdata(), GCG_MastervarKey::mastervar, MAX, SCIP_PricerData::nduplicatecols, SCIP_PricerData::npricingprobs, NULL, GCG_MastervarKey::nvars, SCIP_PricerData::preventduplicatecols, SCIP_PricerData::pricingprobs, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPblkmem(), SCIPcheckSol(), SCIPcreateSol(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetNVars(), SCIPgetSolVals(), SCIPgetVars(), SCIPhashtableCreate(), SCIPhashtableFree(), SCIPhashtableInsert(), SCIPhashtableRetrieve(), SCIPincSolVal(), SCIPisEQ(), SCIPisIntegral(), SCIPisZero(), SCIPround(), SCIPsetSolVal(), SCIPstartClock(), SCIPstopClock(), SCIPtrySolFree(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarIsIntegral(), TRUE, GCG_MastervarKey::vals, and GCG_MastervarKey::vars.

Referenced by SCIP_DECL_EVENTEXEC(), and SCIP_DECL_PRICERFARKAS().

◆ GCGmasterCreateInitialMastervars()

◆ GCGmasterGetDegeneracy()

GCG_EXPORT SCIP_Real GCGmasterGetDegeneracy ( GCG *  gcg)

◆ GCGmasterIsCurrentSolValid()

◆ GCGmasterIsBestsolValid()

◆ GCGmasterIsSolValid()

GCG_EXPORT SCIP_Bool GCGmasterIsSolValid ( GCG *  gcg,
SCIP_SOL *  mastersol 
)

◆ GCGmasterGetPricingSimplexIters()

GCG_EXPORT SCIP_Longint GCGmasterGetPricingSimplexIters ( GCG *  gcg)

get number of iterations in pricing problems

Parameters
gcgGCG data structure

Definition at line 6718 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), NULL, SCIP_PricerData::pricingiters, and SCIP_Longint.

Referenced by SCIP_DECL_DISPOUTPUT().

◆ GCGmasterPrintSimplexIters()

GCG_EXPORT SCIP_RETCODE GCGmasterPrintSimplexIters ( GCG *  gcg,
FILE *  file 
)

◆ GCGsetPricingObjs()

GCG_EXPORT SCIP_RETCODE GCGsetPricingObjs ( GCG *  gcg,
SCIP_Real *  dualsolconv 
)

set pricing objectives

Parameters
gcgGCG data structure
dualsolconvarray of dual solutions corresponding to convexity constraints

Definition at line 4318 of file pricer_gcg.cpp.

References SCIP_PricerData::dualsolconv, FALSE, GCGgetObjPricer(), ObjPricerGcg::getReducedCostPricingNonConst(), SCIP_PricerData::npricingprobs, NULL, ObjPricerGcg::pricerdata, SCIP_Bool, SCIP_CALL, SCIP_OKAY, ObjPricerGcg::setPricingObjs(), and SCIP_PricerData::stabilization.

Referenced by SCIP_DECL_SEPAEXECLP().

◆ GCGsetPricingObjDualWeight()

GCG_EXPORT void GCGsetPricingObjDualWeight ( GCG *  gcg,
SCIP_Real  dualweight 
)

sets the dual weight for the pricing objective

Parameters
gcgGCG data structure
dualweightthe weighting applied to the dual variables

Definition at line 4350 of file pricer_gcg.cpp.

References SCIP_PricerData::dualweight, GCGgetObjPricer(), NULL, and ObjPricerGcg::pricerdata.

Referenced by GCG_DECL_PRICINGCBPOSTPRICING(), and GCG_DECL_PRICINGCBPREPRICING().

◆ GCGsetPricingObjRelaxWeight()

GCG_EXPORT void GCGsetPricingObjRelaxWeight ( GCG *  gcg,
SCIP_Real *  weights,
int *  weightids,
int  nweights 
)

sets the Lagrangian relaxation weight for the pricing objective

Parameters
gcgGCG data structure
weightsthe Lagrangian relaxation weight applied to the master constraints
weightidsthe constraint ids for the relaxation weights
nweightsthe number of weights

Definition at line 4367 of file pricer_gcg.cpp.

References BMSclearMemoryArray, FALSE, GCGgetMasterprob(), GCGgetNMasterConss(), GCGgetObjPricer(), NULL, ObjPricerGcg::pricerdata, SCIP_PricerData::relaxobjective, SCIP_PricerData::relaxweight, SCIP_Bool, SCIPisZero(), and TRUE.

Referenced by GCG_DECL_PRICINGCBPOSTPRICING(), and GCG_DECL_PRICINGCBPREPRICING().

◆ GCGcreateNewMasterVarFromGcgCol()

GCG_EXPORT SCIP_RETCODE GCGcreateNewMasterVarFromGcgCol ( GCG *  gcg,
SCIP_Bool  infarkas,
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
gcgGCG data structure
infarkasin Farkas 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 4404 of file pricer_gcg.cpp.

References ObjPricerGcg::createNewMasterVarFromGcgCol(), GCGgetObjPricer(), ObjPricerGcg::getFarkasPricingNonConst(), ObjPricerGcg::getReducedCostPricingNonConst(), NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by pricestoreApplyCol().

◆ GCGcomputeRedCostGcgCol()

GCG_EXPORT SCIP_Real GCGcomputeRedCostGcgCol ( GCG *  gcg,
SCIP_Bool  infarkas,
GCG_COL *  gcgcol,
SCIP_Real *  objvalptr 
)

computes the reduced cost of a column

Parameters
gcgGCG data structure
infarkasin Farkas pricing?
gcgcolgcg column to compute reduced cost for
objvalptrpointer to store the computed objective value

Definition at line 4452 of file pricer_gcg.cpp.

References ObjPricerGcg::computeRedCostGcgCol(), GCGgetObjPricer(), ObjPricerGcg::getFarkasPricingNonConst(), ObjPricerGcg::getReducedCostPricingNonConst(), NULL, and SCIP_Real.

Referenced by GCGcolpoolUpdateRedcost().

◆ GCGcomputeColMastercoefs()

GCG_EXPORT SCIP_RETCODE GCGcomputeColMastercoefs ( GCG *  gcg,
GCG_COL *  gcgcol 
)

compute master and cut coefficients of column

Parameters
gcgGCG data structure
gcgcolGCG column data structure

Definition at line 4433 of file pricer_gcg.cpp.

References ObjPricerGcg::computeColMastercoefs(), ObjPricerGcg::computeColMastersepacutCoeffs(), ObjPricerGcg::computeColOriginalSepaCuts(), GCGgetObjPricer(), NULL, and SCIP_OKAY.

Referenced by GCGcolpoolUpdateRedcost().

◆ GCGpricerIncludePricingcb()

GCG_EXPORT SCIP_RETCODE GCGpricerIncludePricingcb ( GCG *  gcg,
const char *  name,
const char *  desc,
int  priority,
GCG_DECL_PRICINGCBFREE((*pricingcbfree))  ,
GCG_DECL_PRICINGCBINIT((*pricingcbinit))  ,
GCG_DECL_PRICINGCBEXIT((*pricingcbexit))  ,
GCG_DECL_PRICINGCBINITSOL((*pricingcbinitsol))  ,
GCG_DECL_PRICINGCBEXITSOL((*pricingcbexitsol))  ,
GCG_DECL_PRICINGCBPREPRICING((*pricingcbprepricing))  ,
GCG_DECL_PRICINGCBPOSTPRICING((*pricingcbpostpricing))  ,
GCG_PRICINGCBDATA *  pricingcbdata 
)

includes a pricing callback plugin into the pricer data

Parameters
gcgGCG data structure
namename of pricing callback plugin
descdescription of pricing callback plugin
prioritypriority of pricing callback plugin
pricingcbdatapricing callback data

Definition at line 4478 of file pricer_gcg.cpp.

References GCGgetObjPricer(), GCGpricingcbCreate(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingcbs, NULL, SCIP_PricerData::pricingcbs, SCIP_CALL, SCIP_OKAY, SCIPallocMemoryArray, and SCIPreallocMemoryArray.

Referenced by SCIPincludeHeurIPcolgen().

◆ GCGpricerGetPricingcbs()

GCG_EXPORT GCG_PRICINGCB ** GCGpricerGetPricingcbs ( GCG *  gcg)

returns the available pricing callback plugins

Parameters
gcgGCG data structure

Definition at line 4528 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), NULL, and SCIP_PricerData::pricingcbs.

◆ GCGpricerGetNPricingcbs()

GCG_EXPORT int GCGpricerGetNPricingcbs ( GCG *  gcg)

returns the number of available pricing callback plugins

Parameters
gcgGCG data structure

Definition at line 4548 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingcbs, and NULL.

◆ GCGpricerFindPricingcb()

GCG_EXPORT GCG_PRICINGCB * GCGpricerFindPricingcb ( GCG *  gcg,
const char *  name 
)

returns the pricing callback plugin of the given name, or NULL if it doesn't exist

Parameters
gcgGCG data structure
namethe name of the pricing callback plugin

Definition at line 4568 of file pricer_gcg.cpp.

References GCGgetObjPricer(), GCGpricingcbGetName(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingcbs, NULL, and SCIP_PricerData::pricingcbs.

Referenced by performWeightedPricing().

◆ GCGgetColpool()

GCG_EXPORT GCG_COLPOOL * GCGgetColpool ( GCG *  gcg)

get colpool

Parameters
gcgGCG data structure

Definition at line 6787 of file pricer_gcg.cpp.

References ObjPricerGcg::colpool, GCGgetObjPricer(), and NULL.

Referenced by SCIP_DECL_CONSPROP().

◆ GCGgetCurrentVarhistoryReference()

GCG_EXPORT GCG_VARHISTORY * GCGgetCurrentVarhistoryReference ( GCG *  gcg)

get a weak reference to the current and latest varhistory pointer

Parameters
gcgGCG data structure

Definition at line 6800 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), NULL, and SCIP_PricerData::varhistory.

Referenced by GCGcreateConsMasterbranch(), and GCGmastersepacutSetVarHistory().

◆ GCGpricerGetGcg()

GCG_EXPORT GCG * GCGpricerGetGcg ( SCIP *  masterprob)

returns the GCG data structure

Parameters
masterprobSCIP data structure

Definition at line 6839 of file pricer_gcg.cpp.

References ObjPricerGcg::getGcg(), NULL, PRICER_NAME, and SCIPfindObjPricer().

Referenced by GCGmasterGetGcg().

◆ GCGgetNActivePricingproblemModifications()

GCG_EXPORT int GCGgetNActivePricingproblemModifications ( GCG *  gcg,
int  probnr 
)

return number of active pricing modifications for a specific pricing problem

Parameters
gcgGCG data structure
probnrnumber of pricing problem

Definition at line 6855 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nactivepricingmods, and NULL.

Referenced by GCGcreateGcgCol().

◆ GCGgetNAppliedPricingproblemModifications()

GCG_EXPORT int GCGgetNAppliedPricingproblemModifications ( GCG *  gcg,
int  probnr 
)

return number of actually applied pricing modifications for a specific pricing problem

Parameters
gcgGCG data structure
probnrnumber of pricing problem

Definition at line 6875 of file pricer_gcg.cpp.

References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nappliedpricingmods, and NULL.

Referenced by GCGcreateGcgCol().