Detailed Description
Function Documentation
◆ GCGincludePricerGcg()
| GCG_EXPORT SCIP_RETCODE GCGincludePricerGcg | ( | GCG * | gcg | ) |
creates the GCG variable pricer and includes it in SCIP
- Parameters
-
gcg GCG 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
-
gcg GCG 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()
| GCG_EXPORT int GCGmasterGetNPricedvars | ( | GCG * | gcg | ) |
returns the number of variables that were priced in during the solving process
- Parameters
-
gcg GCG data structure
Definition at line 5662 of file pricer_gcg.cpp.
References assert(), GCGgetObjPricer(), GCGmasterGetNPricedvars(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::npricedvars.
Referenced by applyGlobalBndchgsToPricedMastervars(), applyLocalBndchgsToPricedMastervars(), createBranchingCons(), GCGmasterGetNPricedvars(), 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
-
gcg GCG data structure cons the constraint that should be added pos the 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
-
gcg GCG data structure sol pointer 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
-
gcg GCG data structure name name of solver desc description of solver priority priority of solver heurenabled flag to indicate whether heuristic solving method of the solver is enabled exactenabled flag 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 solverdata pricing 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 | ) |
returns the available pricing solvers
- Parameters
-
gcg GCG data structure
Definition at line 5802 of file pricer_gcg.cpp.
References assert(), GCGgetObjPricer(), GCGpricerGetSolvers(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::solvers.
Referenced by GCGpricerGetSolvers(), GCGpricerIncludeSolver(), GCGpricingjobNextSolver(), GCGpricingjobResetSolver(), and gcg::Pricingcontroller::initSol().
◆ GCGpricerGetNSolvers()
| GCG_EXPORT int GCGpricerGetNSolvers | ( | GCG * | gcg | ) |
returns the number of available pricing solvers
- Parameters
-
gcg GCG data structure
Definition at line 5820 of file pricer_gcg.cpp.
References assert(), GCGgetObjPricer(), GCGpricerGetNSolvers(), ObjPricerGcg::getPricerdata(), and SCIP_PricerData::nsolvers.
Referenced by GCGpricerGetNSolvers(), GCGpricerIncludeSolver(), GCGpricingjobNextSolver(), GCGpricingjobResetSolver(), gcg::Pricingcontroller::initPricing(), and gcg::Pricingcontroller::initSol().
◆ GCGpricerPrintListOfSolvers()
| GCG_EXPORT void GCGpricerPrintListOfSolvers | ( | GCG * | gcg | ) |
writes out a list of all pricing problem solvers
- Parameters
-
gcg GCG data structure
Definition at line 5838 of file pricer_gcg.cpp.
References assert(), GCGgetMasterprob(), GCGgetObjPricer(), GCGpricerPrintListOfSolvers(), GCGsolverGetDesc(), GCGsolverGetName(), GCGsolverGetPriority(), GCGsolverIsExactEnabled(), GCGsolverIsHeurEnabled(), ObjPricerGcg::getPricerdata(), i, masterprob, SCIP_PricerData::nsolvers, and SCIP_PricerData::solvers.
Referenced by GCGpricerIncludeSolver(), GCGpricerPrintListOfSolvers(), and SCIP_DECL_DIALOGEXEC().
◆ GCGpricerPrintPricingStatistics()
| GCG_EXPORT void GCGpricerPrintPricingStatistics | ( | GCG * | gcg, |
| FILE * | file ) |
prints pricing solver statistics
- Parameters
-
gcg GCG data structure file output file
Definition at line 5875 of file pricer_gcg.cpp.
References assert(), GCGgetMasterprob(), GCGgetObjPricer(), GCGpricerPrintPricingStatistics(), GCGsolverGetHeurFarkasCalls(), GCGsolverGetHeurFarkasTime(), GCGsolverGetHeurRedcostCalls(), GCGsolverGetHeurRedcostTime(), GCGsolverGetName(), GCGsolverGetOptFarkasCalls(), GCGsolverGetOptFarkasTime(), GCGsolverGetOptRedcostCalls(), GCGsolverGetOptRedcostTime(), ObjPricerGcg::getPricerdata(), i, masterprob, SCIP_PricerData::nsolvers, and SCIP_PricerData::solvers.
Referenced by GCGpricerIncludeSolver(), GCGpricerPrintPricingStatistics(), and GCGprintStatistics().
◆ GCGpricerPrintStatistics()
| GCG_EXPORT void GCGpricerPrintStatistics | ( | GCG * | gcg, |
| FILE * | file ) |
prints pricer statistics
- Parameters
-
gcg GCG data structure file output file
Definition at line 5916 of file pricer_gcg.cpp.
References assert(), SCIP_PricerData::calls, ObjPricerGcg::computeDualDiff(), SCIP_PricerData::duplicatecolclock, SCIP_PricerData::farkascallsdist, SCIP_PricerData::farkasfoundvars, SCIP_PricerData::farkasnodetimedist, SCIP_PricerData::freeclock, GCGgetMasterprob(), GCGgetObjPricer(), GCGpricerPrintStatistics(), PricingType::getCalls(), PricingType::getClockTime(), ObjPricerGcg::getFarkasPricing(), ObjPricerGcg::getPricerdata(), ObjPricerGcg::getReducedCostPricing(), i, masterprob, SCIP_PricerData::nduplicatecols, SCIP_PricerData::npricingprobs, PRICER_STAT_ARRAYLEN_TIME, PRICER_STAT_ARRAYLEN_VARS, PRICER_STAT_BUCKETSIZE_TIME, PRICER_STAT_BUCKETSIZE_VARS, SCIP_PricerData::redcostcallsdist, SCIP_PricerData::redcostfoundvars, SCIP_PricerData::redcostnodetimedist, SCIP_PricerData::solvedsubmipsheur, SCIP_PricerData::solvedsubmipsoptimal, and SCIP_PricerData::transformclock.
Referenced by GCGpricerIncludeSolver(), GCGpricerPrintStatistics(), and SCIP_DECL_DIALOGEXEC().
◆ GCGpricerExistRays()
| GCG_EXPORT SCIP_RETCODE GCGpricerExistRays | ( | GCG * | gcg, |
| SCIP_Bool * | exist ) |
method to get existence of rays
- Parameters
-
gcg GCG data structure exist pointer 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
-
gcg GCG data structure probnr index 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
-
gcg GCG data structure probnr index 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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG data structure col priced 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
-
gcg GCG data structure col priced col added pointer 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
-
gcg GCG data structure origsol the solution that should be transferred stored pointer 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()
| GCG_EXPORT SCIP_RETCODE GCGmasterCreateInitialMastervars | ( | GCG * | gcg | ) |
create initial master variables
- Parameters
-
gcg GCG data structure
Definition at line 6484 of file pricer_gcg.cpp.
References assert(), GCGcreateInitialMasterVar(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGgetOrigprob(), GCGlinkingVarGetLinkingConss(), GCGmasterCreateInitialMastervars(), GCGoriginalVarAddMasterVar(), GCGoriginalVarGetCoefs(), GCGoriginalVarGetMasterconss(), GCGoriginalVarGetNCoefs(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsOriginal(), i, masterprob, nvars, origprob, SCIP_CALL(), var, and vars.
Referenced by createMaster(), GCGmasterCreateInitialMastervars(), and GCGpricerIncludeSolver().
◆ GCGmasterGetDegeneracy()
| GCG_EXPORT SCIP_Real GCGmasterGetDegeneracy | ( | GCG * | gcg | ) |
get root node degeneracy
- Parameters
-
gcg GCG data structure
Definition at line 6570 of file pricer_gcg.cpp.
References assert(), SCIP_PricerData::avgrootnodedegeneracy, GCGgetMasterprob(), GCGgetObjPricer(), GCGisRootNode(), GCGmasterGetDegeneracy(), ObjPricerGcg::getPricerdata(), and masterprob.
Referenced by GCGgetDegeneracy(), GCGmasterGetDegeneracy(), and GCGpricerIncludeSolver().
◆ GCGmasterIsCurrentSolValid()
| GCG_EXPORT SCIP_Bool GCGmasterIsCurrentSolValid | ( | GCG * | gcg | ) |
return if artifical variables are used in current solution
check if current sol is valid
- Parameters
-
gcg GCG data structure
Definition at line 6596 of file pricer_gcg.cpp.
References SCIP_PricerData::artificialvars, assert(), GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), GCGmasterIsCurrentSolValid(), ObjPricerGcg::getPricerdata(), i, masterprob, SCIP_PricerData::nartificialvars, sol, and solval.
Referenced by GCGmasterIsCurrentSolValid(), GCGpricerIncludeSolver(), relaxExecGcgDantzigWolfe(), SCIP_DECL_PRICERREDCOST(), solveMasterProblem(), and solveMasterProblemAndEvaluate().
◆ GCGmasterIsBestsolValid()
| GCG_EXPORT SCIP_Bool GCGmasterIsBestsolValid | ( | GCG * | gcg | ) |
- Parameters
-
gcg GCG data structure
Definition at line 6641 of file pricer_gcg.cpp.
References SCIP_PricerData::artificialvars, assert(), GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), GCGmasterIsBestsolValid(), ObjPricerGcg::getPricerdata(), i, masterprob, SCIP_PricerData::nartificialvars, sol, and solval.
Referenced by GCGgetPrimalbound(), GCGmasterIsBestsolValid(), GCGpricerIncludeSolver(), relaxExecGcgDantzigWolfe(), and solveMasterProblemAndEvaluate().
◆ GCGmasterIsSolValid()
| GCG_EXPORT SCIP_Bool GCGmasterIsSolValid | ( | GCG * | gcg, |
| SCIP_SOL * | mastersol ) |
- Parameters
-
gcg GCG data structure mastersol solution of the master problem, or NULL for current LP solution
Definition at line 6681 of file pricer_gcg.cpp.
References SCIP_PricerData::artificialvars, assert(), GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), GCGmasterIsSolValid(), ObjPricerGcg::getPricerdata(), i, masterprob, SCIP_PricerData::nartificialvars, and solval.
Referenced by GCGmasterIsSolValid(), GCGpricerIncludeSolver(), GCGrelaxUpdateCurrentSol(), GCGtransformMastersolToOrigsol(), and SCIP_DECL_EVENTEXEC().
◆ GCGmasterGetPricingSimplexIters()
| GCG_EXPORT SCIP_Longint GCGmasterGetPricingSimplexIters | ( | GCG * | gcg | ) |
get number of iterations in pricing problems
- Parameters
-
gcg GCG 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 ) |
print simplex iteration statistics
- Parameters
-
gcg GCG data structure file output file
Definition at line 6736 of file pricer_gcg.cpp.
References assert(), GCGgetMasterprob(), GCGgetObjPricer(), GCGmasterPrintSimplexIters(), ObjPricerGcg::getOrigprob(), ObjPricerGcg::getPricerdata(), masterprob, and SCIP_PricerData::pricingiters.
Referenced by GCGmasterPrintSimplexIters(), GCGpricerIncludeSolver(), and GCGprintStatistics().
◆ GCGsetPricingObjs()
| GCG_EXPORT SCIP_RETCODE GCGsetPricingObjs | ( | GCG * | gcg, |
| SCIP_Real * | dualsolconv ) |
set pricing objectives
- Parameters
-
gcg GCG data structure dualsolconv array of dual solutions corresponding to convexity constraints
Definition at line 4318 of file pricer_gcg.cpp.
References assert(), SCIP_PricerData::dualsolconv, GCGgetObjPricer(), GCGsetPricingObjs(), ObjPricerGcg::getReducedCostPricingNonConst(), i, SCIP_PricerData::npricingprobs, ObjPricerGcg::pricerdata, SCIP_CALL(), ObjPricerGcg::setPricingObjs(), and SCIP_PricerData::stabilization.
Referenced by GCGpricerIncludeSolver(), GCGsetPricingObjs(), and SCIP_DECL_SEPAEXECLP().
◆ GCGsetPricingObjDualWeight()
| GCG_EXPORT void GCGsetPricingObjDualWeight | ( | GCG * | gcg, |
| SCIP_Real | dualweight ) |
sets the dual weight for the pricing objective
- Parameters
-
gcg GCG data structure dualweight the 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
-
gcg GCG data structure weights the Lagrangian relaxation weight applied to the master constraints weightids the constraint ids for the relaxation weights nweights the 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
-
gcg GCG data structure infarkas in Farkas pricing? gcgcol GCG column data structure force should the given variable be added also if it has non-negative reduced cost? added pointer to store whether the variable was successfully added addedvar pointer to store the created variable score score of column (or -1.0 if not specified)
Definition at line 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
-
gcg GCG data structure infarkas in Farkas pricing? gcgcol gcg column to compute reduced cost for objvalptr pointer 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
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
-
gcg GCG data structure name name of pricing callback plugin desc description of pricing callback plugin priority priority 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 pricingcbdata pricing 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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG data structure name the 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
-
gcg GCG 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
-
gcg GCG 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
-
masterprob SCIP 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
-
gcg GCG data structure probnr number 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
-
gcg GCG data structure probnr number 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().