Scippy

GCG

Branch-and-Price & Column Generation for Everyone

gcg::Stabilization Class Reference

Detailed Description

Definition at line 52 of file class_stabilization.h.

#include <class_stabilization.h>

Public Member Functions

 Stabilization (GCG *gcgstruct, PricingType *pricingtype, SCIP_Bool hybridascent)
 
 Stabilization ()
 
virtual ~Stabilization ()
 
SCIP_RETCODE consGetDual (int i, SCIP_Real *dual)
 
SCIP_RETCODE rowGetDual (int i, SCIP_Real *dual)
 
SCIP_Real convGetDual (int i)
 
SCIP_Real branchmasterconsGetDual (int i)
 
SCIP_Real branchmasterconsGetStabCenter (int i)
 
SCIP_RETCODE updateStabilityCenter (SCIP_Real lowerbound, SCIP_Real *dualsolconv, GCG_COL **pricingcols)
 
void updateAlphaMisprice ()
 
void updateAlpha ()
 
SCIP_Bool isStabilized ()
 
void activateMispricingSchedule ()
 
void disablingMispricingSchedule ()
 
SCIP_Bool isInMispricingSchedule () const
 
SCIP_RETCODE setNLinkingconsvals (int nlinkingconssnew)
 
SCIP_RETCODE setNConvconsvals (int nconvconssnew)
 
SCIP_Real linkingconsGetDual (int i)
 
void updateNode ()
 
SCIP_RETCODE updateHybrid ()
 
SCIP_RETCODE updateSubgradientProduct (GCG_COL **pricingcols)
 
SCIP_RETCODE updateStabcenterextendedmasterconsvals ()
 
SCIP_Bool hasStabilityCenter () const
 

Constructor & Destructor Documentation

◆ Stabilization() [1/2]

gcg::Stabilization::Stabilization ( GCG *  gcgstruct,
PricingType *  pricingtype,
SCIP_Bool  hybridascent 
)

constructor

Parameters
gcgstructSCIP data structure
pricingtypethe pricing type when the stabilization should run
hybridascentenable hybridization of smoothing with an ascent method?

Definition at line 64 of file class_stabilization.cpp.

References FALSE, NULL, SCIP_Real, and SCIPinfinity().

◆ Stabilization() [2/2]

gcg::Stabilization::Stabilization ( )

constructor

References SCIP_Bool, and SCIP_Real.

◆ ~Stabilization()

gcg::Stabilization::~Stabilization ( )
virtual

destructor

Definition at line 83 of file class_stabilization.cpp.

References NULL, SCIP_Real, and SCIPfreeBlockMemoryArrayNull.

Member Function Documentation

◆ consGetDual()

SCIP_RETCODE gcg::Stabilization::consGetDual ( int  i,
SCIP_Real *  dual 
)

gets the stabilized dual solution of constraint at position i

Parameters
iindex of the constraint
dualreturn pointer for dual value

Definition at line 317 of file class_stabilization.cpp.

References PricingType::consGetDual(), GCGgetMasterConss(), GCGgetNMasterConss(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPgetLhsLinear(), and SCIPgetRhsLinear().

Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::setPricingObjs(), and updateStabilityCenter().

◆ rowGetDual()

SCIP_RETCODE gcg::Stabilization::rowGetDual ( int  i,
SCIP_Real *  dual 
)

gets the stabilized dual solution of cut at position i

Parameters
iindex of the row
dualreturn pointer for dual value

Definition at line 354 of file class_stabilization.cpp.

References GCGsepaGetNOriginalSepaCuts(), GCGsepaGetOriginalSepaMastercuts(), NULL, PricingType::rowGetDual(), SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIProwGetLhs(), and SCIProwGetRhs().

Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::setPricingObjs(), and updateStabilityCenter().

◆ convGetDual()

SCIP_Real gcg::Stabilization::convGetDual ( int  i)

gets the stabilized dual of the convexity constraint at position i

Definition at line 394 of file class_stabilization.cpp.

References PricingType::consGetDual(), GCGgetConvCons(), GCGgetNIdenticalBlocks(), GCGgetNPricingprobs(), NULL, and SCIP_Real.

◆ branchmasterconsGetDual()

SCIP_Real gcg::Stabilization::branchmasterconsGetDual ( int  i)

◆ branchmasterconsGetStabCenter()

SCIP_Real gcg::Stabilization::branchmasterconsGetStabCenter ( int  i)
Parameters
iindex of extendedmasterconsdata

Definition at line 432 of file class_stabilization.cpp.

References SCIP_Real.

Referenced by ObjPricerGcg::pricingLoop().

◆ updateStabilityCenter()

SCIP_RETCODE gcg::Stabilization::updateStabilityCenter ( SCIP_Real  lowerbound,
SCIP_Real *  dualsolconv,
GCG_COL **  pricingcols 
)

updates the stability center if the bound has increased

Parameters
lowerboundlower bound due to lagrange function corresponding to current (stabilized) dual vars
dualsolconvcorresponding feasible dual solution for convexity constraints
pricingcolscolumns of the pricing problems

Definition at line 439 of file class_stabilization.cpp.

References branchmasterconsGetDual(), consGetDual(), GCGgetNMasterConss(), GCGgetNPricingprobs(), GCGgetNVarLinkingconss(), GCGisPricingprobRelevant(), GCGrelaxBranchGetAllActiveExtendedMasterConss(), GCGsepaGetNOriginalSepaCuts(), linkingconsGetDual(), NULL, rowGetDual(), SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPdebugPrintf, SCIPgetCurrentNode(), SCIPisLE(), SCIPnodeGetLowerbound(), TRUE, and updateStabcenterextendedmasterconsvals().

Referenced by ObjPricerGcg::pricingLoop().

◆ updateAlphaMisprice()

void gcg::Stabilization::updateAlphaMisprice ( )

updates the alpha after unsuccessful pricing

Definition at line 608 of file class_stabilization.cpp.

References MAX, and SCIPdebugMessage.

Referenced by ObjPricerGcg::pricingLoop().

◆ updateAlpha()

void gcg::Stabilization::updateAlpha ( )

updates the alpha after successful pricing

Definition at line 616 of file class_stabilization.cpp.

References SCIPdebugMessage, and SCIPisNegative().

Referenced by ObjPricerGcg::pricingLoop().

◆ isStabilized()

SCIP_Bool gcg::Stabilization::isStabilized ( )

returns whether the stabilization is active

Definition at line 1439 of file class_stabilization.cpp.

References SCIP_Bool, and SCIPisGT().

Referenced by ObjPricerGcg::pricingLoop().

◆ activateMispricingSchedule()

void gcg::Stabilization::activateMispricingSchedule ( )

enabling mispricing schedule

Definition at line 1447 of file class_stabilization.cpp.

References TRUE.

Referenced by ObjPricerGcg::pricingLoop().

◆ disablingMispricingSchedule()

void gcg::Stabilization::disablingMispricingSchedule ( )

disabling mispricing schedule

Definition at line 1454 of file class_stabilization.cpp.

References FALSE.

Referenced by ObjPricerGcg::pricingLoop().

◆ isInMispricingSchedule()

SCIP_Bool gcg::Stabilization::isInMispricingSchedule ( ) const

is mispricing schedule enabled

Definition at line 1462 of file class_stabilization.cpp.

References SCIP_Bool.

Referenced by ObjPricerGcg::pricingLoop().

◆ setNLinkingconsvals()

SCIP_RETCODE gcg::Stabilization::setNLinkingconsvals ( int  nlinkingconssnew)

increases the number of new variable linking constraints

Parameters
nlinkingconssnewnumber of new linking constraints

Definition at line 254 of file class_stabilization.cpp.

References BMSclearMemoryArray, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.

◆ setNConvconsvals()

SCIP_RETCODE gcg::Stabilization::setNConvconsvals ( int  nconvconssnew)

increases the number of new convexity constraints

Definition at line 280 of file class_stabilization.cpp.

References BMSclearMemoryArray, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, and SCIPfreeBlockMemoryArrayNull.

◆ linkingconsGetDual()

SCIP_Real gcg::Stabilization::linkingconsGetDual ( int  i)

gets the dual of variable linking constraints at index i update node

Definition at line 293 of file class_stabilization.cpp.

References PricingType::consGetDual(), GCGgetNVarLinkingconss(), GCGgetVarLinkingconss(), NULL, and SCIP_Real.

Referenced by ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::setPricingObjs(), and updateStabilityCenter().

◆ updateNode()

void gcg::Stabilization::updateNode ( )

update information for hybrid stablization with dual ascent

update information for hybrid stabilization with dual ascent

Definition at line 571 of file class_stabilization.cpp.

References FALSE, SCIPgetCurrentNode(), SCIPinfinity(), and SCIPnodeGetNumber().

Referenced by ObjPricerGcg::pricingLoop().

◆ updateHybrid()

SCIP_RETCODE gcg::Stabilization::updateHybrid ( )

Definition at line 586 of file class_stabilization.cpp.

References SCIP_CALL, SCIP_OKAY, and SCIPisPositive().

Referenced by ObjPricerGcg::pricingLoop().

◆ updateSubgradientProduct()

SCIP_RETCODE gcg::Stabilization::updateSubgradientProduct ( GCG_COL **  pricingcols)

update subgradient product

Parameters
pricingcolssolutions of the pricing problems

Definition at line 1469 of file class_stabilization.cpp.

References SCIP_CALL, SCIP_OKAY, and updateStabcenterextendedmasterconsvals().

Referenced by ObjPricerGcg::pricingLoop().

◆ updateStabcenterextendedmasterconsvals()

SCIP_RETCODE gcg::Stabilization::updateStabcenterextendedmasterconsvals ( )

updates the extended master conss in the stability center (and allocates more memory)

Definition at line 151 of file class_stabilization.cpp.

References GCGrelaxBranchGetAllActiveExtendedMasterConss(), NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.

Referenced by updateStabilityCenter(), and updateSubgradientProduct().

◆ hasStabilityCenter()

SCIP_Bool gcg::Stabilization::hasStabilityCenter ( ) const

Definition at line 1483 of file class_stabilization.cpp.

References SCIP_Bool.

Referenced by ObjPricerGcg::pricingLoop().