GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
Pricingcontroller Class Reference

Detailed Description

Definition at line 55 of file class_pricingcontroller.h.

#include <class_pricingcontroller.h>

Public Member Functions

 Pricingcontroller ()
 Pricingcontroller (GCG *gcgstruct)
virtual ~Pricingcontroller ()
SCIP_RETCODE addParameters ()
SCIP_RETCODE initSol ()
SCIP_RETCODE exitSol ()
SCIP_RETCODE initPricing (PricingType *pricingtype)
void exitPricing ()
SCIP_RETCODE setupPriorityQueue (SCIP_Real *dualsolconv)
GCG_PRICINGJOB * getNextPricingjob ()
SCIP_RETCODE pricingprobNextBranchcons (GCG_PRICINGPROB *pricingprob)
SCIP_RETCODE setPricingjobTimelimit (GCG_PRICINGJOB *pricingjob)
void updatePricingprob (GCG_PRICINGPROB *pricingprob, GCG_PRICINGSTATUS status, SCIP_Real lowerbound, int nimpcols)
void updatePricingjobSolvingStats (GCG_PRICINGJOB *pricingjob)
void evaluatePricingjob (GCG_PRICINGJOB *pricingjob, GCG_PRICINGSTATUS status)
void 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)
SCIP_Bool checkNextChunk ()
SCIP_Bool canPricingloopBeAborted (PricingType *pricingtype, int nfoundcols, int nsuccessfulprobs) const
void resetEagerage ()
void increaseEagerage ()
GCG_PRICINGPROB * getPricingprob (int probnr)
int getMaxNIters () const

Constructor & Destructor Documentation

◆ Pricingcontroller() [1/2]

◆ Pricingcontroller() [2/2]

constructor

Parameters
gcgstructGCG data structure

Definition at line 85 of file class_pricingcontroller.cpp.

◆ ~Pricingcontroller()

destructor

Definition at line 117 of file class_pricingcontroller.cpp.

Member Function Documentation

◆ addParameters()

◆ initSol()

◆ exitSol()

◆ initPricing()

pricing initialization, called right at the beginning of pricing

Parameters
pricingtypetype of pricing

Definition at line 344 of file class_pricingcontroller.cpp.

◆ exitPricing()

pricing deinitialization, called when pricing is finished

Definition at line 373 of file class_pricingcontroller.cpp.

◆ setupPriorityQueue()

setup the priority queue (done once per stabilization round): add all pricing jobs to be performed

Parameters
dualsolconvdual solution values / Farkas coefficients of convexity constraints

Definition at line 382 of file class_pricingcontroller.cpp.

◆ getNextPricingjob()

get the next pricing job to be performed

Definition at line 414 of file class_pricingcontroller.cpp.

◆ pricingprobNextBranchcons()

add the information that the next branching constraint must be added, and for the pricing job, reset heuristic pricing counter and flag

Parameters
pricingprobpricing problem structure

Definition at line 433 of file class_pricingcontroller.cpp.

◆ setPricingjobTimelimit()

set an individual time limit for a pricing job

Parameters
pricingjobpricing job

Definition at line 459 of file class_pricingcontroller.cpp.

◆ updatePricingprob()

void gcg::Pricingcontroller::updatePricingprob ( GCG_PRICINGPROB * pricingprob,
GCG_PRICINGSTATUS status,
SCIP_Real lowerbound,
int nimpcols )

update solution information of a pricing problem

Parameters
pricingprobpricing problem structure
statusnew pricing status
lowerboundnew lower bound
nimpcolsnumber of new improving columns

Definition at line 478 of file class_pricingcontroller.cpp.

◆ updatePricingjobSolvingStats()

update solution statistics of a pricing job

Parameters
pricingjobpricing job

◆ evaluatePricingjob()

decide whether a pricing job must be treated again

Parameters
pricingjobpricing job
statusstatus of pricing job

Definition at line 489 of file class_pricingcontroller.cpp.

◆ 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
bestcolsbest found columns per pricing problem
dualsolconvdual solution values of convexity constraints
stabilizedwhether the pricing was stabilized
infeasiblepointer to store whether pricing is infeasible
optimalpointer to store whether all pricing problems were solved to optimality
bestobjvalsarray to store best lower bounds
beststabobjpointer to store total lower bound
bestredcostpointer to store best total reduced cost
bestredcostvalidpointer to store whether best reduced cost is valid

Definition at line 565 of file class_pricingcontroller.cpp.

◆ checkNextChunk()

check if the next chunk of pricing problems is to be used

Definition at line 631 of file class_pricingcontroller.cpp.

◆ canPricingloopBeAborted()

SCIP_Bool gcg::Pricingcontroller::canPricingloopBeAborted ( PricingType * pricingtype,
int nfoundcols,
int nsuccessfulprobs ) const

decide whether the pricing loop can be aborted

Parameters
pricingtypetype of pricing (reduced cost or Farkas)
nfoundcolsnumber of negative reduced cost columns found so far
nsuccessfulprobsnumber of pricing problems solved successfully so far

Definition at line 649 of file class_pricingcontroller.cpp.

◆ resetEagerage()

◆ increaseEagerage()

◆ getPricingprob()

for a given problem index, get the corresponding pricing problem (or NULL, if it does not exist)

Parameters
probnrindex of the pricing problem

Definition at line 684 of file class_pricingcontroller.cpp.

◆ getMaxNIters()

get maximal possible number of pricing iterations

Definition at line 696 of file class_pricingcontroller.cpp.