Scippy

GCG

Branch-and-Price & Column Generation for Everyone

SCIP_ConshdlrData Struct Reference

Detailed Description

constraint handler data

Definition at line 123 of file cons_decomp.cpp.

Data Fields

GCG * gcg
 
SCIP_Bool enabled
 
std::vector< PARTIALDECOMP * > * partialdecs
 
std::unordered_map< int, PARTIALDECOMP * > * partialdecsbyid
 
int partialdeccounter
 
GCG_DECOMP ** decomps
 
int ndecomps
 
GCG_CONSCLASSIFIER ** consclassifiers
 
int nconsclassifiers
 
int * consclassifierpriorities
 
GCG_VARCLASSIFIER ** varclassifiers
 
int nvarclassifiers
 
int * varclassifierpriorities
 
GCG_DETECTOR ** detectors
 
int * priorities
 
int ndetectors
 
GCG_DETECTOR ** propagatingdetectors
 
int npropagatingdetectors
 
GCG_DETECTOR ** finishingdetectors
 
int nfinishingdetectors
 
GCG_DETECTOR ** postprocessingdetectors
 
int npostprocessingdetectors
 
SCIP_CLOCK * detectorclock
 
SCIP_CLOCK * completedetectionclock
 
SCIP_Bool hasrunoriginal
 
SCIP_Bool hasrun
 
int maxndetectionrounds
 
int maxdetectiontime
 
SCIP_Bool postprocess
 
SCIP_Bool blocknumbercandsmedianvarspercons
 
int maxnclassesfornblockcandidates
 
int maxnclassesperpartition
 
int maxnclassesperpartitionforlargeprobs
 
int weightinggpresolvedoriginaldecomps
 
SCIP_Bool classify
 
SCIP_Bool allowpartitionduplicates
 
SCIP_Bool enableorigdetection
 
SCIP_Bool enableorigclassification
 
SCIP_Bool bendersonlycontsubpr
 
SCIP_Bool bendersonlybinmaster
 
SCIP_Bool detectbenders
 
int ncallscreatedecomp
 
gcg::DETPROBDATA * detprobdatapres
 
gcg::DETPROBDATA * detprobdataorig
 
GCG_SCORE ** scores
 
int nscores
 
char * currscore
 
SCIP_CLOCK * scoreclock
 
PARTIALDECOMP * partialdectowrite
 
SCIP_Bool consnamesalreadyrepaired
 
std::vector< int > * userblocknrcandidates
 
SCIP_Bool freeorig
 
SCIP_BRANCHRULE ** branchrules
 
int nbranchrules
 
SCIP_CONS ** stack
 
int nstack
 
int maxstacksize
 
SCIP_VAR ** pendingvars
 
SCIP_BOUNDTYPE * pendingbndtypes
 
SCIP_Real * pendingnewbnds
 
SCIP_HASHMAP * pendingvarmaplb
 
SCIP_HASHMAP * pendingvarmapub
 
int npendingbnds
 
SCIP_Bool pendingbndsactivated
 
int maxpendingbnds
 
SCIP_Bool enforceproper
 
SCIP_VAR *** collectedbndvars
 
SCIP_Real ** collectedlbnds
 
SCIP_Real ** collectedubnds
 
int maxblocknum
 
int * ncollectedbndvars
 
int * maxcollectedbndvars
 
int ** linkingvaridxs
 
int maxlinkingvaridxs
 
SCIP_CONS * rootcons
 

Field Documentation

◆ gcg

◆ enabled

SCIP_Bool SCIP_ConshdlrData::enabled

indicates whether detection is enabled

Definition at line 126 of file cons_decomp.cpp.

Referenced by GCGdetectStructure(), and GCGincludeConshdlrDecomp().

◆ partialdecs

◆ partialdecsbyid

◆ partialdeccounter

int SCIP_ConshdlrData::partialdeccounter

counts the number of created partialdecs, used to determine next partialdec id (NOT amount of currently existing partialdecs as partialdecs might be deleted)

Definition at line 130 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompGetNextPartialdecID(), and GCGincludeConshdlrDecomp().

◆ decomps

GCG_DECOMP** SCIP_ConshdlrData::decomps

array of decomposition structures

Definition at line 132 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompGetDecomps(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSEXIT().

◆ ndecomps

int SCIP_ConshdlrData::ndecomps

number of decomposition structures (size of decomps)

Definition at line 133 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompGetDecomps(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSEXIT().

◆ consclassifiers

◆ nconsclassifiers

int SCIP_ConshdlrData::nconsclassifiers

◆ consclassifierpriorities

int* SCIP_ConshdlrData::consclassifierpriorities

priorities of the cons classifiers

Definition at line 137 of file cons_decomp.cpp.

Referenced by GCGincludeConsClassifier(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSFREE().

◆ varclassifiers

◆ nvarclassifiers

int SCIP_ConshdlrData::nvarclassifiers

◆ varclassifierpriorities

int* SCIP_ConshdlrData::varclassifierpriorities

priorities of the var classifiers

Definition at line 140 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp(), GCGincludeVarClassifier(), and SCIP_DECL_CONSFREE().

◆ detectors

◆ priorities

int* SCIP_ConshdlrData::priorities

priorities of the detectors

Definition at line 143 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp(), GCGincludeDetector(), and SCIP_DECL_CONSFREE().

◆ ndetectors

◆ propagatingdetectors

GCG_DETECTOR** SCIP_ConshdlrData::propagatingdetectors

array of detectors able to propagate partial decompositions

Definition at line 145 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), GCGincludeDetector(), and SCIP_DECL_CONSFREE().

◆ npropagatingdetectors

int SCIP_ConshdlrData::npropagatingdetectors

number of detectors able to propagate partial decompositions (size of propagatingdetectors)

Definition at line 146 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), and GCGincludeDetector().

◆ finishingdetectors

GCG_DETECTOR** SCIP_ConshdlrData::finishingdetectors

array of detectors able to finish partial decompositions

Definition at line 147 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), GCGincludeDetector(), and SCIP_DECL_CONSFREE().

◆ nfinishingdetectors

int SCIP_ConshdlrData::nfinishingdetectors

number of detectors able to finish partial decompositions (size of finishingdetectors)

Definition at line 148 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), and GCGincludeDetector().

◆ postprocessingdetectors

GCG_DETECTOR** SCIP_ConshdlrData::postprocessingdetectors

array of detectors able to postprocess decompositions

Definition at line 149 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), GCGincludeDetector(), and SCIP_DECL_CONSFREE().

◆ npostprocessingdetectors

int SCIP_ConshdlrData::npostprocessingdetectors

number of detectors able to postprocess decompositions (size of postprocessingdetectors)

Definition at line 150 of file cons_decomp.cpp.

Referenced by detect(), GCGincludeConshdlrDecomp(), and GCGincludeDetector().

◆ detectorclock

SCIP_CLOCK* SCIP_ConshdlrData::detectorclock

clock to measure detection time

Definition at line 152 of file cons_decomp.cpp.

Referenced by detect(), GCGdetectStructure(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSFREE().

◆ completedetectionclock

SCIP_CLOCK* SCIP_ConshdlrData::completedetectionclock

clock to measure detection time

Definition at line 153 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompGetCompleteDetectionTime(), GCGdetectStructure(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSFREE().

◆ hasrunoriginal

SCIP_Bool SCIP_ConshdlrData::hasrunoriginal

flag to indicate whether we have already detected (original problem)

Definition at line 154 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompFreeDetprobdata(), GCGdetectionTookPlace(), GCGdetectStructure(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSINIT().

◆ hasrun

SCIP_Bool SCIP_ConshdlrData::hasrun

flag to indicate whether we have already detected

Definition at line 155 of file cons_decomp.cpp.

Referenced by GCGdetectionTookPlace(), GCGdetectStructure(), GCGincludeConshdlrDecomp(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ maxndetectionrounds

int SCIP_ConshdlrData::maxndetectionrounds

maximum number of detection loop rounds

Definition at line 156 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ maxdetectiontime

int SCIP_ConshdlrData::maxdetectiontime

maximum detection time [sec]

Definition at line 157 of file cons_decomp.cpp.

Referenced by detect(), and GCGincludeConshdlrDecomp().

◆ postprocess

SCIP_Bool SCIP_ConshdlrData::postprocess

indicates whether to postprocess full decompositions

Definition at line 158 of file cons_decomp.cpp.

Referenced by detect(), and GCGincludeConshdlrDecomp().

◆ blocknumbercandsmedianvarspercons

SCIP_Bool SCIP_ConshdlrData::blocknumbercandsmedianvarspercons

should for block number candidates calculation the medianvarspercons calculation be considered

Definition at line 159 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompCalcCandidatesNBlocks(), and GCGincludeConshdlrDecomp().

◆ maxnclassesfornblockcandidates

int SCIP_ConshdlrData::maxnclassesfornblockcandidates

maximum number of classes a partition can have to be used for voting nblockcandidates

Definition at line 160 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompCalcCandidatesNBlocks(), and GCGincludeConshdlrDecomp().

◆ maxnclassesperpartition

int SCIP_ConshdlrData::maxnclassesperpartition

maximum number of classes allowed for detectors, partition with more classes are reduced to the maximum number of classes

Definition at line 161 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp(), reduceConsclasses(), and reduceVarclasses().

◆ maxnclassesperpartitionforlargeprobs

int SCIP_ConshdlrData::maxnclassesperpartitionforlargeprobs

maximum number of classes allowed for large (nvars+nconss > 50000) MIPs for detectors, partition with more classes are reduced to the maximum number of classes

Definition at line 162 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp(), reduceConsclasses(), and reduceVarclasses().

◆ weightinggpresolvedoriginaldecomps

int SCIP_ConshdlrData::weightinggpresolvedoriginaldecomps

weighing method for comparing presolved and original decompositions (see corresponding enum)

Definition at line 163 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ classify

SCIP_Bool SCIP_ConshdlrData::classify

indicates whether classification should take place

Definition at line 165 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ allowpartitionduplicates

SCIP_Bool SCIP_ConshdlrData::allowpartitionduplicates

indicates whether partition duplicates are allowed (for statistical reasons)

Definition at line 166 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ enableorigdetection

SCIP_Bool SCIP_ConshdlrData::enableorigdetection

indicates whether to start detection for the original problem

Definition at line 167 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ enableorigclassification

SCIP_Bool SCIP_ConshdlrData::enableorigclassification

indicates whether to start constraint classification for the original problem

Definition at line 168 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ bendersonlycontsubpr

SCIP_Bool SCIP_ConshdlrData::bendersonlycontsubpr

indicates whether only decomposition with only continuous variables in the subproblems should be searched

Definition at line 170 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ bendersonlybinmaster

SCIP_Bool SCIP_ConshdlrData::bendersonlybinmaster

indicates whether only decomposition with only binary variables in the master should be searched

Definition at line 171 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ detectbenders

SCIP_Bool SCIP_ConshdlrData::detectbenders

indicates wethher or not benders detection mode is enabled

Definition at line 172 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp().

◆ ncallscreatedecomp

int SCIP_ConshdlrData::ncallscreatedecomp

debugging method for counting the number of calls of created decompositions

Definition at line 174 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompDecreaseNCallsCreateDecomp(), GCGconshdlrDecompIncreaseNCallsCreateDecomp(), and GCGincludeConshdlrDecomp().

◆ detprobdatapres

◆ detprobdataorig

◆ scores

◆ nscores

◆ currscore

char* SCIP_ConshdlrData::currscore

currently chosen score shortname

Definition at line 182 of file cons_decomp.cpp.

Referenced by GCGgetCurrentScoreShortname(), and GCGincludeConshdlrDecomp().

◆ scoreclock

SCIP_CLOCK* SCIP_ConshdlrData::scoreclock

clock tracking the total score calculation time

Definition at line 183 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompGetScoreClock(), GCGconshdlrDecompGetScoreTotalTime(), GCGincludeConshdlrDecomp(), and SCIP_DECL_CONSFREE().

◆ partialdectowrite

PARTIALDECOMP* SCIP_ConshdlrData::partialdectowrite

pointer enabling the use of SCIPs writeProb/writeTransProb function for writing partial decompositions

Definition at line 185 of file cons_decomp.cpp.

Referenced by GCGgetPartialdecToWrite(), GCGincludeConshdlrDecomp(), GCGwriteAllDecomps(), and GCGwriteSelectedDecomps().

◆ consnamesalreadyrepaired

SCIP_Bool SCIP_ConshdlrData::consnamesalreadyrepaired

stores whether or not

Definition at line 187 of file cons_decomp.cpp.

Referenced by GCGincludeConshdlrDecomp(), and SCIPconshdlrDecompRepairConsNames().

◆ userblocknrcandidates

std::vector<int>* SCIP_ConshdlrData::userblocknrcandidates

◆ freeorig

SCIP_Bool SCIP_ConshdlrData::freeorig

help bool to notify a nonfinal free transform (needed if presolving is revoked, e.g. if orig decomposition is used, and transformation is not successful)

Definition at line 189 of file cons_decomp.cpp.

Referenced by GCGconshdlrDecompFreeDetprobdata(), GCGconshdlrDecompFreeOrigOnExit(), and GCGincludeConshdlrDecomp().

◆ branchrules

SCIP_BRANCHRULE** SCIP_ConshdlrData::branchrules

◆ nbranchrules

int SCIP_ConshdlrData::nbranchrules

◆ stack

◆ nstack

◆ maxstacksize

◆ pendingvars

SCIP_VAR** SCIP_ConshdlrData::pendingvars

pricing variables or master variable copies corresponding to pending bound changes (global bound changes)

Definition at line 141 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), applyGlobalBndchgsToPricingprobs(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ pendingbndtypes

SCIP_BOUNDTYPE* SCIP_ConshdlrData::pendingbndtypes

types of the pending bound changes (global bound changes)

Definition at line 142 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), applyGlobalBndchgsToPricingprobs(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ pendingnewbnds

SCIP_Real* SCIP_ConshdlrData::pendingnewbnds

new bounds corresponding to pending bound changes (global bound changes)

Definition at line 143 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), applyGlobalBndchgsToPricingprobs(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ pendingvarmaplb

SCIP_HASHMAP* SCIP_ConshdlrData::pendingvarmaplb

maps vars to indices of the pendingvars array for global lower bound changes

Definition at line 144 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ pendingvarmapub

SCIP_HASHMAP* SCIP_ConshdlrData::pendingvarmapub

maps vars to indices of the pendingvars array for global upper bound changes

Definition at line 145 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ npendingbnds

int SCIP_ConshdlrData::npendingbnds

number of pending bound changes (global bound changes)

Definition at line 146 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), applyGlobalBndchgsToPricedMastervars(), applyGlobalBndchgsToPricingprobs(), SCIP_DECL_CONSINIT(), and SCIP_DECL_CONSPROP().

◆ pendingbndsactivated

SCIP_Bool SCIP_ConshdlrData::pendingbndsactivated

◆ maxpendingbnds

int SCIP_ConshdlrData::maxpendingbnds

size of the array corresponding to pending bound changes

Definition at line 148 of file cons_masterbranch.c.

Referenced by addPendingBndChg(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ enforceproper

SCIP_Bool SCIP_ConshdlrData::enforceproper

should proper variables be enforced?

Definition at line 149 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), and GCGincludeConshdlrMasterbranch().

◆ collectedbndvars

SCIP_VAR*** SCIP_ConshdlrData::collectedbndvars

collected original variables of bound changes stored for each block

Definition at line 152 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), ensureCollectedBndvarsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ collectedlbnds

SCIP_Real** SCIP_ConshdlrData::collectedlbnds

collected upper bound changes for each block

Definition at line 153 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), ensureCollectedBndvarsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ collectedubnds

SCIP_Real** SCIP_ConshdlrData::collectedubnds

collected upper bound changes for each block

Definition at line 154 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), ensureCollectedBndvarsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ maxblocknum

int SCIP_ConshdlrData::maxblocknum

maximal number of blocks that can be handled by the collected* arrays

Definition at line 155 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ ncollectedbndvars

int* SCIP_ConshdlrData::ncollectedbndvars

number of collected bndvars per block

Definition at line 156 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ maxcollectedbndvars

int* SCIP_ConshdlrData::maxcollectedbndvars

capacity of the collected* arrays per block

Definition at line 157 of file cons_masterbranch.c.

Referenced by ensureCollectedBndvarsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ linkingvaridxs

int** SCIP_ConshdlrData::linkingvaridxs

position of linking vars in collectedbndvars

Definition at line 158 of file cons_masterbranch.c.

Referenced by applyLocalBndchgsToPricedMastervars(), ensureLinkingvarIndxsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ maxlinkingvaridxs

int SCIP_ConshdlrData::maxlinkingvaridxs

capacity of linkingvaridxs

Definition at line 159 of file cons_masterbranch.c.

Referenced by ensureLinkingvarIndxsSize(), SCIP_DECL_CONSEXIT(), and SCIP_DECL_CONSINIT().

◆ rootcons

SCIP_CONS* SCIP_ConshdlrData::rootcons