GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
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, SCIP_EventhdlrData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), GCGincludePricerGcg(), SCIP_PricerData::hybridascent, SCIP_PricerData::hybridascentnoagg, masterprob, SCIP_PricerData::maxartificialvars, SCIP_PricerData::mincolorth, SCIP_PricerData::nartificialvars, SCIP_PricerData::npricingcbs, SCIP_PricerData::nsolvers, SCIP_PricerData::objparalfac, ObjPricerGcg::ObjPricerGcg(), SCIP_PricerData::onlyreliablebigm, origprob, 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_PricerData::solvers, SCIP_PricerData::stabilization, SCIP_PricerData::stabilizationtree, SCIP_PricerData::useartificialvars, SCIP_PricerData::usecolpool, and SCIP_PricerData::usemaxobj.

Referenced by GCGincludePricerGcg(), and 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 assert(), GCGgetObjPricer(), GCGmasterGetPricedvars(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::pricedvars.

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

◆ GCGmasterGetNPricedvars()

◆ 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 assert(), GCGgetObjPricer(), GCGmasterAddMasterconsToHashmap(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::mapcons2idx, SCIP_CALL(), and SCIPdebugMessage().

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

References GCG_EXPORT, GCGmasterSetRootLPSol(), and sol.

Referenced by GCGmasterSetRootLPSol().

◆ 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
-update method for solver
-solving method for solver
-heuristic solving method for solver
-free method of solver
-init method of solver
-exit method of solver
-initsol method of solver
-exitsol method of solver
solverdatapricing solver data

References GCG_DECL_PRICINGCBEXIT, GCG_DECL_PRICINGCBEXITSOL, GCG_DECL_PRICINGCBFREE, GCG_DECL_PRICINGCBINIT, GCG_DECL_PRICINGCBINITSOL, GCG_DECL_PRICINGCBPOSTPRICING, GCG_DECL_PRICINGCBPREPRICING, GCG_DECL_SOLVEREXIT, GCG_DECL_SOLVEREXITSOL, GCG_DECL_SOLVERFREE, GCG_DECL_SOLVERINIT, GCG_DECL_SOLVERINITSOL, GCG_DECL_SOLVERSOLVE, GCG_DECL_SOLVERSOLVEHEUR, GCG_DECL_SOLVERUPDATE, GCG_EXPORT, GCGcomputeColMastercoefs(), GCGcomputeRedCostGcgCol(), GCGcreateNewMasterVarFromGcgCol(), GCGgetColpool(), GCGgetCurrentVarhistoryReference(), GCGgetNActivePricingproblemModifications(), GCGgetNAppliedPricingproblemModifications(), GCGmasterCreateInitialMastervars(), GCGmasterGetDegeneracy(), GCGmasterGetPricingSimplexIters(), GCGmasterIsBestsolValid(), GCGmasterIsCurrentSolValid(), GCGmasterIsSolValid(), GCGmasterPrintSimplexIters(), GCGmasterTransOrigSolToMasterVars(), GCGpricerAddCol(), GCGpricerAddColResult(), GCGpricerExistRays(), GCGpricerFindPricingcb(), GCGpricerGetGcg(), GCGpricerGetMaxColsProb(), GCGpricerGetMaxColsRound(), GCGpricerGetNPointsProb(), GCGpricerGetNPricingcbs(), GCGpricerGetNRaysProb(), GCGpricerGetNSolvers(), GCGpricerGetPricingcbs(), GCGpricerGetSolvers(), GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), GCGpricerPrintListOfSolvers(), GCGpricerPrintPricingStatistics(), GCGpricerPrintStatistics(), GCGsetPricingObjDualWeight(), GCGsetPricingObjRelaxWeight(), GCGsetPricingObjs(), and masterprob.

◆ GCGpricerGetSolvers()

GCG_EXPORT GCG_SOLVER ** GCGpricerGetSolvers ( GCG * gcg)

◆ GCGpricerGetNSolvers()

◆ GCGpricerPrintListOfSolvers()

◆ 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 assert(), GCGgetObjPricer(), GCGpricerExistRays(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingprobs, and SCIP_PricerData::nraysprob.

Referenced by GCGpricerExistRays(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetObjPricer(), GCGisPricingprobRelevant(), GCGpricerGetNPointsProb(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::npointsprob.

Referenced by GCGpricerGetNPointsProb(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetObjPricer(), GCGisPricingprobRelevant(), GCGpricerGetNRaysProb(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::nraysprob.

Referenced by GCGpricerGetNRaysProb(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetObjPricer(), GCGpricerGetMaxColsRound(), and ObjPricerGcg::getMaxColsRound().

Referenced by GCGpricerGetMaxColsRound(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetObjPricer(), GCGpricerGetMaxColsProb(), and ObjPricerGcg::getMaxColsProb().

Referenced by GCGpricerGetMaxColsProb(), GCGpricerIncludeSolver(), and 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(), assert(), GCGgetObjPricer(), GCGpricerAddCol(), and SCIP_CALL().

Referenced by GCGpricerAddCol(), GCGpricerIncludeSolver(), getColumnsFromPricingprob(), solveCliquer(), solveCplex(), solveHighs(), solveKnapsack(), solveProblem(), 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(), assert(), GCGgetObjPricer(), GCGpricerAddColResult(), and SCIP_CALL().

Referenced by GCGcolpoolPrice(), GCGpricerAddColResult(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCG_MastervarKey::block, ObjPricerGcg::createNewMasterVar(), SCIP_PricerData::duplicatecolclock, GCG_DECMODE_DANTZIGWOLFE, GCGgetBlockRepresentative(), GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), GCGgetOrigprob(), GCGlinkingVarGetBlocks(), GCGlinkingVarGetNBlocks(), GCGlinkingVarGetPricingVars(), GCGmasterGetNPricedvars(), GCGmasterGetPricedvars(), GCGmasterTransOrigSolToMasterVars(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGpricingVarGetOrigvars(), GCGvarGetBlock(), GCGvarIsOriginal(), getMastervarKey(), ObjPricerGcg::getPricerdata(), i, j, masterprob, GCG_MastervarKey::mastervar, SCIP_PricerData::nduplicatecols, SCIP_PricerData::npricingprobs, GCG_MastervarKey::nvars, origprob, SCIP_PricerData::preventduplicatecols, SCIP_PricerData::pricingprobs, SCIP_CALL(), SCIPdebugMessage(), SCIPfreeBufferArray(), solval, GCG_MastervarKey::vals, and GCG_MastervarKey::vars.

Referenced by GCGmasterTransOrigSolToMasterVars(), GCGpricerIncludeSolver(), SCIP_DECL_EVENTEXEC(), and SCIP_DECL_PRICERFARKAS().

◆ GCGmasterCreateInitialMastervars()

◆ GCGmasterGetDegeneracy()

◆ GCGmasterIsCurrentSolValid()

◆ GCGmasterIsBestsolValid()

◆ GCGmasterIsSolValid()

◆ 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 assert(), GCGgetObjPricer(), GCGmasterGetPricingSimplexIters(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::pricingiters.

Referenced by GCGmasterGetPricingSimplexIters(), GCGpricerIncludeSolver(), and SCIP_DECL_DISPOUTPUT().

◆ GCGmasterPrintSimplexIters()

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

◆ GCGsetPricingObjs()

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

◆ 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 assert(), SCIP_PricerData::dualweight, GCGgetObjPricer(), GCGsetPricingObjDualWeight(), and ObjPricerGcg::pricerdata.

Referenced by GCG_DECL_PRICINGCBPOSTPRICING(), GCG_DECL_PRICINGCBPREPRICING(), GCGpricerIncludeSolver(), and GCGsetPricingObjDualWeight().

◆ 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 assert(), GCGgetMasterprob(), GCGgetNMasterConss(), GCGgetObjPricer(), GCGsetPricingObjRelaxWeight(), i, ObjPricerGcg::pricerdata, SCIP_PricerData::relaxobjective, and SCIP_PricerData::relaxweight.

Referenced by GCG_DECL_PRICINGCBPOSTPRICING(), GCG_DECL_PRICINGCBPREPRICING(), GCGpricerIncludeSolver(), and GCGsetPricingObjRelaxWeight().

◆ 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 assert(), ObjPricerGcg::createNewMasterVarFromGcgCol(), GCGcreateNewMasterVarFromGcgCol(), GCGgetObjPricer(), ObjPricerGcg::getFarkasPricingNonConst(), ObjPricerGcg::getReducedCostPricingNonConst(), and SCIP_CALL().

Referenced by GCGcreateNewMasterVarFromGcgCol(), GCGpricerIncludeSolver(), and 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 assert(), ObjPricerGcg::computeRedCostGcgCol(), GCGcomputeRedCostGcgCol(), GCGgetObjPricer(), ObjPricerGcg::getFarkasPricingNonConst(), and ObjPricerGcg::getReducedCostPricingNonConst().

Referenced by GCGcolpoolUpdateRedcost(), GCGcomputeRedCostGcgCol(), and GCGpricerIncludeSolver().

◆ 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 assert(), ObjPricerGcg::computeColMastercoefs(), ObjPricerGcg::computeColMastersepacutCoeffs(), ObjPricerGcg::computeColOriginalSepaCuts(), GCGcomputeColMastercoefs(), and GCGgetObjPricer().

Referenced by GCGcolpoolUpdateRedcost(), GCGcomputeColMastercoefs(), and GCGpricerIncludeSolver().

◆ 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
-destructor of the pricing callback
-initialize the pricing callback
-deinitialize the pricing callback
-solving process initialization method of the pricing callback
-solving process deinitialization method of the pricing callback
-pre-pricing method of the pricing callback
-post-pricing method of the pricing callback
pricingcbdatapricing callback data

Definition at line 4478 of file pricer_gcg.cpp.

References assert(), GCG_DECL_PRICINGCBEXIT, GCG_DECL_PRICINGCBEXITSOL, GCG_DECL_PRICINGCBFREE, GCG_DECL_PRICINGCBINIT, GCG_DECL_PRICINGCBINITSOL, GCG_DECL_PRICINGCBPOSTPRICING, GCG_DECL_PRICINGCBPREPRICING, GCGgetObjPricer(), GCGpricerIncludePricingcb(), GCGpricingcbCreate(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::npricingcbs, SCIP_PricerData::pricingcbs, and SCIP_CALL().

Referenced by GCGpricerIncludePricingcb(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetObjPricer(), GCGpricerGetPricingcbs(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::pricingcbs.

Referenced by GCGpricerGetPricingcbs(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCGgetObjPricer(), GCGpricerGetNPricingcbs(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::npricingcbs.

Referenced by GCGpricerGetNPricingcbs(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCGgetObjPricer(), GCGpricerFindPricingcb(), GCGpricingcbGetName(), ObjPricerGcg::getPricerdata(), i, SCIP_PricerData::npricingcbs, and SCIP_PricerData::pricingcbs.

Referenced by GCGpricerFindPricingcb(), GCGpricerIncludeSolver(), and 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 assert(), ObjPricerGcg::colpool, GCGgetColpool(), and GCGgetObjPricer().

Referenced by GCGgetColpool(), GCGpricerIncludeSolver(), and 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 assert(), GCGgetCurrentVarhistoryReference(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::varhistory.

Referenced by GCGcreateConsMasterbranch(), GCGgetCurrentVarhistoryReference(), GCGmastersepacutSetVarHistory(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCGpricerGetGcg(), ObjPricerGcg::getGcg(), masterprob, and PRICER_NAME.

Referenced by GCGmasterGetGcg(), GCGpricerGetGcg(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCGgetNActivePricingproblemModifications(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::nactivepricingmods.

Referenced by GCGcreateGcgCol(), GCGgetNActivePricingproblemModifications(), and GCGpricerIncludeSolver().

◆ 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 assert(), GCGgetNAppliedPricingproblemModifications(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::nappliedpricingmods.

Referenced by GCGcreateGcgCol(), GCGgetNAppliedPricingproblemModifications(), and GCGpricerIncludeSolver().