dec_connected_noNewLinkingVars.cpp
Go to the documentation of this file.
31 * @brief detector connected_noNewLinkingVars (assigns all dependent open conss and vars and completes the partialdec by bfs)
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
53#define DEC_FREQCALLROUND 1 /** frequency the detector gets called in detection loop ,ie it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 */
56#define DEC_FREQCALLROUNDORIGINAL 1 /** frequency the detector gets called in detection loop while detecting the original problem */
57#define DEC_MAXCALLROUNDORIGINAL INT_MAX /** last round the detector gets called while detecting the original problem */
58#define DEC_MINCALLROUNDORIGINAL 0 /** first round the detector gets called while detecting the original problem */
65#define DEC_USEFULRECALL FALSE /**< is it useful to call this detector on a descendant of the propagated partialdec */
105 Partialdec_Detection_Data* partialdecdetectiondata /**< partialdecdetectiondata (including the detprobdata and workonpartialdec) where to store the new Partialdecs */
129 partialdecdetectiondata->newpartialdecs[0]->addClockTime(SCIPgetClockTime(scip, temporaryClock));
184 SCIP_CALL( GCGincludeDetector(gcg, DEC_NAME, DEC_DECCHAR, DEC_DESC, DEC_FREQCALLROUND, DEC_MAXCALLROUND, DEC_MINCALLROUND, DEC_FREQCALLROUNDORIGINAL, DEC_MAXCALLROUNDORIGINAL, DEC_MINCALLROUNDORIGINAL, DEC_PRIORITY, DEC_ENABLED, DEC_ENABLEDFINISHING, DEC_ENABLEDPOSTPROCESSING, DEC_SKIP, DEC_USEFULRECALL, detectordata, freeConnected_noNewLinkingVars, initConnected_noNewLinkingVars, exitConnected_noNewLinkingVars, propagatePartialdecConnected_noNewLinkingVars, finishPartialdecConnected_noNewLinkingVars, detectorPostprocessPartialdecConnected_noNewLinkingVars, setParamAggressiveConnected_noNewLinkingVars, setParamDefaultConnected_noNewLinkingVars, setParamFastConnected_noNewLinkingVars) );
class storing partialdecs and the problem matrix
class storing (potentially incomplete) decompositions
GCG_EXPORT void addDetectorChainInfo(const char *decinfo)
add information about the detector chain
Definition: class_partialdecomp.cpp:482
GCG_EXPORT void completeByConnected()
assigns all open constraints and open variables
Definition: class_partialdecomp.cpp:2327
GCG_EXPORT void refineToBlocks()
refine partialdec with focus on blocks
Definition: class_partialdecomp.cpp:5167
GCG_EXPORT void considerImplicits()
: assigns every open cons/var
Definition: class_partialdecomp.cpp:2806
GCG_EXPORT void addClockTime(SCIP_Real clocktime)
adds detection time of one detector
Definition: class_partialdecomp.cpp:453
SCIP_RETCODE GCGincludeDetector(GCG *gcg, const char *name, const char decchar, const char *description, int freqCallRound, int maxCallRound, int minCallRound, int freqCallRoundOriginal, int maxCallRoundOriginal, int minCallRoundOriginal, int priority, SCIP_Bool enabled, SCIP_Bool enabledFinishing, SCIP_Bool enabledPostprocessing, SCIP_Bool skip, SCIP_Bool usefulRecall, GCG_DETECTORDATA *detectordata, GCG_DECL_FREEDETECTOR((*freeDetector)), GCG_DECL_INITDETECTOR((*initDetector)), GCG_DECL_EXITDETECTOR((*exitDetector)), GCG_DECL_PROPAGATEPARTIALDEC((*propagatePartialdecDetector)), GCG_DECL_FINISHPARTIALDEC((*finishPartialdecDetector)), GCG_DECL_POSTPROCESSPARTIALDEC((*postprocessPartialdecDetector)), GCG_DECL_SETPARAMAGGRESSIVE((*setParamAggressiveDetector)), GCG_DECL_SETPARAMDEFAULT((*setParamDefaultDetector)),)
Definition: cons_decomp.cpp:2547
constraint handler for structure detection
#define setParamAggressiveConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:164
#define DEC_MINCALLROUNDORIGINAL
Definition: dec_connected_noNewLinkingVars.cpp:58
static SCIP_RETCODE detection(SCIP *scip, Partialdec_Detection_Data *partialdecdetectiondata)
Definition: dec_connected_noNewLinkingVars.cpp:103
#define detectorPostprocessPartialdecConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:161
#define setParamDefaultConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:165
#define exitConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:94
#define DEC_ENABLEDPOSTPROCESSING
Definition: dec_connected_noNewLinkingVars.cpp:63
#define setParamFastConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:166
static GCG_DECL_FINISHPARTIALDEC(finishPartialdecConnected_noNewLinkingVars)
Definition: dec_connected_noNewLinkingVars.cpp:151
#define freeConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:91
SCIP_RETCODE GCGincludeDetectorConnected_noNewLinkingVars(GCG *gcg)
Definition: dec_connected_noNewLinkingVars.cpp:175
#define initConnected_noNewLinkingVars
Definition: dec_connected_noNewLinkingVars.cpp:97
#define DEC_MAXCALLROUNDORIGINAL
Definition: dec_connected_noNewLinkingVars.cpp:57
#define DEC_FREQCALLROUNDORIGINAL
Definition: dec_connected_noNewLinkingVars.cpp:56
static GCG_DECL_PROPAGATEPARTIALDEC(propagatePartialdecConnected_noNewLinkingVars)
Definition: dec_connected_noNewLinkingVars.cpp:139
connected_noNewLinkingVars detector
#define SCIP_CALL_ABORT(x)
#define SCIP_CALL(x)
GCG interface methods.
#define SCIPallocMemoryArray(scip, ptr, num)
SCIP_RETCODE SCIPcreateClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_RETCODE SCIPstopClock(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPfreeClock(SCIP *scip, SCIP_CLOCK **clck)
SCIP_Real SCIPgetClockTime(SCIP *scip, SCIP_CLOCK *clck)
SCIP_RETCODE SCIPstartClock(SCIP *scip, SCIP_CLOCK *clck)
#define NULL
Definition: class_conspartition.cpp:44
various SCIP helper methods
Definition: dec_compgreedily.cpp:75
Definition: struct_gcg.h:55
interface data structure for the detector calling methods
Definition: class_detprobdata.h:746
gcg::PARTIALDECOMP ** newpartialdecs
Definition: class_detprobdata.h:749
gcg::PARTIALDECOMP * workonpartialdec
Definition: class_detprobdata.h:748
SCIP_DIDNOTFIND
SCIP_SUCCESS
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE