Detailed Description
Definition at line 55 of file class_pricingcontroller.h.
#include <class_pricingcontroller.h>
Constructor & Destructor Documentation
◆ Pricingcontroller() [1/2]
| gcg::Pricingcontroller::Pricingcontroller | ( | ) |
default constructor
◆ Pricingcontroller() [2/2]
| gcg::Pricingcontroller::Pricingcontroller | ( | GCG * | gcgstruct | ) |
constructor
- Parameters
-
gcgstruct GCG data structure
Definition at line 85 of file class_pricingcontroller.cpp.
References DEFAULT_CHUNKSIZE, DEFAULT_EAGERFREQ, DEFAULT_NROUNDSCOL, DEFAULT_SORTING, GCGgetMasterprob(), GCGgetOrigprob(), and NULL.
◆ ~Pricingcontroller()
|
virtual |
destructor
Definition at line 117 of file class_pricingcontroller.cpp.
Member Function Documentation
◆ addParameters()
| SCIP_RETCODE gcg::Pricingcontroller::addParameters | ( | ) |
Definition at line 121 of file class_pricingcontroller.cpp.
References DEFAULT_CHUNKSIZE, DEFAULT_EAGERFREQ, DEFAULT_HEURPRICINGITERS, DEFAULT_MAXHEURDEPTH, DEFAULT_NROUNDSCOL, DEFAULT_SORTING, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddCharParam(), SCIPaddIntParam(), and TRUE.
Referenced by ObjPricerGcg::createPricingcontroller().
◆ initSol()
| SCIP_RETCODE gcg::Pricingcontroller::initSol | ( | ) |
Definition at line 279 of file class_pricingcontroller.cpp.
References GCGgetNPricingprobs(), GCGgetNRelPricingprobs(), GCGgetPricingprob(), GCGisPricingprobRelevant(), GCGpqueueCreate(), GCGpricerGetNSolvers(), GCGpricerGetSolvers(), GCGpricingjobCreate(), GCGpricingprobCreate(), GCGsolverIsExactEnabled(), GCGsolverIsHeurEnabled(), MIN, NULL, SCIP_CALL_EXC, SCIP_OKAY, SCIP_Real, SCIPallocBlockMemoryArray, SCIPcalcMemGrowSize(), and SCIPceil().
◆ exitSol()
| SCIP_RETCODE gcg::Pricingcontroller::exitSol | ( | ) |
Definition at line 325 of file class_pricingcontroller.cpp.
References GCGpqueueFree(), GCGpricingjobFree(), GCGpricingprobFree(), SCIP_OKAY, and SCIPfreeBlockMemoryArray.
◆ initPricing()
| SCIP_RETCODE gcg::Pricingcontroller::initPricing | ( | PricingType * | pricingtype | ) |
pricing initialization, called right at the beginning of pricing
- Parameters
-
pricingtype type of pricing
Definition at line 344 of file class_pricingcontroller.cpp.
References GCGpricerGetNSolvers(), GCGpricingprobGetNGenericBranchconss(), GCGpricingprobInitPricing(), MIN, SCIP_CALL, SCIP_Longint, SCIP_OKAY, and SCIPdebugMessage.
Referenced by ObjPricerGcg::priceNewVariables().
◆ exitPricing()
| void gcg::Pricingcontroller::exitPricing | ( | ) |
pricing deinitialization, called when pricing is finished
Definition at line 373 of file class_pricingcontroller.cpp.
References GCGpricingprobExitPricing(), and NULL.
Referenced by ObjPricerGcg::priceNewVariables().
◆ setupPriorityQueue()
| SCIP_RETCODE gcg::Pricingcontroller::setupPriorityQueue | ( | SCIP_Real * | dualsolconv | ) |
setup the priority queue (done once per stabilization round): add all pricing jobs to be performed
- Parameters
-
dualsolconv dual solution values / Farkas coefficients of convexity constraints
Definition at line 382 of file class_pricingcontroller.cpp.
References GCGpqueueClear(), GCGpqueueInsert(), GCGpricerGetNPointsProb(), GCGpricerGetNRaysProb(), GCGpricingjobGetChunk(), GCGpricingjobGetPricingprob(), GCGpricingjobSetup(), GCGpricingprobGetProbnr(), GCGpricingprobReset(), SCIP_CALL_EXC, SCIP_OKAY, SCIPdebugMessage, SCIPgetCurrentNode(), and SCIPnodeGetDepth().
Referenced by ObjPricerGcg::pricingLoop().
◆ getNextPricingjob()
| GCG_PRICINGJOB * gcg::Pricingcontroller::getNextPricingjob | ( | ) |
get the next pricing job to be performed
Definition at line 414 of file class_pricingcontroller.cpp.
References GCGpqueueRemove(), GCGpricingjobGetPricingprob(), NULL, and SCIPisStopped().
Referenced by ObjPricerGcg::pricingLoop().
◆ pricingprobNextBranchcons()
| SCIP_RETCODE gcg::Pricingcontroller::pricingprobNextBranchcons | ( | GCG_PRICINGPROB * | pricingprob | ) |
add the information that the next branching constraint must be added, and for the pricing job, reset heuristic pricing counter and flag
- Parameters
-
pricingprob pricing problem structure
Definition at line 433 of file class_pricingcontroller.cpp.
References GCG_SET_LOCK, GCG_UNSET_LOCK, GCGpqueueResort(), GCGpricingjobGetPricingprob(), GCGpricingjobResetHeuristic(), GCGpricingprobNextBranchcons(), SCIP_CALL, and SCIP_OKAY.
Referenced by evaluatePricingjob().
◆ setPricingjobTimelimit()
| SCIP_RETCODE gcg::Pricingcontroller::setPricingjobTimelimit | ( | GCG_PRICINGJOB * | pricingjob | ) |
set an individual time limit for a pricing job
- Parameters
-
pricingjob pricing job
Definition at line 459 of file class_pricingcontroller.cpp.
References GCGpricingjobGetPricingprob(), GCGpricingprobGetPricingscip(), MAX, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPgetRealParam(), SCIPgetSolvingTime(), and SCIPsetRealParam().
Referenced by ObjPricerGcg::pricingLoop().
◆ updatePricingprob()
| void gcg::Pricingcontroller::updatePricingprob | ( | GCG_PRICINGPROB * | pricingprob, |
| GCG_PRICINGSTATUS | status, | ||
| SCIP_Real | lowerbound, | ||
| int | nimpcols | ||
| ) |
update solution information of a pricing problem
- Parameters
-
pricingprob pricing problem structure status new pricing status lowerbound new lower bound nimpcols number of new improving columns
Definition at line 478 of file class_pricingcontroller.cpp.
References GCGpricingprobUpdate().
Referenced by ObjPricerGcg::pricingLoop().
◆ updatePricingjobSolvingStats()
| void gcg::Pricingcontroller::updatePricingjobSolvingStats | ( | GCG_PRICINGJOB * | pricingjob | ) |
◆ evaluatePricingjob()
| void gcg::Pricingcontroller::evaluatePricingjob | ( | GCG_PRICINGJOB * | pricingjob, |
| GCG_PRICINGSTATUS | status | ||
| ) |
decide whether a pricing job must be treated again
- Parameters
-
pricingjob pricing job status status of pricing job
Definition at line 489 of file class_pricingcontroller.cpp.
References GCG_PRICINGSTATUS_NOTAPPLICABLE, GCG_PRICINGSTATUS_OPTIMAL, GCG_PRICINGSTATUS_SOLVERLIMIT, GCG_PRICINGSTATUS_UNKNOWN, GCG_SET_LOCK, GCG_UNSET_LOCK, GCGpqueueInsert(), GCGpricingjobGetNHeurIters(), GCGpricingjobGetPricingprob(), GCGpricingjobGetSolver(), GCGpricingjobIncreaseNHeurIters(), GCGpricingjobIsHeuristic(), GCGpricingjobNextSolver(), GCGpricingjobResetHeuristic(), GCGpricingjobSetExact(), GCGpricingprobGetProbnr(), GCGsolverGetName(), NULL, pricingprobNextBranchcons(), SCIP_Bool, SCIP_CALL_EXC, and SCIPdebugMessage.
Referenced by ObjPricerGcg::pricingLoop().
◆ collectResults()
| void gcg::Pricingcontroller::collectResults | ( | GCG_COL ** | bestcols, |
| SCIP_Real * | dualsolconv, | ||
| SCIP_Bool | stabilized, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | optimal, | ||
| SCIP_Real * | bestobjvals, | ||
| SCIP_Real * | beststabobj, | ||
| SCIP_Real * | bestredcost, | ||
| SCIP_Bool * | bestredcostvalid | ||
| ) |
collect solution results from all pricing problems
- Parameters
-
bestcols best found columns per pricing problem dualsolconv dual solution values of convexity constraints stabilized whether the pricing was stabilized infeasible pointer to store whether pricing is infeasible optimal pointer to store whether all pricing problems were solved to optimality bestobjvals array to store best lower bounds beststabobj pointer to store total lower bound bestredcost pointer to store best total reduced cost bestredcostvalid pointer to store whether best reduced cost is valid
Definition at line 565 of file class_pricingcontroller.cpp.
References ABS, FALSE, GCG_PRICETYPE_FARKAS, GCG_PRICINGSTATUS_INFEASIBLE, GCG_PRICINGSTATUS_OPTIMAL, GCGcolGetRedcost(), GCGgetNIdenticalBlocks(), GCGgetNPricingprobs(), GCGpricingprobGetLowerbound(), GCGpricingprobGetNImpCols(), GCGpricingprobGetProbnr(), GCGpricingprobGetStatus(), PricingType::getType(), NULL, SCIP_Bool, SCIP_Real, SCIP_STATUS_OPTIMAL, SCIPgetStatus(), SCIPinfinity(), SCIPisFeasEQ(), SCIPisInfinity(), and TRUE.
Referenced by ObjPricerGcg::pricingLoop().
◆ checkNextChunk()
| SCIP_Bool gcg::Pricingcontroller::checkNextChunk | ( | ) |
check if the next chunk of pricing problems is to be used
Definition at line 631 of file class_pricingcontroller.cpp.
References FALSE, SCIP_Bool, SCIPdebugMessage, and TRUE.
Referenced by ObjPricerGcg::pricingLoop().
◆ canPricingloopBeAborted()
| SCIP_Bool gcg::Pricingcontroller::canPricingloopBeAborted | ( | PricingType * | pricingtype, |
| int | nfoundcols, | ||
| int | nsuccessfulprobs | ||
| ) | const |
decide whether the pricing loop can be aborted
- Parameters
-
pricingtype type of pricing (reduced cost or Farkas) nfoundcols number of negative reduced cost columns found so far nsuccessfulprobs number of pricing problems solved successfully so far
Definition at line 649 of file class_pricingcontroller.cpp.
References FALSE, GCGgetNRelPricingprobs(), PricingType::getMaxcolsround(), PricingType::getRelmaxprobs(), PricingType::getRelmaxsuccessfulprobs(), and SCIP_Bool.
Referenced by ObjPricerGcg::pricingLoop().
◆ resetEagerage()
| void gcg::Pricingcontroller::resetEagerage | ( | ) |
Definition at line 670 of file class_pricingcontroller.cpp.
Referenced by ObjPricerGcg::priceNewVariables().
◆ increaseEagerage()
| void gcg::Pricingcontroller::increaseEagerage | ( | ) |
Definition at line 675 of file class_pricingcontroller.cpp.
◆ getPricingprob()
| GCG_PRICINGPROB * gcg::Pricingcontroller::getPricingprob | ( | int | probnr | ) |
for a given problem index, get the corresponding pricing problem (or NULL, if it does not exist)
- Parameters
-
probnr index of the pricing problem
Definition at line 684 of file class_pricingcontroller.cpp.
References GCGpricingprobGetProbnr(), and NULL.
Referenced by ObjPricerGcg::computeRedCostGcgCol().
◆ getMaxNIters()
| int gcg::Pricingcontroller::getMaxNIters | ( | ) | const |
get maximal possible number of pricing iterations
Definition at line 696 of file class_pricingcontroller.cpp.