dec_compgreedily.cpp
Go to the documentation of this file.
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
47#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 */
50#define DEC_FREQCALLROUNDORIGINAL 1 /** frequency the detector gets called in detection loop while detecting the original problem */
51#define DEC_MAXCALLROUNDORIGINAL INT_MAX /** last round the detector gets called while detecting the original problem */
52#define DEC_MINCALLROUNDORIGINAL 0 /** first round the detector gets called while detecting the original problem */
59#define DEC_USEFULRECALL FALSE /**< is it useful to call this detector on a descendant of the propagated partialdec */
63#define DEFAULT_LIMITHALFPERIMETERENABLEDFINISHING 20000 /** limit in terms of nrows + ncols for enabling finishing */
64#define DEFAULT_LIMITHALFPERIMETERENABLEDORIGINAL 10000 /** limit in terms of nrows + ncols for enabling in detecting for unpresolved problem */
122 partialdecdetectiondata->newpartialdecs[0]->addClockTime(SCIPgetClockTime(origprob, temporaryClock));
158 partialdecdetectiondata->newpartialdecs[0]->addClockTime(SCIPgetClockTime(origprob, temporaryClock));
237 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, freeCompgreedily, initCompgreedily, exitCompgreedily, propagatePartialdecCompgreedily, finishPartialdecCompgreedily, detectorPostprocessPartialdecCompgreedily, setParamAggressiveCompgreedily, setParamDefaultCompgreedily, setParamFastCompgreedily) );
class storing partialdecs and the problem matrix
class storing (potentially incomplete) decompositions
GCG_EXPORT void completeGreedily()
assigns all open constraints and open variables
Definition: class_partialdecomp.cpp:2537
GCG_EXPORT void addClockTime(SCIP_Real clocktime)
adds detection time of one detector
Definition: class_partialdecomp.cpp:453
const char * GCGdetectorGetName(GCG_DETECTOR *detector)
returns the name of the provided detector
Definition: cons_decomp.cpp:2084
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
static GCG_DECL_SETPARAMAGGRESSIVE(setParamAggressiveCompgreedily)
Definition: dec_compgreedily.cpp:173
static GCG_DECL_SETPARAMDEFAULT(setParamDefaultCompgreedily)
Definition: dec_compgreedily.cpp:190
static GCG_DECL_SETPARAMFAST(setParamFastCompgreedily)
Definition: dec_compgreedily.cpp:206
static GCG_DECL_FINISHPARTIALDEC(finishPartialdecCompgreedily)
Definition: dec_compgreedily.cpp:135
#define detectorPostprocessPartialdecCompgreedily
Definition: dec_compgreedily.cpp:169
SCIP_RETCODE GCGincludeDetectorCompgreedily(GCG *gcg)
Definition: dec_compgreedily.cpp:228
static GCG_DECL_PROPAGATEPARTIALDEC(propagatePartialdecCompgreedily)
Definition: dec_compgreedily.cpp:100
compgreedily detector
#define SCIP_MAXSTRLEN
#define SCIP_CALL_ABORT(x)
#define SCIP_CALL(x)
#define FALSE
SCIP_RETCODE SCIPsetBoolParam(SCIP *scip, const char *name, SCIP_Bool value)
#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)
int SCIPsnprintf(char *t, int len, const char *s,...)
#define NULL
Definition: class_conspartition.cpp:44
Definition: dec_compgreedily.cpp:75
Definition: struct_gcg.h:55
SCIP_DIDNOTFIND
SCIP_SUCCESS
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE