PricingType Class Referenceabstract

Detailed Description

Definition at line 41 of file class_pricingtype.h.

#include <class_pricingtype.h>

Public Member Functions

 PricingType ()
 
 PricingType (SCIP *p_scip)
 
virtual ~PricingType ()
 
virtual SCIP_Real consGetDual (SCIP *scip, SCIP_CONS *cons) const =0
 
virtual SCIP_Real rowGetDual (SCIP_ROW *row) const =0
 
virtual SCIP_Real varGetObj (SCIP_VAR *var) const =0
 
virtual SCIP_RETCODE addParameters ()=0
 
virtual SCIP_RETCODE startClock ()
 
virtual SCIP_RETCODE stopClock ()
 
virtual SCIP_Real getClockTime () const
 
virtual int getMaxrounds () const
 
virtual int getMaxcolsround () const =0
 
virtual int getMaxcolsprob () const =0
 
int getMaxsuccessfulprobs () const
 
virtual SCIP_Real getRelmaxprobs () const =0
 
SCIP_Real getRelmaxsuccessfulprobs () const
 
GCG_PRICETYPE getType () const
 
int getCalls () const
 
virtual void incCalls ()
 
SCIP_RETCODE resetCalls ()
 

Protected Attributes

SCIP * scip_
 
GCG_PRICETYPE type
 
SCIP_CLOCK * clock
 
int calls
 
int maxrounds
 
int maxcolsroundroot
 
int maxcolsround
 
int maxcolsprobroot
 
int maxcolsprob
 
int maxsuccessfulprobs
 
SCIP_Real relmaxprobsroot
 
SCIP_Real relmaxprobs
 
SCIP_Real relmaxsuccessfulprobs
 

Constructor & Destructor Documentation

PricingType::PricingType ( )

constructor

PricingType::PricingType ( SCIP *  p_scip)

< SCIP instance (master problem)

< type of pricing

< number of times this type of pricing was called

< maximal number of pricing rounds

< maximal number of columns per pricing round at root node

< maximal number of columns per pricing round

< maximal number of columns per problem to be generated at root node

< maximal number of columns per problem to be generated

< maximal number of successfully solved pricing problems until pricing loop is aborted

< maximal percentage of pricing problems that are solved at root node if variables have already been found

< maximal percentage of pricing problems that are solved if variables have already been found

< maximal percentage of successfully solved pricing problems until pricing loop is aborted

Definition at line 72 of file class_pricingtype.cpp.

References calls, clock, GCG_PRICETYPE_UNKNOWN, maxcolsprob, maxcolsprobroot, maxcolsround, maxcolsroundroot, maxrounds, maxsuccessfulprobs, relmaxprobs, relmaxprobsroot, relmaxsuccessfulprobs, scip_, SCIP_CALL_EXC, and type.

PricingType::~PricingType ( )
virtual

destructor

Definition at line 96 of file class_pricingtype.cpp.

References clock, and scip_.

Member Function Documentation

virtual SCIP_RETCODE PricingType::addParameters ( )
pure virtual

adds parameters to the SCIP data structure

Implemented in FarkasPricing, and ReducedCostPricing.

Referenced by FarkasPricing::~FarkasPricing(), and ReducedCostPricing::~ReducedCostPricing().

virtual SCIP_Real PricingType::consGetDual ( SCIP *  scip,
SCIP_CONS *  cons 
) const
pure virtual
int PricingType::getCalls ( ) const
inline

returns the number of calls so far

Definition at line 132 of file class_pricingtype.h.

References calls.

Referenced by GCGpricerPrintStatistics(), ObjPricerGcg::priceNewVariables(), SCIP_DECL_PRICERFARKAS(), and SCIP_DECL_PRICERREDCOST().

SCIP_Real PricingType::getClockTime ( ) const
virtual

returns the time of the clock

Definition at line 115 of file class_pricingtype.cpp.

References clock, and scip_.

Referenced by GCGpricerPrintStatistics(), and ObjPricerGcg::pricingLoop().

virtual int PricingType::getMaxcolsprob ( ) const
pure virtual

returns the maximal number of columns per problem to be generated during pricing

Implemented in FarkasPricing, and ReducedCostPricing.

Referenced by getMaxrounds(), FarkasPricing::~FarkasPricing(), and ReducedCostPricing::~ReducedCostPricing().

virtual int PricingType::getMaxcolsround ( ) const
pure virtual
virtual int PricingType::getMaxrounds ( ) const
inlinevirtual

returns the maximal number of rounds

Definition at line 99 of file class_pricingtype.h.

References getMaxcolsprob(), getMaxcolsround(), and maxrounds.

Referenced by SCIP_DECL_PRICERREDCOST().

int PricingType::getMaxsuccessfulprobs ( ) const
inline

returns the maximal number of successfully solved pricing problems

Definition at line 111 of file class_pricingtype.h.

References getRelmaxprobs(), and maxsuccessfulprobs.

virtual SCIP_Real PricingType::getRelmaxprobs ( ) const
pure virtual

returns the maximal percentage of pricing problems that are solved if variables have already been found

Implemented in FarkasPricing, and ReducedCostPricing.

Referenced by gcg::Pricingcontroller::canPricingloopBeAborted(), getMaxsuccessfulprobs(), FarkasPricing::~FarkasPricing(), and ReducedCostPricing::~ReducedCostPricing().

SCIP_Real PricingType::getRelmaxsuccessfulprobs ( ) const
inline

returns the maximal percentage of pricing problems that need to be solved successfully

Definition at line 120 of file class_pricingtype.h.

References relmaxsuccessfulprobs.

Referenced by gcg::Pricingcontroller::canPricingloopBeAborted().

GCG_PRICETYPE PricingType::getType ( ) const
inline
virtual void PricingType::incCalls ( )
inlinevirtual

increases the number of calls

Definition at line 138 of file class_pricingtype.h.

Referenced by ObjPricerGcg::priceNewVariables(), and SCIP_DECL_PRICERFARKAS().

SCIP_RETCODE PricingType::resetCalls ( )
inline

resets the number of calls and the clock for a restart

Definition at line 144 of file class_pricingtype.h.

Referenced by SCIP_DECL_PRICERINIT().

virtual SCIP_Real PricingType::rowGetDual ( SCIP_ROW *  row) const
pure virtual
SCIP_RETCODE PricingType::startClock ( )
virtual

starts the clock

Definition at line 103 of file class_pricingtype.cpp.

References clock, and scip_.

Referenced by SCIP_DECL_PRICERFARKAS(), and SCIP_DECL_PRICERREDCOST().

SCIP_RETCODE PricingType::stopClock ( )
virtual

stops the clock

Definition at line 109 of file class_pricingtype.cpp.

References clock, and scip_.

Referenced by SCIP_DECL_PRICERFARKAS(), and SCIP_DECL_PRICERREDCOST().

virtual SCIP_Real PricingType::varGetObj ( SCIP_VAR *  var) const
pure virtual

get objective value of variable

Parameters
varvariable to get objective value for

Implemented in FarkasPricing, and ReducedCostPricing.

Referenced by ObjPricerGcg::setPricingObjs(), FarkasPricing::~FarkasPricing(), and ReducedCostPricing::~ReducedCostPricing().

Member Data Documentation

int PricingType::calls
protected

Definition at line 48 of file class_pricingtype.h.

Referenced by getCalls(), and PricingType().

SCIP_CLOCK* PricingType::clock
protected

Definition at line 46 of file class_pricingtype.h.

Referenced by getClockTime(), PricingType(), startClock(), stopClock(), and ~PricingType().

int PricingType::maxcolsprobroot
protected
int PricingType::maxcolsroundroot
protected
int PricingType::maxrounds
protected
int PricingType::maxsuccessfulprobs
protected
SCIP_Real PricingType::relmaxprobsroot
protected
SCIP_Real PricingType::relmaxsuccessfulprobs
protected

maximal percentage of pricing problems that need to be solved successfully

Definition at line 57 of file class_pricingtype.h.

Referenced by ReducedCostPricing::addParameters(), getRelmaxsuccessfulprobs(), and PricingType().

GCG_PRICETYPE PricingType::type
protected