Detailed Description
Definition at line 48 of file class_pricingtype.h.
#include <class_pricingtype.h>
Public Member Functions | |
| PricingType ()=delete | |
| PricingType (GCG *gcgstruct) | |
| virtual | ~PricingType () |
| virtual SCIP_Real | consGetDual (SCIP_CONS *cons) const =0 |
| virtual SCIP_Real | rowGetDual (SCIP_ROW *row) const =0 |
| virtual SCIP_Real | extendedmasterconsGetDual (GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata) 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 | |
| GCG * | gcg |
| SCIP * | masterprob |
| 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]
|
delete |
constructor
◆ PricingType() [2/2]
| PricingType::PricingType | ( | GCG * | gcgstruct | ) |
Definition at line 74 of file class_pricingtype.cpp.
References calls, clock, GCG_PRICETYPE_UNKNOWN, GCGgetMasterprob(), masterprob, maxcolsprob, maxcolsprobroot, maxcolsround, maxcolsroundroot, maxrounds, maxsuccessfulprobs, relmaxprobs, relmaxprobsroot, relmaxsuccessfulprobs, SCIP_CALL_EXC, SCIPcreateCPUClock(), and type.
◆ ~PricingType()
|
virtual |
destructor
Definition at line 98 of file class_pricingtype.cpp.
References clock, masterprob, NULL, SCIP_CALL_ABORT, and SCIPfreeClock().
Member Function Documentation
◆ consGetDual()
get dual value of a constraint
- Parameters
-
cons constraint to get dual for
Implemented in ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
Referenced by gcg::Stabilization::consGetDual(), gcg::Stabilization::convGetDual(), ObjPricerGcg::getConvconsDualsol(), ObjPricerGcg::getDualconvsum(), ObjPricerGcg::getStabilizedDualObjectiveValue(), gcg::Stabilization::linkingconsGetDual(), ObjPricerGcg::pricingLoop(), and ObjPricerGcg::setPricingObjs().
◆ rowGetDual()
get dual value of a row
- Parameters
-
row row to get dual value for
Implemented in ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), gcg::Stabilization::rowGetDual(), and ObjPricerGcg::setPricingObjs().
◆ extendedmasterconsGetDual()
|
pure virtual |
get dual value of an extended master cons
- Parameters
-
extendedmasterconsdata extended master cons data
Implemented in ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
Referenced by gcg::Stabilization::branchmasterconsGetDual(), ObjPricerGcg::computeRedCostGcgCol(), ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::pricingLoop(), and ObjPricerGcg::setPricingObjs().
◆ varGetObj()
get objective value of variable
- Parameters
-
var variable to get objective value for
Implemented in ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
Referenced by ObjPricerGcg::setPricingObjs().
◆ addParameters()
|
pure virtual |
adds parameters to the SCIP data structure
Implemented in ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
◆ startClock()
|
virtual |
starts the clock
Definition at line 105 of file class_pricingtype.cpp.
References clock, masterprob, SCIP_CALL, SCIP_OKAY, and SCIPstartClock().
◆ stopClock()
|
virtual |
stops the clock
Definition at line 111 of file class_pricingtype.cpp.
References clock, masterprob, SCIP_CALL, SCIP_OKAY, and SCIPstopClock().
◆ getClockTime()
|
virtual |
returns the time of the clock
Definition at line 117 of file class_pricingtype.cpp.
References clock, masterprob, SCIP_Real, and SCIPgetClockTime().
Referenced by GCGpricerPrintStatistics(), and ObjPricerGcg::pricingLoop().
◆ getMaxrounds()
|
inlinevirtual |
returns the maximal number of rounds
Definition at line 114 of file class_pricingtype.h.
References maxrounds.
◆ getMaxcolsround()
|
pure virtual |
returns the maximal number of columns per pricing round
Implemented in ReducedCostPricing, and FarkasPricing.
Referenced by gcg::Pricingcontroller::canPricingloopBeAborted(), and ObjPricerGcg::getMaxColsRound().
◆ getMaxcolsprob()
|
pure virtual |
returns the maximal number of columns per problem to be generated during pricing
Implemented in ReducedCostPricing, and FarkasPricing.
Referenced by ObjPricerGcg::getMaxColsProb().
◆ getMaxsuccessfulprobs()
|
inline |
returns the maximal number of successfully solved pricing problems
Definition at line 126 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 ReducedCostPricing, and FarkasPricing.
References SCIP_Real.
Referenced by gcg::Pricingcontroller::canPricingloopBeAborted().
◆ getRelmaxsuccessfulprobs()
|
inline |
returns the maximal percentage of pricing problems that need to be solved successfully
Definition at line 135 of file class_pricingtype.h.
References relmaxsuccessfulprobs, and SCIP_Real.
Referenced by gcg::Pricingcontroller::canPricingloopBeAborted().
◆ getType()
|
inline |
returns the type of this pricing type
Definition at line 141 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 147 of file class_pricingtype.h.
References calls.
Referenced by GCGpricerPrintStatistics(), and ObjPricerGcg::priceNewVariables().
◆ incCalls()
|
inlinevirtual |
increases the number of calls
Definition at line 153 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 159 of file class_pricingtype.h.
References calls, clock, masterprob, SCIP_CALL, SCIP_OKAY, and SCIPresetClock().
Field Documentation
◆ gcg
|
protected |
GCG data structure
Definition at line 51 of file class_pricingtype.h.
◆ masterprob
|
protected |
SCIP instance (master problem)
Definition at line 52 of file class_pricingtype.h.
Referenced by ReducedCostPricing::consGetDual(), FarkasPricing::consGetDual(), ReducedCostPricing::extendedmasterconsGetDual(), FarkasPricing::extendedmasterconsGetDual(), getClockTime(), PricingType(), resetCalls(), startClock(), stopClock(), and ~PricingType().
◆ type
|
protected |
type of pricing
Definition at line 53 of file class_pricingtype.h.
Referenced by FarkasPricing::FarkasPricing(), getType(), PricingType(), and ReducedCostPricing::ReducedCostPricing().
◆ clock
|
protected |
CPU clock
Definition at line 54 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 56 of file class_pricingtype.h.
Referenced by getCalls(), incCalls(), PricingType(), and resetCalls().
◆ maxrounds
|
protected |
maximal number of pricing rounds
Definition at line 57 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 58 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 59 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 60 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 61 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 62 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 64 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 66 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 68 of file class_pricingtype.h.
Referenced by ReducedCostPricing::addParameters(), getRelmaxsuccessfulprobs(), and PricingType().