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, 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
-
gcg GCG 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
-
gcg GCG 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
-
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 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
-
gcg GCG data structure sol pointer 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
-
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 solverdata pricing solver data
References SCIP_Bool, SCIP_Longint, and SCIP_Real.
◆ 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 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
-
gcg GCG 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 | ) |
writes out a list of all pricing problem solvers
- Parameters
-
gcg GCG data structure
Definition at line 5838 of file pricer_gcg.cpp.
References GCGgetMasterprob(), GCGgetObjPricer(), GCGsolverGetDesc(), GCGsolverGetName(), GCGsolverGetPriority(), GCGsolverIsExactEnabled(), GCGsolverIsHeurEnabled(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nsolvers, NULL, SCIPdialogMessage(), and SCIP_PricerData::solvers.
Referenced by 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 GCGgetMasterprob(), GCGgetObjPricer(), GCGsolverGetHeurFarkasCalls(), GCGsolverGetHeurFarkasTime(), GCGsolverGetHeurRedcostCalls(), GCGsolverGetHeurRedcostTime(), GCGsolverGetName(), GCGsolverGetOptFarkasCalls(), GCGsolverGetOptFarkasTime(), GCGsolverGetOptRedcostCalls(), GCGsolverGetOptRedcostTime(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nsolvers, NULL, SCIPgetMessagehdlr(), SCIPmessageFPrintInfo(), and SCIP_PricerData::solvers.
Referenced by 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 SCIP_PricerData::calls, ObjPricerGcg::computeDualDiff(), SCIP_PricerData::duplicatecolclock, SCIP_PricerData::farkascallsdist, SCIP_PricerData::farkasfoundvars, SCIP_PricerData::farkasnodetimedist, SCIP_PricerData::freeclock, GCGgetMasterprob(), GCGgetObjPricer(), PricingType::getCalls(), PricingType::getClockTime(), ObjPricerGcg::getFarkasPricing(), ObjPricerGcg::getPricerdata(), ObjPricerGcg::getReducedCostPricing(), SCIP_PricerData::nduplicatecols, SCIP_PricerData::npricingprobs, NULL, 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_Real, SCIPgetClockTime(), SCIPgetMessagehdlr(), SCIPmessageFPrintInfo(), SCIP_PricerData::solvedsubmipsheur, SCIP_PricerData::solvedsubmipsoptimal, and SCIP_PricerData::transformclock.
Referenced by 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 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
-
gcg GCG data structure probnr index 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
-
gcg GCG data structure probnr index 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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG data structure col priced 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
-
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(), 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
-
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 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()
| 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 GCGcreateInitialMasterVar(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGgetOrigprob(), GCGlinkingVarGetLinkingConss(), GCGoriginalVarAddMasterVar(), GCGoriginalVarGetCoefs(), GCGoriginalVarGetMasterconss(), GCGoriginalVarGetNCoefs(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsOriginal(), NULL, GCG_MastervarKey::nvars, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPaddVar(), SCIPgetNVars(), SCIPgetVars(), SCIPisZero(), SCIPreleaseVar(), and GCG_MastervarKey::vars.
Referenced by createMaster().
◆ 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 SCIP_PricerData::avgrootnodedegeneracy, GCGgetMasterprob(), GCGgetObjPricer(), GCGisRootNode(), ObjPricerGcg::getPricerdata(), NULL, SCIP_Real, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_SOLVING, SCIPgetStage(), and SCIPinfinity().
Referenced by GCGgetDegeneracy().
◆ 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, FALSE, GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nartificialvars, NULL, SCIP_Bool, SCIP_Real, SCIP_STAGE_SOLVING, SCIP_STATUS_OPTIMAL, SCIPgetBestSol(), SCIPgetSolVal(), SCIPgetStage(), SCIPgetStatus(), SCIPisPositive(), and TRUE.
Referenced by 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, FALSE, GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nartificialvars, NULL, SCIP_Bool, SCIP_Real, SCIPgetBestSol(), SCIPgetSolVal(), SCIPisPositive(), and TRUE.
Referenced by GCGgetPrimalbound(), 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, FALSE, GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nartificialvars, NULL, SCIP_Bool, SCIP_Real, SCIPgetSolVal(), SCIPisPositive(), and TRUE.
Referenced by 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 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 | ||
| ) |
print simplex iteration statistics
- Parameters
-
gcg GCG data structure file output file
Definition at line 6736 of file pricer_gcg.cpp.
References GCGgetMasterprob(), GCGgetObjPricer(), ObjPricerGcg::getOrigprob(), ObjPricerGcg::getPricerdata(), NULL, SCIP_PricerData::pricingiters, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPgetMessagehdlr(), SCIPgetNLPIterations(), SCIPgetStage(), and SCIPmessageFPrintInfo().
Referenced by 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 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
-
gcg GCG data structure dualweight the 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
-
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 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
-
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 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
-
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 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
-
gcg GCG data structure gcgcol GCG 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
-
gcg GCG data structure name name of pricing callback plugin desc description of pricing callback plugin priority priority of pricing callback plugin pricingcbdata pricing 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
-
gcg GCG 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
-
gcg GCG 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
-
gcg GCG data structure name the 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
-
gcg GCG 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
-
gcg GCG 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
-
masterprob SCIP 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
-
gcg GCG data structure probnr number 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
-
gcg GCG data structure probnr number of pricing problem
Definition at line 6875 of file pricer_gcg.cpp.
References GCGgetObjPricer(), ObjPricerGcg::getPricerdata(), SCIP_PricerData::nappliedpricingmods, and NULL.
Referenced by GCGcreateGcgCol().