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() [1/2]
PricingType::PricingType | ( | ) |
constructor
◆ PricingType() [2/2]
PricingType::PricingType | ( | SCIP * | p_scip | ) |
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()
|
virtual |
Member Function Documentation
◆ consGetDual()
|
pure virtual |
get dual value of a constraint
- Parameters
-
scip SCIP data structure cons constraint to get dual for
Implemented in FarkasPricing, and ReducedCostPricing.
Referenced by gcg::Stabilization::consGetDual(), gcg::Stabilization::convGetDual(), ObjPricerGcg::getConvconsDualsol(), ObjPricerGcg::getStabilizedDualObjectiveValue(), gcg::Stabilization::linkingconsGetDual(), and ObjPricerGcg::setPricingObjs().
◆ rowGetDual()
|
pure virtual |
get dual value of a row
- Parameters
-
row row to get dual value for
Implemented in FarkasPricing, and ReducedCostPricing.
Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), gcg::Stabilization::rowGetDual(), and ObjPricerGcg::setPricingObjs().
◆ varGetObj()
|
pure virtual |
get objective value of variable
- Parameters
-
var variable to get objective value for
Implemented in FarkasPricing, and ReducedCostPricing.
Referenced by ObjPricerGcg::setPricingObjs().
◆ addParameters()
|
pure virtual |
adds parameters to the SCIP data structure
Implemented in FarkasPricing, and ReducedCostPricing.
◆ startClock()
|
virtual |
◆ stopClock()
|
virtual |
◆ getClockTime()
|
virtual |
returns the time of the clock
Definition at line 115 of file class_pricingtype.cpp.
Referenced by GCGpricerPrintStatistics(), and ObjPricerGcg::pricingLoop().
◆ getMaxrounds()
|
inlinevirtual |
returns the maximal number of rounds
Definition at line 102 of file class_pricingtype.h.
References maxrounds.
◆ getMaxcolsround()
|
pure virtual |
returns the maximal number of columns per pricing round
Implemented in FarkasPricing, and ReducedCostPricing.
Referenced by gcg::Pricingcontroller::canPricingloopBeAborted().
◆ getMaxcolsprob()
|
pure virtual |
returns the maximal number of columns per problem to be generated during pricing
Implemented in FarkasPricing, and ReducedCostPricing.
◆ getMaxsuccessfulprobs()
|
inline |
returns the maximal number of successfully solved pricing problems
Definition at line 114 of file class_pricingtype.h.
References maxsuccessfulprobs.
◆ getRelmaxprobs()
|
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().
◆ getRelmaxsuccessfulprobs()
|
inline |
returns the maximal percentage of pricing problems that need to be solved successfully
Definition at line 123 of file class_pricingtype.h.
References relmaxsuccessfulprobs.
Referenced by gcg::Pricingcontroller::canPricingloopBeAborted().
◆ getType()
|
inline |
returns the type of this pricing type
Definition at line 129 of file class_pricingtype.h.
References type.
Referenced by gcg::Pricingcontroller::collectResults(), ObjPricerGcg::createNewMasterVar(), ObjPricerGcg::createNewMasterVarFromGcgCol(), ObjPricerGcg::priceNewVariables(), and ObjPricerGcg::pricingLoop().
◆ getCalls()
|
inline |
returns the number of calls so far
Definition at line 135 of file class_pricingtype.h.
References calls.
Referenced by GCGpricerPrintStatistics(), and ObjPricerGcg::priceNewVariables().
◆ incCalls()
|
inlinevirtual |
increases the number of calls
Definition at line 141 of file class_pricingtype.h.
References calls.
Referenced by ObjPricerGcg::priceNewVariables().
◆ resetCalls()
|
inline |
resets the number of calls and the clock for a restart
Definition at line 147 of file class_pricingtype.h.
Field Documentation
◆ scip_
|
protected |
SCIP instance (master problem)
Definition at line 44 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), FarkasPricing::addParameters(), getClockTime(), ReducedCostPricing::getMaxcolsprob(), ReducedCostPricing::getMaxcolsround(), ReducedCostPricing::getRelmaxprobs(), PricingType(), resetCalls(), startClock(), stopClock(), and ~PricingType().
◆ type
|
protected |
type of pricing
Definition at line 45 of file class_pricingtype.h.
Referenced by FarkasPricing::FarkasPricing(), getType(), PricingType(), and ReducedCostPricing::ReducedCostPricing().
◆ clock
|
protected |
CPU clock
Definition at line 46 of file class_pricingtype.h.
Referenced by getClockTime(), PricingType(), resetCalls(), startClock(), stopClock(), and ~PricingType().
◆ calls
|
protected |
number of times this type of pricing was called
Definition at line 48 of file class_pricingtype.h.
Referenced by getCalls(), incCalls(), PricingType(), and resetCalls().
◆ maxrounds
|
protected |
maximal number of pricing rounds
Definition at line 49 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), getMaxrounds(), and PricingType().
◆ maxcolsroundroot
|
protected |
maximal number of columns per pricing round at root node
Definition at line 50 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), ReducedCostPricing::getMaxcolsround(), and PricingType().
◆ maxcolsround
|
protected |
maximal number of columns per pricing round
Definition at line 51 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), FarkasPricing::addParameters(), ReducedCostPricing::getMaxcolsround(), FarkasPricing::getMaxcolsround(), and PricingType().
◆ maxcolsprobroot
|
protected |
maximal number of columns per problem to be generated at root node
Definition at line 52 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), ReducedCostPricing::getMaxcolsprob(), and PricingType().
◆ maxcolsprob
|
protected |
maximal number of columns per problem to be generated
Definition at line 53 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), FarkasPricing::addParameters(), ReducedCostPricing::getMaxcolsprob(), FarkasPricing::getMaxcolsprob(), and PricingType().
◆ maxsuccessfulprobs
|
protected |
maximal number of successfully solved pricing problems until pricing loop is aborted
Definition at line 54 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), getMaxsuccessfulprobs(), and PricingType().
◆ relmaxprobsroot
|
protected |
maximal percentage of pricing problems that are solved at root node if variables have already been found
Definition at line 56 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), ReducedCostPricing::getRelmaxprobs(), and PricingType().
◆ relmaxprobs
|
protected |
maximal percentage of pricing problems that are solved if variables have already been found
Definition at line 58 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), FarkasPricing::addParameters(), ReducedCostPricing::getRelmaxprobs(), FarkasPricing::getRelmaxprobs(), and PricingType().
◆ relmaxsuccessfulprobs
|
protected |
maximal percentage of pricing problems that need to be solved successfully
Definition at line 60 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), getRelmaxsuccessfulprobs(), and PricingType().